Structs§
- AtGreatest
- See
at_greatest
. - AtLeast
- See
at_least
. - BothEq
- See
EqClass::and
. - Compare
Then - See
Comparator::then
. - Comparing
- See
comparing
. - Comparing
Ref - See
comparing_ref
. - Comparing
RefWith - See
comparing_ref_with
. - Comparing
With - See
comparing_with
. - EqBy
- See
eq_by
. - EqByCmp
- See
eq_by_cmp
. - EqBy
Hash - See
eq_by_hash
. - EqByRef
- See
eq_by_ref
. - EqBy
RefWith - See
eq_by_ref_with
. - EqBy
With - See
eq_by_with
. - Natural
Eq - See
natural_eq
. - Natural
Order - See
natural_order
. - Partial
EqClass - See
partial_eq
. - Partial
Order Or - See
partial_order_or
. - Reversed
Natural Order - See
reverse_order
. - Reversed
Order - See
Comparator::reversed
.
Traits§
- Comparator
- Implementations define a linear ordering over the type
T
, which can be semantically different fromOrd::cmp
. - EqClass
- Implementations define an equivalence class over the type
T
, which can be semantically different fromPartialEq::eq
.
Functions§
- at_
greatest - This function returns a
Comparator
forT
which dividesT
instances into 2 categories. - at_
least - This function returns a
Comparator
forT
which dividesT
instances into 2 categories. - comparing
- This function returns a
Comparator
forS
which first maps values toT
then compare them withOrd::cmp
. - comparing_
ref - This function returns a
Comparator
forS
which first maps values to&T
then compare them withOrd::cmp
. - comparing_
ref_ with - This function returns a
Comparator
forS
which first maps values to&T
then compare them withcmp
. - comparing_
with - This function returns a
Comparator
forS
which first maps values toT
then compare them withcmp
. - eq_by
- This function returns an
EqClass
forS
which first maps values toT
then compare them withPartialEq::eq
. - eq_
by_ cmp - This function returns an
EqClass
forT
which considers instances equal if and only the embeddedComparator
returnsOrdering::Equal
for them. - eq_
by_ hash - This function returns an
EqClass
forT
which considers instances equal if and only if their hash is equal. - eq_
by_ ref - This function returns an
EqClass
forS
which first maps values to&T
then compare them withPartialEq::eq
. - eq_
by_ ref_ with - This function returns an
EqClass
forS
which first maps values to&T
then compare them withPartialEq::eq
. - eq_
by_ with - This function returns an
EqClass
forS
which first maps values toT
then compare them withPartialEq::eq
. - move_
to_ cmp_ fn - This function moves a
Comparator
into aFn(&T, &T) -> Ordering
to make it usable for APIs which doesn’t know aboutComparator
s. - move_
to_ eq_ fn - This function moves an
EqClass
into aFn(&T, &T) -> bool
to make it usable for APIs which doesn’t know aboutEqClass
es. - natural_
eq - This function returns an
EqClass
forT
which follows the semantics ofPartialEq::eq
. - natural_
order - This function returns a
Comparator
forT
which follows the semantics ofOrd::cmp
. - partial_
eq - This function returns an
EqClass
forT
which considers every instance to be equal to every other instace where the instances do not equal to themselves byPartialEq::eq
; otherwisePartialEq::eq
is followed. - partial_
order_ or - This function returns a
Comparator
forT
which follows the semantics ofPartialOrd::partial_cmp
but when that returnsNone
it calls the underlyingComparator
cmp
. - reverse_
order - This function returns a
Comparator
forT
which follows the reverse semantics ofOrd::cmp
.