tag | 349c16ee497f35e5312d81eecbb17ab883a3a378 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:25:10 2024 -0700 |
object | 0927690d250cd576412b8abf90016d65b8d1bb1f |
aml_hef_350921160 (12321823,com.google.android.go.healthfitness,com.google.android.healthfitness)
commit | 0927690d250cd576412b8abf90016d65b8d1bb1f | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jul 14 07:19:46 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jul 14 07:19:46 2024 +0000 |
tree | ad992311c8e188f2baa7ddd3bb7d0f5a87eba6b7 | |
parent | b5f12d1c65a52b4b600177b5ee0a297c4bae5418 [diff] | |
parent | 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc [diff] |
Snap for 12087041 from 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc to mainline-healthfitness-release Change-Id: Id952fca11c3f6b10d737f66db3d50d3939f1c10e
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.