[][src]Macro nummap::map

macro_rules! map {
    ($(($k:expr, $v:expr $(,)? ),)* ; $tp:ty) => { ... };
    ($(($k:expr, $v:expr $(,)? )),* ; $tp:ty) => { ... };
    ($($t:tt)*) => { ... };
}

Creates a NumMap in a simiar manner to vec![].

The specific BuildHasher to use can be specified after the mappings.

map![(0, 1), (2, 3); std::collections::hash_map::RandomState];