pub fn map_partial_eq<M: Map + ?Sized>(
a: &M,
b: &dyn PartialReflect,
) -> Option<bool>
Expand description
Compares a Map
with a PartialReflect
value.
Returns true if and only if all of the following are true:
b
is a map;b
is the same length asa
;- For each key-value pair in
a
,b
contains a value for the given key, andPartialReflect::reflect_partial_eq
returnsSome(true)
for the two values.
Returns None
if the comparison couldn’t even be performed.