macro_rules! btree_map {
    {$($k: expr => $v: expr),* $(,)?} => { ... };
}
Expand description

Macro for creating a map based on a b-tree data structure.

Works just like the map! macro. Set this crate’s documentation for more examples on how to use this macro.

Example:

use map_macro::btree_map;

let goodbye = btree_map! {
  "en" => "Goodbye",
  "de" => "Auf Wiedersehen",
  "fr" => "Au revoir",
  "es" => "Adios",
};