openethereum/src/macros.rs
2015-11-28 17:08:38 +01:00

12 lines
236 B
Rust

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