1.0.0[][src]Module core::cmp

Functionality for ordering and comparison.

This module contains various tools for ordering and comparing values. In summary:

For more details, see the respective documentation of each item in the list.

Structs

Reverse

A helper struct for reverse ordering.

Enums

Ordering

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

Traits

Eq

Trait for equality comparisons which are equivalence relations.

Ord

Trait for types that form a total order.

PartialEq

Trait for equality comparisons which are partial equivalence relations.

PartialOrd

Trait for values that can be compared for a sort-order.

Functions

max_byExperimental

Returns the maximum of two values with respect to the specified comparison function.

max_by_keyExperimental

Returns the element that gives the maximum value from the specified function.

min_byExperimental

Returns the minimum of two values with respect to the specified comparison function.

min_by_keyExperimental

Returns the element that gives the minimum value from the specified function.

max

Compares and returns the maximum of two values.

min

Compares and returns the minimum of two values.