Macro automerge_test::map
source · macro_rules! map {
(@inner { $($value:expr,)+ }) => { ... };
(@inner { $($value:expr),* }) => { ... };
($($key:expr => $inner:tt,)+) => { ... };
($($key:expr => $inner:tt),*) => { ... };
}
Expand description
Construct RealizedObject::Map
. This macro takes a nested set of curl braces. The outer set is
the keys of the map, the inner set is the set of values for that key:
map!{
"key" => {
"value1",
"value2",
}
};
The map above would represent a map with a conflict on the “key” property. The values can be
anything which implements Into<RealizedObject>
. Including nested calls to map!
or list!
.