pub struct Ordering { /* private fields */ }
A value with three states: Ordering::less(), Ordering::equal() or Ordering::greater(). Most often used to encode the result of a comparison operation.
Ordering::less()
Ordering::equal()
Ordering::greater()
impl Ordering
pub fn less() -> Self
pub fn equal() -> Self
pub fn greater() -> Self
impl Eq for Ordering
pub fn eq(self, other: Self) -> bool
A value with three states:
Ordering::less(),Ordering::equal()orOrdering::greater(). Most often used to encode the result of a comparison operation.