slab_32

Crates.ioslab_32
lib.rsslab_32
version0.1.1
sourcesrc
created_at2017-10-19 22:55:07.404469
updated_at2017-10-19 22:57:36.958854
descriptionForked from the main slab crate as an experiment. Don't use.
homepagehttps://github.com/peterlvilim/slab
repositoryhttps://github.com/peterlvilim/slab
max_upload_size
id36254
size46,205
Peter Vilim (peterlvilim)

documentation

https://docs.rs/slab

README

Slab

Pre-allocated storage for a uniform data type. Experiment forked from slab. Don't use.

Crates.io Build Status

Documentation

Usage

To use slab, first add this to your Cargo.toml:

[dependencies]
slab = "0.4"

Next, add this to your crate:

extern crate slab;

use slab::Slab;

let mut slab = Slab::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

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.

Commit count: 56

cargo fmt