Macro hash_map

Source
macro_rules! hash_map {
    () => { ... };
    ($($key:expr => $val:expr),*) => { ... };
}
Expand description

Creates a new hash map instance.

§Arguments

  • K - The type of keys in the map.
  • V - The type of values in the map.

§Returns

  • HashMap<K, V> - A new hash map containing the given key-value pairs.