sparse_map-0.1.1 has been yanked.
Sparse Map
A sparse map with stable generational keys. It is designed for scenarios with frequent insertions and removals.
The crate is no_std-friendly and uses generational indices to
prevent use-after-free and slot reuse bugs.
Example
use SparseMap;
let mut map = new;
let k1 = map.insert;
let k2 = map.scope
.expect;
assert_eq!;
assert_eq!;
map.remove;
assert_eq!;
Join the community!
You can join us on the Voxell discord server.
License
sparse_map is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.