Struct comparator::combinators::NaturalOrder
source · pub struct NaturalOrder<T> { /* private fields */ }
Expand description
A natural ordering comparator.
Trait Implementations
sourceimpl<T> Clone for NaturalOrder<T>
impl<T> Clone for NaturalOrder<T>
sourceimpl<T> Comparator<T> for NaturalOrder<T>where
T: Ord,
impl<T> Comparator<T> for NaturalOrder<T>where
T: Ord,
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 for NaturalOrder<T>
impl<T> Debug for NaturalOrder<T>
sourceimpl<T> Default for NaturalOrder<T>where
T: Ord,
impl<T> Default for NaturalOrder<T>where
T: Ord,
impl<T> Copy for NaturalOrder<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for NaturalOrder<T>
impl<T> Send for NaturalOrder<T>
impl<T> Sync for NaturalOrder<T>
impl<T> Unpin for NaturalOrder<T>
impl<T> UnwindSafe for NaturalOrder<T>
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