12 lines
236 B
Rust
12 lines
236 B
Rust
|
macro_rules! map(
|
||
|
{ $($key:expr => $value:expr),+ } => {
|
||
|
{
|
||
|
let mut m = ::std::collections::HashMap::new();
|
||
|
$(
|
||
|
m.insert($key, $value);
|
||
|
)+
|
||
|
m
|
||
|
}
|
||
|
};
|
||
|
);
|