Pre-allocated storage for a uniform data type.
To use super-slab
, first add this to your Cargo.toml
:
toml
[dependencies]
super-slab = "0.1.0"
Next, add this to your crate:
```rust
use super_slab::SuperSlab;
let mut slab = SuperSlab::new();
let hello = slab.insert("hello"); let world = slab.insert("world");
asserteq!(slab[hello], "hello"); asserteq!(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.