macro_rules! ne_indexmap {
    ($hk:expr => $hv:expr, $( $xk:expr => $xv:expr,)+) => { ... };
    ($hk:expr => $hv:expr, $( $xk:expr => $xv:expr ),*) => { ... };
    ($hk:expr => $hv:expr) => { ... };
}
Expand description

Short-hand for constructing NEIndexMap values.

use nonempty_collections::ne_indexmap;

let m = ne_indexmap!{"elves" => 3000, "orcs" => 10000};
assert_eq!(2, m.len().get());