tag | ae0358abf898bb30bc46b22592a2f7e94e31a892 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Jun 08 14:44:17 2020 -0700 |
object | bf81bb22c2286b7c01ab9b005a3b5065dee52689 |
Platform Tools Release 30.0.2 (6538114)
commit | bf81bb22c2286b7c01ab9b005a3b5065dee52689 | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Wed May 27 20:47:57 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Wed May 27 20:47:57 2020 +0000 |
tree | 8d8fc468a6d5cc67e70f968c9cd2080310f13c7f | |
parent | 210e1bfc543023d06763707efdde7dad52b44172 [diff] | |
parent | 4a07afab395e6fa7515c3519440c66207799c322 [diff] |
Snap for 6533464 from 4a07afab395e6fa7515c3519440c66207799c322 to sdk-release Change-Id: I6701461fe0d5774d7c2778edbfe6b73659288af1
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.