Type Definition eytzinger_map::EytzingerArrayMap[][src]

type EytzingerArrayMap<K, V, const LEN: usize> = EytzingerMap<[(K, V); LEN]>;
Expand description

A map based on an array with Eytzinger binary search. See EytzingerMap for details.

use eytzinger_map::EytzingerArrayMap;

let map = EytzingerArrayMap::new([(1, "a"), (2, "b"), (3, "c")]);
assert_eq!(map[&1], "a");