map! Rust crate
This crate provides a macro map!.
The macro creates a map collection then insert key-value pairs.
The macro uses the Rust standard library HashMap.
Standard Rust looks like this:
let mut m = new;
m.insert;
m.insert;
The map! macro provides this syntax with parentheses:
# use *;
let m = map!;
The map! macro provides this syntax with arrows:
# use *;
let m = map!;
You can use multiple lines or one line, as you prefer.
You can use trailing commas or not, as you prefer.