commit | 40c490a2375ac1948ca9835b9ae45b9f3b65bf3c | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu Jun 25 01:01:15 2020 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Thu Jun 25 01:18:20 2020 -0700 |
tree | b9d2947da83fa557df4710362416b453b66c8ae6 | |
parent | 0aa6809418c1ca3685be995ee316eff900aade40 [diff] |
Update to use flexible dependencies * Remove references to .static sysroot, it's automatic now * Enable the device test, we can build it now Test: mma Bug: 143217452 Change-Id: I36350240f5faaab59dfabaf74e55ed7abb99e49d
Pre-allocated storage for a uniform data type.
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.
This project is licensed under the MIT license.
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.