Struct compare::Rev
[−]
[src]
pub struct Rev<C>(_);
A comparator that reverses the ordering of another.
See Compare::rev for an example.
pub struct Rev<C>(_);
A comparator that reverses the ordering of another.
See Compare::rev for an example.
impl<C, L: ?Sized, R: ?Sized> Compare<L, R> for Rev<C> where C: Compare<L, R>fn compare(&self, l: &L, r: &R) -> Orderingfn compares_lt(&self, l: &L, r: &R) -> boolfn compares_le(&self, l: &L, r: &R) -> boolfn compares_ge(&self, l: &L, r: &R) -> boolfn compares_gt(&self, l: &L, r: &R) -> boolfn compares_eq(&self, l: &L, r: &R) -> boolfn compares_ne(&self, l: &L, r: &R) -> boolfn borrowing(self) -> Borrowing<Self, L, R> where Self: Sizedfn rev(self) -> Rev<Self> where Self: Sizedfn swap(self) -> Swap<Self> where Self: Sizedfn then<D>(self, then: D) -> Then<Self, D> where D: Compare<L, R>, Self: Sizedimpl<C: Debug> Debug for Rev<C>impl<C: Eq> Eq for Rev<C>impl<C: PartialEq> PartialEq for Rev<C>impl<C: Default> Default for Rev<C>impl<C: Copy> Copy for Rev<C>impl<C: Clone> Clone for Rev<C>fn clone(&self) -> Rev<C>fn clone_from(&mut self, source: &Self)