tag | 5702ca324c5563c3eb8c5216de82c5ad3e893c19 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 07 10:58:51 2024 -0700 |
object | ebd0279d1a021e5ffb9f7065c37c08d979220ea2 |
Android 14.0.0 release 37
commit | ebd0279d1a021e5ffb9f7065c37c08d979220ea2 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Nov 17 00:13:55 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Nov 17 00:13:55 2023 +0000 |
tree | e351dd4f83e1b4d4015bf825c853a871836e47dd | |
parent | 8d1215c6e1caba19c6608b0b21072ad6e9f9cb3e [diff] | |
parent | b1e9ec39ed707bd4e559d3e6d29faee5782ffd0c [diff] |
Snap for 11111096 from b1e9ec39ed707bd4e559d3e6d29faee5782ffd0c to 24Q1-release Change-Id: Ic0997bfde274e5b16fd743f17408de3962f7df9b
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.