Function bevy::reflect::enum_partial_eq

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:

  • b is an enum;
  • b is the same variant as a;
  • For each field in a, b contains a field with the same name and Reflect::reflect_partial_eq returns Some(true) for the two field values.