Crate test_tools::exposed::meta::dependency::literally
source · Expand description
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§
- Literally just a BTreeMap literal with keys and values into’d.
- Literally just a BTreeSet literal with values into’d.
- Literally just a BinaryHeap literal with values into’d.
- Literally just a HashMap literal with keys and values into’d.
- Literally just a HashSet literal with values into’d.
- Literally just a LinkedList literal with values into’d.
- Literally just a VecDeque literal with values into’d.