[−][src]Crate literally
When you literally just want a literal of the std::collections
types.
let m: HashMap<String, HashSet<String>> = hmap!{ "key" => hset!{ "value" } }; assert_eq!(m.get("key").unwrap().get("value"), Some(&"value".to_string()))
Macros
bmap | Literally just a BTreeMap literal with keys and values into'd. |
bset | Literally just a BTreeSet literal with values into'd. |
heap | Literally just a BinaryHeap literal with values into'd. |
hmap | Literally just a HashMap literal with keys and values into'd. |
hset | Literally just a HashSet literal with values into'd. |
list | Literally just a LinkedList literal with values into'd. |
vecd | Literally just a VecDeque literal with values into'd. |