Functionality for ordering and comparison.
This module contains various tools for ordering and comparing values. In summary:
PartialEqare traits that allow you to define total and partial equality between values, respectively. Implementing them overloads the
PartialOrdare traits that allow you to define total and partial orderings between values, respectively. Implementing them overloads the
Orderingis an enum returned by the main functions of
PartialOrd, and describes an ordering.
Reverseis a struct that allows you to easily reverse an ordering.
minare functions that build off of
Ordand allow you to find the maximum or minimum of two values.
For more details, see the respective documentation of each item in the list.
A helper struct for reverse ordering.
Trait for equality comparisons which are equivalence relations.
Trait for types that form a total order.
Trait for equality comparisons which are partial equivalence relations.
Trait for values that can be compared for a sort-order.
Compares and returns the maximum of two values.
Compares and returns the minimum of two values.