Function bevy::reflect::struct_partial_eq
source · pub fn struct_partial_eq<S>(a: &S, b: &(dyn Reflect + 'static)) -> Option<bool>where
S: Struct,Expand description
Compares a Struct with a Reflect value.
Returns true if and only if all of the following are true:
bis a struct;- For each field in
a,bcontains a field with the same name andReflect::reflect_partial_eqreturnsSome(true)for the two field values.
Returns None if the comparison couldn’t even be performed.