19 stable releases
| 1.11.2 | Mar 8, 2025 |
|---|---|
| 1.10.0 | Dec 19, 2023 |
| 1.9.0 | Aug 10, 2023 |
| 1.8.1 | Apr 5, 2023 |
| 0.1.3 | Dec 28, 2018 |
#22 in Data structures
573,832 downloads per month
Used in 222 crates
(48 directly)
88KB
1.5K
SLoC
🎵 Immutability never bothered me anyway 🎶
This crate provides various "Frozen" collections.
These are append-only collections where references to entries can be held
on to even across insertions. This is safe because these collections only
support storing data that's present behind some indirection -- i.e. String,
Vec<T>, Box<T>, etc, and they only yield references to the data behind the
allocation (&str, &[T], and &T respectively)
The typical use case is having a global cache of strings or other data which the rest of the program borrows from.
elsa
🎵 Immutability never bothered me anyway 🎶
This crate provides various "frozen" collections.
These are append-only collections where references to entries can be held on to even across insertions. This is safe because these collections only support storing data that's present behind some indirection -- i.e. String, Vec<T>, Box<T>, etc, and they only yield references to the data behind the allocation (&str, &[T], and &T respectively)
The typical use case is having a global cache of strings or other data which the rest of the program borrows from.
Running all examples
cargo test --examples --features indexmap
Dependencies
~185KB