[−][src]Macro tst::tstmap
- Create a
TSTMap
containing a given list of elements:
Examples
#[macro_use] extern crate tst; let m = tstmap!{ "b" => 2, "a" => -1, "c" => 3, }; assert_eq!(3, m.len()); assert_eq!(m["a"], -1); assert_eq!(m["b"], 2); assert_eq!(m["c"], 3);