tag | 7c162b86c3dca7a08e41ec872937e528b5068390 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Sep 21 17:00:12 2020 -0700 |
object | ed33f716d2491245648deb158bd38d69d37591ff |
Platform Tools Release 30.0.4 (6686687)
commit | ed33f716d2491245648deb158bd38d69d37591ff | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Jul 16 21:24:13 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Jul 16 21:24:13 2020 +0000 |
tree | b01943383c2de1888e331457a5ed790eff563cc4 | |
parent | 675ac6b923968d483dff3b90d250ce0974e098ab [diff] | |
parent | 35b33df2ad98988f06940faf37dfb42e64bdaaef [diff] |
Snap for 6686656 from 35b33df2ad98988f06940faf37dfb42e64bdaaef to sdk-release Change-Id: I3184ce86729d1f56eeeaf28af68556aec1c35004
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.