[][src]Macro ternary_tree::tst

macro_rules! tst {
    () => { ... };
    ($($key:expr => $value:expr,)+) => { ... };
    ($($key: expr => $val: expr),*) => { ... };
}

A shortcut macro to help create a small tree with a list of known "key" => value pairs. Calls insert on each pair, in order.

let map = tst!["fo" => "🍄", "bar" => "🐟", "baz" => "㵅", "fooo" => "🍄🍄🍄"];
assert_eq!(map.len(), 4)