Crate emap

Source
Expand description

There is a map with a fixed capacity and integers as keys.

For example, here is a map with a few keys can be created:

use emap::Map;
let mut m : Map<&str> = Map::with_capacity_none(10);
m.insert(0, "Hello, world!");
m.insert(1, "Good bye!");
assert_eq!(2, m.len());

The map will have exactly ten elements. An attempt to add an 11th element will lead to a panic.

Structsยง

IntoIter
Into-iterator over the Map.
IntoValues
Into-iterator over the values of a Map.
Iter
Iterator over the Map.
IterMut
Mutable iterator over the Map.
Keys
Iterator over the keys of a Map.
Map
A map with a fixed capacity and usize as keys.
Values
Iterator over the values of a Map.