Module std::iter::order [] [src]

Unstable

: needs review and revision

Functions for lexicographical ordering of sequences.

Lexicographical ordering through <`<,`, <=`<=,`, >=`>=,`, >`>requires that the elements implement both` requires that the elements implement both PartialEq`PartialEqand` and PartialOrd`PartialOrd`.

If two sequences are equal up until the point where one ends, the shorter sequence compares less.

Functions

cmp [Unstable]

Order a`aand` and b`blexicographically using` lexicographically using Ord`Ord`

eq [Unstable]

Compare a`aand` and b`bfor equality (Using partial equality,` for equality (Using partial equality, PartialEq`PartialEq`)

equals [Unstable]

Compare a`aand` and b`bfor equality using` for equality using Eq`Eq`

ge [Unstable]

Returns a`a>=` >= b`blexicographically (Using partial order,` lexicographically (Using partial order, PartialOrd`PartialOrd`)

gt [Unstable]

Returns a`a>` > b`blexicographically (Using partial order,` lexicographically (Using partial order, PartialOrd`PartialOrd`)

le [Unstable]

Returns a`a<=` <= b`blexicographically (Using partial order,` lexicographically (Using partial order, PartialOrd`PartialOrd`)

lt [Unstable]

Returns a`a<` < b`blexicographically (Using partial order,` lexicographically (Using partial order, PartialOrd`PartialOrd`)

ne [Unstable]

Compares a`aand` and b`bfor nonequality (Using partial equality,` for nonequality (Using partial equality, PartialEq`PartialEq`)

partial_cmp [Unstable]

Order a`aand` and b`blexicographically using` lexicographically using PartialOrd`PartialOrd`