Macro loro_internal::fx_map

source ·
macro_rules! fx_map {
    ($($key:expr => $value:expr),*) => { ... };
}
Expand description
use fxhash::FxHashMap;
use loro_internal::fx_map;

let mut expected = FxHashMap::default();
expected.insert("test".to_string(), "test".to_string());
expected.insert("test2".to_string(), "test2".to_string());
let actual = fx_map!("test".into() => "test".into(), "test2".into() => "test2".into());
assert_eq!(expected, actual);