Struct compare::Rev [] [src]

pub struct Rev<C>(_);

A comparator that reverses the ordering of another.

See Compare::rev for an example.

Trait Implementations

impl<C, L: ?Sized, R: ?Sized> Compare<L, R> for Rev<C> where C: Compare<L, R>

fn compare(&self, l: &L, r: &R) -> Ordering

fn compares_lt(&self, l: &L, r: &R) -> bool

fn compares_le(&self, l: &L, r: &R) -> bool

fn compares_ge(&self, l: &L, r: &R) -> bool

fn compares_gt(&self, l: &L, r: &R) -> bool

fn compares_eq(&self, l: &L, r: &R) -> bool

fn compares_ne(&self, l: &L, r: &R) -> bool

fn borrowing(self) -> Borrowing<Self, L, R> where Self: Sized

fn rev(self) -> Rev<Self> where Self: Sized

fn swap(self) -> Swap<Self> where Self: Sized

fn then<D>(self, then: D) -> Then<Self, D> where D: Compare<L, R>, Self: Sized

Derived Implementations

impl<C: Debug> Debug for Rev<C>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<C: Eq> Eq for Rev<C>

impl<C: PartialEq> PartialEq for Rev<C>

fn eq(&self, __arg_0: &Rev<C>) -> bool

fn ne(&self, __arg_0: &Rev<C>) -> bool

impl<C: Default> Default for Rev<C>

fn default() -> Rev<C>

impl<C: Copy> Copy for Rev<C>

impl<C: Clone> Clone for Rev<C>

fn clone(&self) -> Rev<C>

1.0.0fn clone_from(&mut self, source: &Self)