SuperSlab
Pre-allocated storage for a uniform data type.
Usage
To use super-slab
, first add this to your Cargo.toml
:
[]
= "0.1.0"
Next, add this to your crate:
use SuperSlab;
let mut slab = new;
let hello = slab.insert;
let world = slab.insert;
assert_eq!;
assert_eq!;
slab = "earth";
assert_eq!;
See documentation for more details.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contribution
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.