Vendored version of elsa from crates.io
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Manish Goregaokar 91944aacda
Some checks failed
Rust / build (push) Has been cancelled
Merge pull request #100 from leo-olivier/master
Add a `capacity()` function to `FrozenVec<T>`
2026-04-07 11:10:07 -07:00
.github/workflows Setup GHA 2021-09-27 22:40:27 -07:00
examples Address clippy lints 2024-06-14 11:51:14 -04:00
src capacity 2026-04-07 12:19:23 +02:00
tests Fix UB in Vec::PartialEq 2025-11-18 04:45:47 -04:00
.gitignore Basic FrozenMap interface 2018-12-20 16:16:11 -08:00
.travis.yml Fix feature interop with examples 2020-11-15 10:43:27 +01:00
Cargo.toml Bump to 1.11.2 2025-03-08 15:59:36 -08:00
LICENSE-APACHE Add actual licenses 2019-11-07 00:17:49 -08:00
LICENSE-MIT Add actual licenses 2019-11-07 00:17:49 -08:00
README.md Fix version shield image 2023-01-19 08:35:54 +13:00

elsa

Build Status Current Version License: MIT/Apache-2.0

🎵 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