no_std_compat

Module cmp

Source

Structs§

  • A helper struct for reverse ordering.

Enums§

  • An Ordering is the result of a comparison between two values.

Traits§

Functions§

  • Compares and returns the maximum of two values.
  • Returns the maximum of two values with respect to the specified comparison function.
  • Returns the element that gives the maximum value from the specified function.
  • Compares and returns the minimum of two values.
  • Returns the minimum of two values with respect to the specified comparison function.
  • Returns the element that gives the minimum value from the specified function.
  • minmaxExperimental
    Compares and sorts two values, returning minimum and maximum.
  • minmax_byExperimental
    Returns minimum and maximum values with respect to the specified comparison function.
  • minmax_by_keyExperimental
    Returns minimum and maximum values with respect to the specified key function.

Derive Macros§

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