Function bevy::reflect::enum_partial_eq
source · pub fn enum_partial_eq<TEnum>(
a: &TEnum,
b: &(dyn Reflect + 'static)
) -> Option<bool>where
TEnum: Enum,Expand description
Compares an Enum with a Reflect value.
Returns true if and only if all of the following are true:
bis an enum;bis the same variant asa;- For each field in
a,bcontains a field with the same name andReflect::reflect_partial_eqreturnsSome(true)for the two field values.