Struct compare::Then [] [src]

pub struct Then<C, D>(_, _);

A comparator that lexicographically combines two others.

See Compare::then for an example.

Trait Implementations

impl<C: Clone, D: Clone> Clone for Then<C, D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: Copy, D: Copy> Copy for Then<C, D>
[src]

impl<C: Default, D: Default> Default for Then<C, D>
[src]

Returns the "default value" for a type. Read more

impl<C: PartialEq, D: PartialEq> PartialEq for Then<C, D>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<C: Eq, D: Eq> Eq for Then<C, D>
[src]

impl<C: Debug, D: Debug> Debug for Then<C, D>
[src]

Formats the value using the given formatter.

impl<C, D, L: ?Sized, R: ?Sized> Compare<L, R> for Then<C, D> where
    C: Compare<L, R>,
    D: Compare<L, R>, 
[src]

Compares two values, returning Less, Equal, or Greater if l is less than, equal to, or greater than r, respectively. Read more

Checks if l is less than r.

Checks if l is less than or equal to r.

Checks if l is greater than or equal to r.

Checks if l is greater than r.

Checks if l is equal to r.

Checks if l is not equal to r.

Borrows the comparator's parameters before comparing them. Read more

Reverses the ordering of the comparator. Read more

Swaps the comparator's parameters, maintaining the underlying ordering. Read more

Lexicographically combines the comparator with another. Read more