Struct comparator::combinators::ThenComparing
source · pub struct ThenComparing<T, U>(_, _);
Expand description
A comparator that chains another comparator.
Trait Implementations
sourceimpl<T: Clone, U: Clone> Clone for ThenComparing<T, U>
impl<T: Clone, U: Clone> Clone for ThenComparing<T, U>
sourcefn clone(&self) -> ThenComparing<T, U>
fn clone(&self) -> ThenComparing<T, U>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T, U, W> Comparator<W> for ThenComparing<T, U>where
T: Comparator<W>,
U: Comparator<W>,
impl<T, U, W> Comparator<W> for ThenComparing<T, U>where
T: Comparator<W>,
U: Comparator<W>,
sourcefn 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
sourcefn 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
sourceimpl<T: Debug, U: Debug> Debug for ThenComparing<T, U>
impl<T: Debug, U: Debug> Debug for ThenComparing<T, U>
impl<T: Copy, U: Copy> Copy for ThenComparing<T, U>
Auto Trait Implementations
impl<T, U> RefUnwindSafe for ThenComparing<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ThenComparing<T, U>where
T: Send,
U: Send,
impl<T, U> Sync for ThenComparing<T, U>where
T: Sync,
U: Sync,
impl<T, U> Unpin for ThenComparing<T, U>where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for ThenComparing<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more