commit | 467e34c698f25cd8a596ca3f894d0ec0dcf84452 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 14:32:16 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 14:39:53 2020 -0700 |
tree | 00a64d7fbec9239ab7c3f4df0432759bd2332b9b | |
parent | ebb18812f868618e183d2c58e43b1de3bf0a9c13 [diff] |
Add OWNERS and fix version string * Fix METADATA version string, which must be d1.d2.d3 to work with external_updater. Test: make Change-Id: Ib00a3a94e4bc79bf7d326df5177a7f6a8d71090c
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.