commit | a642f4148411e1e5e2eea2fbbfaeb9f29eea6f3a | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Tue Dec 15 19:20:55 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Dec 15 19:20:55 2020 +0000 |
tree | 5eea48913e8cf050cfccf611e6805567f4096943 | |
parent | fbd00d8676e2b5631bbfa8b32dbaa45f786f1f32 [diff] | |
parent | ddfb6275aa650ad251fd8a89f0d2e19ed58f6b8f [diff] |
add crosvm to com.android.virt am: 69084b1268 am: 6e231ecaa5 am: ddfb6275aa Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/slab/+/1526583 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4a1433fffe728c44bfdec80cca2375eaeed27988
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.