#data-structure #map #cache #arena #frozen

elsa

Append-only collections for Rust where borrows to entries can outlive insertions

12 releases (stable)

✓ Uses Rust 2018 edition

1.3.2 May 27, 2019
1.2.2 May 20, 2019
1.1.0 Apr 23, 2019
1.0.1 Mar 29, 2019
0.1.3 Dec 28, 2018

#176 in Data structures

Download history 27/week @ 2019-04-24 4/week @ 2019-05-01 13/week @ 2019-05-08 143/week @ 2019-05-15 55/week @ 2019-05-22 47/week @ 2019-05-29 29/week @ 2019-06-05 61/week @ 2019-06-12 45/week @ 2019-06-19 187/week @ 2019-06-26 63/week @ 2019-07-03 40/week @ 2019-07-10 33/week @ 2019-07-17 4/week @ 2019-07-24 27/week @ 2019-07-31

161 downloads per month
Used in 4 crates

MIT/Apache

11KB
250 lines

elsa

Build Status Current Version License: MIT/Apache-2.0

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.


lib.rs:

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.

Dependencies

~12KB