Bug: 153207806

Clone this repo:
  1. 69084b1 add crosvm to com.android.virt by Jiyong Park · 7 weeks ago master
  2. aa1eb11 Mark ab/6881855 as merged by Xin Li · 9 weeks ago
  3. 4c0762a TEST_MAPPING: test dependers of this crate am: 9f59d1aabc by Jeff Vander Stoep · 3 months ago
  4. 9f59d1a TEST_MAPPING: test dependers of this crate by Jeff Vander Stoep · 3 months ago
  5. f027af4 Skip ab/6749736 in stage. by Xin Li · 4 months ago

Slab

Pre-allocated storage for a uniform data type.

Crates.io Build Status

Documentation

Usage

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

[dependencies]
slab = "0.4.2"

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

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in slab by you, shall be licensed as MIT, without any additional terms or conditions.