tag | 703f66239e0616933b48a59b2a03ef2bdd0d2a37 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:29:31 2024 -0700 |
object | f0b966029c44948424f98ef8c1296e12720e72a2 |
aml_swc_350914040 (12394574,com.google.android.go.media.swcodec,com.google.android.media.swcodec1)
commit | f0b966029c44948424f98ef8c1296e12720e72a2 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 13 12:14:48 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 13 12:14:48 2024 +0000 |
tree | ad992311c8e188f2baa7ddd3bb7d0f5a87eba6b7 | |
parent | c27a04c9b18de7a417c8b39878743d61dab50784 [diff] | |
parent | 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc [diff] |
Snap for 12086388 from 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc to mainline-media-swcodec-release Change-Id: I5cf95d33cb0b86e4b65a0bca09941081e2c26e92
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.