Module core::iter::order [] [src]

Unstable

: needs review and revision

Functions for lexicographical ordering of sequences.

Lexicographical ordering through <, <=`<=,`, >=`>=,`, >`>requires that the elements implement bothPartialEqand` and 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 usingOrd`

eq [Unstable]

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

equals [Unstable]

Compare a`aand` and b`bfor equality usingEq`

ge [Unstable]

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

gt [Unstable]

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

le [Unstable]

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

lt [Unstable]

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

ne [Unstable]

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

partial_cmp [Unstable]

Order a`aand` and b`blexicographically usingPartialOrd`