tag | 0fda5e42c18f30dd73f43afe0705ddb4691370ef | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Dec 05 17:53:13 2022 -0800 |
object | 4f1f371c6a8b3e7c04c94628191bb6eda3955d53 |
Android Platform 12.0.0 Release 14 (SPM1.220819.017)
commit | 4f1f371c6a8b3e7c04c94628191bb6eda3955d53 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Apr 30 01:07:04 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Apr 30 01:07:04 2021 +0000 |
tree | 95d23281f1be722c5e7ff14d322b70b0a5120db1 | |
parent | b03aa691f77328178abb60c8a21df149e602952e [diff] | |
parent | 7ff3771e08c8986974cba124dcccb529c8f78fc9 [diff] |
Snap for 7325276 from 7ff3771e08c8986974cba124dcccb529c8f78fc9 to sc-release Change-Id: I56e84f5b5b296114cee9330cd913a15e5332aeea
Pre-allocated storage for a uniform data type.
To use slab
, first add this to your Cargo.toml
:
[dependencies] slab = "0.4.2"
Next, add this to your crate:
extern crate slab; 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.