1 2 3 4 5 6 7 8 9
macro_rules! hashmap { ($( $key:expr => $value:expr ),*) => {{ let mut map = ::std::collections::HashMap::new(); $( map.insert($key.into(), $value.into()); )* map }}; } pub(crate) use hashmap;