rustdoc

Macro map

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

A macro to create a FxHashMap.

Example:

let letters = map!{"a" => "b", "c" => "d"};

Trailing commas are allowed. Commas between elements are required (even if the expression is a block).