tag | 81dc1c7ca34da059d816cddadd8df80afc55f2e6 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Jan 28 23:34:10 2022 -0800 |
object | 5922e7ee56e0cbd4ea7e9f388b3de727c875f4a4 |
Android Mainline 12.0.0 Release 26 (7557467,com.google.android.documentsui)
commit | 5922e7ee56e0cbd4ea7e9f388b3de727c875f4a4 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Apr 28 22:32:42 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Apr 28 22:32:42 2021 +0000 |
tree | 95d23281f1be722c5e7ff14d322b70b0a5120db1 | |
parent | cad73e31f1b0f31e7412178770230c50c9703715 [diff] | |
parent | 7ff3771e08c8986974cba124dcccb529c8f78fc9 [diff] |
Generate apex_available from c2a instead of a patch am: b29dfafb7d am: c220647ac7 am: a72eba52b1 am: 7ff3771e08 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/slab/+/1690025 Change-Id: I948f9a7d53d821a0a74da272ab614a843d0a0093
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.