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