Struct compare::Borrowing [] [src]

pub struct Borrowing<C, Lb: ?Sized, Rb: ?Sized = Lb>(_, _)
where
    C: Compare<Lb, Rb>
;

A comparator that borrows its parameters before comparing them.

See Compare::borrow for an example.

Trait Implementations

impl<C, L: ?Sized, R: ?Sized, Lb: ?Sized, Rb: ?Sized> Compare<L, R> for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb>,
    L: Borrow<Lb>,
    R: Borrow<Rb>, 
[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

impl<C, Lb: ?Sized, Rb: ?Sized> Clone for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C, Lb: ?Sized, Rb: ?Sized> Copy for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + Copy
[src]

impl<C, Lb: ?Sized, Rb: ?Sized> Default for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + Default
[src]

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

impl<C, Lb: ?Sized, Rb: ?Sized> PartialEq for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + PartialEq
[src]

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

This method tests for !=.

impl<C, Lb: ?Sized, Rb: ?Sized> Eq for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + Eq
[src]

impl<C, Lb: ?Sized, Rb: ?Sized> Debug for Borrowing<C, Lb, Rb> where
    C: Compare<Lb, Rb> + Debug
[src]

Formats the value using the given formatter.