tag | 1a7047e34ae7e0a5f8c5c3de0b4be7d6de79008a | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Feb 02 02:47:03 2023 -0800 |
object | 88278d9b77174af1205454ff00f5e20ed8e558b4 |
aml_tz3_312511010 (9399027,com.google.android.tzdata3)
commit | 88278d9b77174af1205454ff00f5e20ed8e558b4 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:45:34 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:45:34 2022 +0000 |
tree | 0ae352b18f96fcca3ce41cc57c7dc718af0a41e2 | |
parent | c2fda04e20fda5fa0ab597ad8a8619bf5a1db7ec [diff] | |
parent | c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 [diff] |
Snap for 8730993 from c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 to mainline-tzdata3-release Change-Id: I9ef4888a2b80f50581056cbdd1f8b70d10c9d91c
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.