Vendored version of elsa from crates.io
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
Rust / build (push) Has been cancelled
Add a `capacity()` function to `FrozenVec<T>` |
||
| .github/workflows | ||
| examples | ||
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| README.md | ||
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