Slab
Pre-allocated storage for a uniform data type.
Usage
To use slab
, first add this to your Cargo.toml
:
[]
= "0.4"
Next, add this to your crate:
extern crate slab;
use Slab;
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
slab
is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0), with portions covered by various BSD-like
licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.