tag | ce5de5df562683ed73d1b8c14001b41261fa8c5a | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon May 06 21:48:08 2024 -0700 |
object | 8df0ce4f408648ddaa36af39949f3d0c630779a5 |
Android platform 14.0.0 release 7
commit | 8df0ce4f408648ddaa36af39949f3d0c630779a5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 10 02:22:26 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 10 02:22:26 2023 +0000 |
tree | 7f08bb33b7d46ae8a14a9f02449fada34d5375b2 | |
parent | 0eab370a9ef1146c56d512c5e4c07075dac6ecf3 [diff] | |
parent | b4d6ef52b3455146bc03e8291ce4859cc1ec8d42 [diff] |
Snap for 9719949 from b4d6ef52b3455146bc03e8291ce4859cc1ec8d42 to udc-release Change-Id: I843f0a5f2ef29a5822835b678d00d5945b701608
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.