Macro rpds::ht_map_sync

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

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

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

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