pub fn enum_partial_cmp( a: &(dyn Enum + 'static), b: &(dyn PartialReflect + 'static), ) -> Option<Ordering>
Compares two Enum values (by variant) and returns their ordering.
Enum
Returns None if the comparison couldn’t be performed (e.g., kinds mismatch or an element comparison returns None).
None
The ordering is same with derive macro. First order by variant index, then by fields.
derive