btmap!() { /* proc-macro */ }
Expand description

Create std::collections::BTreeMap from list of key-value pairs.

Example

use helper::btmap;

let m = btmap! {
    "a": 1,
    "b": 2,
};
assert_eq!(m["a"], 1);
assert_eq!(m["b"], 2);