bevy_reflect

Function set_partial_eq

Source
pub fn set_partial_eq<M: Set>(a: &M, b: &dyn PartialReflect) -> Option<bool>
Expand description

Compares a Set with a PartialReflect value.

Returns true if and only if all of the following are true:

  • b is a set;
  • b is the same length as a;
  • For each value pair in a, b contains the value too, and PartialReflect::reflect_partial_eq returns Some(true) for the two values.

Returns None if the comparison couldn’t even be performed.