tag | 8ed2314a7e3b0f5feec11c3bac26b730b06956b4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:28:07 2024 -0700 |
object | 2eef5138a8440f2e95a1eb820a55804f23e6cdc8 |
aml_art_350913340 (12371889,com.google.android.art,com.google.android.go.art)
commit | 2eef5138a8440f2e95a1eb820a55804f23e6cdc8 | [log] [tgz] |
---|---|---|
author | Roman Yepishev <ryepishev@google.com> | Thu Jun 06 13:50:51 2024 -0400 |
committer | Roman Yepishev <ryepishev@google.com> | Thu Jun 06 13:50:51 2024 -0400 |
tree | 948bac536f7a9f37b3eefffef84a695427c4c12e | |
parent | cf4326cccd02faae2a275fb67d8f79777b230537 [diff] | |
parent | 2f14212da68f44dcf380c8bd8fbdc853c564de96 [diff] |
Keep history after reset (b/34176642)
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.