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
ComparatorforTwhich dividesTinstances into 2 categories. - at_
least - This function returns a
ComparatorforTwhich dividesTinstances into 2 categories. - comparing
- This function returns a
ComparatorforSwhich first maps values toTthen compare them withOrd::cmp. - comparing_
ref - This function returns a
ComparatorforSwhich first maps values to&Tthen compare them withOrd::cmp. - comparing_
ref_ with - This function returns a
ComparatorforSwhich first maps values to&Tthen compare them withcmp. - comparing_
with - This function returns a
ComparatorforSwhich first maps values toTthen compare them withcmp. - eq_by
- This function returns an
EqClassforSwhich first maps values toTthen compare them withPartialEq::eq. - eq_
by_ cmp - This function returns an
EqClassforTwhich considers instances equal if and only the embeddedComparatorreturnsOrdering::Equalfor them. - eq_
by_ hash - This function returns an
EqClassforTwhich considers instances equal if and only if their hash is equal. - eq_
by_ ref - This function returns an
EqClassforSwhich first maps values to&Tthen compare them withPartialEq::eq. - eq_
by_ ref_ with - This function returns an
EqClassforSwhich first maps values to&Tthen compare them withPartialEq::eq. - eq_
by_ with - This function returns an
EqClassforSwhich first maps values toTthen compare them withPartialEq::eq. - move_
to_ cmp_ fn - This function moves a
Comparatorinto aFn(&T, &T) -> Orderingto make it usable for APIs which doesn’t know aboutComparators. - move_
to_ eq_ fn - This function moves an
EqClassinto aFn(&T, &T) -> boolto make it usable for APIs which doesn’t know aboutEqClasses. - natural_
eq - This function returns an
EqClassforTwhich follows the semantics ofPartialEq::eq. - natural_
order - This function returns a
ComparatorforTwhich follows the semantics ofOrd::cmp. - partial_
eq - This function returns an
EqClassforTwhich considers every instance to be equal to every other instace where the instances do not equal to themselves byPartialEq::eq; otherwisePartialEq::eqis followed. - partial_
order_ or - This function returns a
ComparatorforTwhich follows the semantics ofPartialOrd::partial_cmpbut when that returnsNoneit calls the underlyingComparatorcmp. - reverse_
order - This function returns a
ComparatorforTwhich follows the reverse semantics ofOrd::cmp.