Skip to content

Pre-allocated storage for a uniform data type, based upon slab

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

BruceBrown/super-slab

Repository files navigation

SuperSlab

Pre-allocated storage for a uniform data type.

Crates.io Build Status Test Status License Cargo Documentation Rust 1.47+

Documentation

Usage

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.

License

Licensed under either of

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.

About

Pre-allocated storage for a uniform data type, based upon slab

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages