Module ord

Source
Expand description

Comparing and ordering values.

Structs§

Compare
🌐 Provides comparing methods for T.
Reverse
core A helper struct for reverse ordering.

Enums§

Ordering
core The result of a comparison between two values.

Traits§

Eq
core Trait for comparisons corresponding to equivalence relations.
Ord
core Trait for types that form a total order.
PartialEq
core Trait for comparisons using the equality operator.
PartialOrd
core Trait for types that form a partial order.

Derive Macros§

Eq
core Derive macro generating an impl of the trait Eq.
Ord
core Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
PartialEq
core Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.
PartialOrd
core Derive macro generating an impl of the trait PartialOrd. The behavior of this macro is described in detail here.