tag | 9677bb5baee013d79e94231c65ff8ab7606fa510 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Jun 08 00:32:55 2022 -0700 |
object | 2d6b001c23d09a8f842b957bbce661667658487a |
Android Mainline 12.0.0 Release 113 (8573764,com.google.android.tzdata3)
commit | 2d6b001c23d09a8f842b957bbce661667658487a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Oct 07 16:11:31 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Oct 07 16:11:31 2021 +0000 |
tree | 0ae352b18f96fcca3ce41cc57c7dc718af0a41e2 | |
parent | 5922e7ee56e0cbd4ea7e9f388b3de727c875f4a4 [diff] | |
parent | c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 [diff] |
Snap for 7802884 from c7a0ca3f7fc2a1505551536e0b90e0d209a2a824 to mainline-tzdata3-release Change-Id: I83302fe516ad992cbe2c8c6672c1d8330c3b0c30
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.