macro_rules! ht_map { ($($k:expr => $v:expr),*) => { ... }; }
Expand description
Creates a HashTrieMap
containing the given arguments:
let m = HashTrieMap::new()
.insert(1, "one")
.insert(2, "two")
.insert(3, "three");
assert_eq!(ht_map![1 => "one", 2 => "two", 3 => "three"], m);