tag | 297b0202837151cc29a4c996b63d28beed8f547e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:11:42 2024 -0700 |
object | dad2bc9bcdf49e6820f517eb36563dc8a34e850b |
aml_ads_350923060 (12320828,com.google.android.adservices,com.google.android.go.adservices)
commit | dad2bc9bcdf49e6820f517eb36563dc8a34e850b | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 12 01:16:57 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 12 01:16:57 2024 +0000 |
tree | ad992311c8e188f2baa7ddd3bb7d0f5a87eba6b7 | |
parent | c31749f185e73feb05483dace59dd5375a7bb839 [diff] | |
parent | 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc [diff] |
Snap for 12079985 from 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc to mainline-adservices-release Change-Id: I4df44f3dbd367c79a40f7c2bac061cac4d064b6a
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.