beach_map-0.3.0 has been yanked.
BeachMap
A BeachMap is a SlotMap, a data structure used to store elements and access them with an id.
Example:
use BeachMap;
let mut beach = new;
let id1 = beach.insert;
let id2 = beach.insert;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
beach = 7;
assert_eq!;
beach.extend;
assert_eq!;
Rayon
To use rayon with beach_map, you need rayon in your dependencies and add the parallel feature to beach_map.
Example:
use BeachMap;
use *;
let mut beach = new;
let ids = beach.extend;
beach.par_iter_mut.for_each;
for i in 0..ids.len
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.