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

Unstable

: needs review and revision

Functions for lexicographical ordering of sequences.

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

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

Functions

cmp [Unstable]

Order a and b lexicographically using Ord

eq [Unstable]

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

equals [Unstable]

Compare a and b for equality using Eq

ge [Unstable]

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

gt [Unstable]

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

le [Unstable]

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

lt [Unstable]

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

ne [Unstable]

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

partial_cmp [Unstable]

Order a and b lexicographically using PartialOrd