tag | ba6980a860b0fb05c929e6910aeb52e45b897f7e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Dec 07 00:48:40 2023 -0800 |
object | ce14b65959205d40ed5432599ee0ba70cfcce04b |
frc_340819220 (11022343,com.google.android.captiveportallogin,com.google.android.configinfrastructure,com.google.android.scheduling)
commit | ce14b65959205d40ed5432599ee0ba70cfcce04b | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 18:02:10 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 18:02:10 2023 +0000 |
tree | 7f08bb33b7d46ae8a14a9f02449fada34d5375b2 | |
parent | 01ca3d314c721975cbd0bd7e33cf137399ddd16c [diff] | |
parent | 55ff74c1a2cba4ba4a6664b00bc3131d0ddba835 [diff] |
Snap for 9912757 from 55ff74c1a2cba4ba4a6664b00bc3131d0ddba835 to aml-frc-release Change-Id: Ic8e0a26719182014c8b93f694a1919d90cd8fbb8
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.