Struct comparator::combinators::Comparing
source · [−]pub struct Comparing<F> { /* private fields */ }
Expand description
A comparator that compares using its key function.
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<F> RefUnwindSafe for Comparing<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for Comparing<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more