tag | 525d241b3545ccea7157ea743bab5c4f8e39c82e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:05:49 2024 -0700 |
object | a18955e6da241f0096fada6a9a3120ce85dafe51 |
aml_mpr_350914160 (12288275,com.google.android.go.mediaprovider,com.google.android.mediaprovider)
commit | a18955e6da241f0096fada6a9a3120ce85dafe51 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Aug 08 09:18:54 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Aug 08 09:18:54 2024 +0000 |
tree | bfae8309c3553f359db2e0091763333a42ee650c | |
parent | 3f830fb14151eb3038f59e8faf134222d9e133d5 [diff] | |
parent | 35c6d580e3c2007221ae4c4ee9979eb0309185e5 [diff] |
Snap for 12201567 from 35c6d580e3c2007221ae4c4ee9979eb0309185e5 to mainline-mediaprovider-release Change-Id: I9f255a30e0229e6511c1d245ee9e5d6007da7df4
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.