Macro rdest::hashmap [−][src]
macro_rules! hashmap { ($( $key: expr => $val: expr ),*) => { ... }; }
Create new HashMap with emplaced elements.
Example
use rdest::hashmap; let h = hashmap![&"a" => 1, &"b" => 2]; assert_eq!(h[&"a"], 1); assert_ne!(h[&"b"], 3);