tag | 3e1bf828b318326c47f67c75ae3392fecc472e55 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 01 16:52:03 2023 -0800 |
object | 2896c67b0423379fb66b5ddcc05679339ca6f43c |
Platform Tools Release 33.0.4 (9550387)
commit | 2896c67b0423379fb66b5ddcc05679339ca6f43c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:02:41 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 11:02:41 2023 +0000 |
tree | ddb3e944cc30551b2db1d7636ea1529d73c0666d | |
parent | bab0b8f80ee605805ddc887fc004d6cad114d9fd [diff] | |
parent | 1ea08d4c4bfca8c339c3f195533e572ffe49b6d2 [diff] |
Snap for 9550355 from 1ea08d4c4bfca8c339c3f195533e572ffe49b6d2 to sdk-release Change-Id: I8f6292f88482e47d25924761c167d18e6717d3f4
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.