Crates.io | super-slab |
lib.rs | super-slab |
version | 0.1.0 |
source | src |
created_at | 2020-11-03 07:59:41.82522 |
updated_at | 2020-11-03 07:59:41.82522 |
description | Pre-allocated storage for a uniform data type, based upon slab |
homepage | https://github.com/BruceBrown/super-slab |
repository | https://github.com/BruceBrown/super-slab |
max_upload_size | |
id | 308172 |
size | 53,095 |
Pre-allocated storage for a uniform data type.
To use super-slab
, first add this to your Cargo.toml
:
[dependencies]
super-slab = "0.1.0"
Next, add this to your crate:
use super_slab::SuperSlab;
let mut slab = SuperSlab::new();
let hello = slab.insert("hello");
let world = slab.insert("world");
assert_eq!(slab[hello], "hello");
assert_eq!(slab[world], "world");
slab[world] = "earth";
assert_eq!(slab[world], "earth");
See documentation for more details.
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in super-slab
by you, shall be shall be dual licensed as above,
without any additional terms or conditions.