Macro rpds::rbt_map_sync

source ·
macro_rules! rbt_map_sync {
    ($($k:expr => $v:expr),*) => { ... };
}
Expand description

Creates a RedBlackTreeMap that implements Sync, containing the given arguments:

let m = RedBlackTreeMap::new_sync()
    .insert(1, "one")
    .insert(2, "two")
    .insert(3, "three");

assert_eq!(rbt_map_sync![1 => "one", 2 => "two", 3 => "three"], m);