pub fn enum_partial_eq<TEnum>(
a: &TEnum,
b: &(dyn PartialReflect + 'static),
) -> Option<bool>
Expand description
Compares an Enum
with a PartialReflect
value.
Returns true if and only if all of the following are true:
b
is an enum;b
is the same variant asa
;- For each field in
a
,b
contains a field with the same name andPartialReflect::reflect_partial_eq
returnsSome(true)
for the two field values.