Struct comparator::combinators::Reversed
source · [−]pub struct Reversed<T>(_);
Expand description
A comparator that reverse its underlying comparator.
Trait Implementations
fn then_comparing<U>(self, other: U) -> ThenComparing<Self, U> where
Self: Sized,
U: Comparator<T>,
fn then_comparing<U>(self, other: U) -> ThenComparing<Self, U> where
Self: Sized,
U: Comparator<T>,
Chains two comparators. Read more
fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F> where
Self: Sized,
F: Fn(&T) -> U,
U: Ord,
fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F> where
Self: Sized,
F: Fn(&T) -> U,
U: Ord,
Chains a comparator with a key function. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Reversed<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Reversed<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more