tag | 24211ec94ca18c72c3ccc0655469224e1680a60a | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Jan 28 21:11:47 2022 -0800 |
object | bcb5243c9206b2cd3076d344c0415d7a51414ebf |
Android Mainline 12.0.0 Release 22 (7927206,com.google.android.art)
commit | bcb5243c9206b2cd3076d344c0415d7a51414ebf | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Sep 01 00:17:56 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Sep 01 00:17:56 2021 +0000 |
tree | 0ae352b18f96fcca3ce41cc57c7dc718af0a41e2 | |
parent | 5922e7ee56e0cbd4ea7e9f388b3de727c875f4a4 [diff] | |
parent | c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 [diff] |
Snap for 7692221 from c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 to mainline-art-release Change-Id: I08ea1d3fdcd709b1b6be6838334268e13379cf61
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.