macro_rules! map {
() => { ... };
($($k:expr => $v:expr),+ $(,)?) => { ... };
}Expand description
Construct a CBOR map from a list of key => value pairs.
Keys and values are converted into Value.
let m = map! { "x" => 1, "y" => 2 };
assert!(m.data_type().is_map());