tag | 1e16313dc2040697434d2fc0138b8af46ab7d355 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 29 00:05:37 2024 -0700 |
object | 089dd9ccd1fcf567791c15f443258a53ce8e51e3 |
aml_doc_350915120 (12319201,com.google.android.documentsui,com.google.android.go.documentsui)
commit | 089dd9ccd1fcf567791c15f443258a53ce8e51e3 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jul 14 09:29:24 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jul 14 09:29:24 2024 +0000 |
tree | ad992311c8e188f2baa7ddd3bb7d0f5a87eba6b7 | |
parent | c8a556e4aa328c69f06b8cdfda0db94da04c9c49 [diff] | |
parent | 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc [diff] |
Snap for 12087156 from 5dde49d2e91d7a571830fc138762c6e5c8f9b4dc to mainline-documentsui-release Change-Id: I130dd59b2fbf4005ef61944f1ff891922a254ce5
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.