Bug: 153207806

Clone this repo:
  1. 1ea08d4 Update TEST_MAPPING by Jeff Vander Stoep · 6 days ago master
  2. ce8bf41 Update TEST_MAPPING by David Brazdil · 13 days ago
  3. 9b675be Upgrade slab to 0.4.7 by Jeff Vander Stoep · 7 weeks ago main-16k-with-phones
  4. 855d8f3 [Bluetooth apex] Use new apex name am: 3d77d495b4 am: 8bb9e22b91 am: 54ca16c516 am: e3d38041c6 by William Escande · 6 months ago
  5. e3d3804 [Bluetooth apex] Use new apex name am: 3d77d495b4 am: 8bb9e22b91 am: 54ca16c516 by William Escande · 6 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"

Next, add this to your crate:

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.