tag | f92f20e55e0a70a36bb6edeb7fe8c9c6f878314e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Apr 24 20:11:03 2024 -0700 |
object | ef4d5f197724a6ad07dd74634898c67240002709 |
aml_wif_341610000 (11391728,com.google.android.wifi)
commit | ef4d5f197724a6ad07dd74634898c67240002709 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 01:05:22 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 01:05:22 2023 +0000 |
tree | 7f08bb33b7d46ae8a14a9f02449fada34d5375b2 | |
parent | a149e44da7fc5a0ecfd10c9e21960081975f1a30 [diff] | |
parent | 52a25c5a6a55a55b1fb617cfd856988d4ccee621 [diff] |
Snap for 10447354 from 52a25c5a6a55a55b1fb617cfd856988d4ccee621 to mainline-wifi-release Change-Id: I1bc8fb8a86780b44e8b536dc7696cc69e57f5970
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.