tag | c7a8b93ec09890a80257b19db5c732f5ff6d9c57 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Jul 05 17:17:11 2023 -0700 |
object | 77344e3ed914812efd564f16ac80a16f99d1bfe9 |
Android platform 12.1.0 release 17
commit | 77344e3ed914812efd564f16ac80a16f99d1bfe9 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sat May 15 03:06:53 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sat May 15 03:06:53 2021 +0000 |
tree | 95d23281f1be722c5e7ff14d322b70b0a5120db1 | |
parent | c1670736d295e8b7dae65de0b2bb3edea9eca421 [diff] | |
parent | 7f65200258a009a9b4d8c31bd98e73211834efba [diff] |
Snap for 7362794 from 7f65200258a009a9b4d8c31bd98e73211834efba to sc-v2-release Change-Id: Ib0eec4158138da2eb242c464f45915467c8a3ded
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.