tag | 55e9c5ede4a42167ff83183ef9f9068b00a363f1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 29 10:40:01 2024 -0700 |
object | eaa671a412eaed3464eed37693855a1508f9c2ca |
aml_tz5_341510070 (11568892,com.google.android.go.tzdata5,com.google.android.tzdata5)
commit | eaa671a412eaed3464eed37693855a1508f9c2ca | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 10 16:19:37 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 10 16:19:37 2023 +0000 |
tree | 7f08bb33b7d46ae8a14a9f02449fada34d5375b2 | |
parent | ab11d88588b13fb9fd937602cd0d8435dd1d28d0 [diff] | |
parent | 52a25c5a6a55a55b1fb617cfd856988d4ccee621 [diff] |
Snap for 10103804 from 52a25c5a6a55a55b1fb617cfd856988d4ccee621 to mainline-tzdata5-release Change-Id: Ib633301b68734a2bec0139d74d0ae7c1afc5446f
Pre-allocated storage for a uniform data type.
To use slab
, first add this to your Cargo.toml
:
[dependencies] slab = "0.4"
Next, add this to your crate:
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.