tag | d92a9a99823701ddc2d28c1dbf583e5cb0bf3605 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Oct 28 23:34:31 2024 -0700 |
object | e74ad484b22ce3675e3c5514a70f27c61da11eb8 |
aml_tet_350911120 (12278003,com.google.android.go.tethering,com.google.android.tethering)
commit | e74ad484b22ce3675e3c5514a70f27c61da11eb8 | [log] [tgz] |
---|---|---|
author | Roman Yepishev <ryepishev@google.com> | Tue Jun 04 17:02:39 2024 -0400 |
committer | Roman Yepishev <ryepishev@google.com> | Tue Jun 04 17:02:39 2024 -0400 |
tree | 948bac536f7a9f37b3eefffef84a695427c4c12e | |
parent | cf4326cccd02faae2a275fb67d8f79777b230537 [diff] | |
parent | 69f3c85ae697f1fdc34208faff8b03c4f4013d67 [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.