pub struct Comparing<F> { /* private fields */ }Expand description
A comparator that compares using its key function.
Trait Implementations§
Source§impl<F, T, U> Comparator<T> for Comparing<F>
impl<F, T, U> Comparator<T> for Comparing<F>
Source§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
Source§fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F>
fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F>
Chains a comparator with a key function. Read more
impl<F: Copy> Copy for Comparing<F>
Auto Trait Implementations§
impl<F> Freeze for Comparing<F>where
F: Freeze,
impl<F> RefUnwindSafe for Comparing<F>where
F: RefUnwindSafe,
impl<F> Send for Comparing<F>where
F: Send,
impl<F> Sync for Comparing<F>where
F: Sync,
impl<F> Unpin for Comparing<F>where
F: Unpin,
impl<F> UnwindSafe for Comparing<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more