7 lines
168 B
Rust
7 lines
168 B
Rust
macro_rules! map {
|
|
($($k:expr => $v:expr),* $(,)?) => {{
|
|
let mut m = ::std::collections::BTreeMap::new();
|
|
$(m.insert($k, $v);)+
|
|
m
|
|
}};
|
|
}
|