pub struct Descending;Expand description
Sort merge in descending order
Trait Implementations§
Source§impl<T> Compare<T> for Descendingwhere
T: Ord,
impl<T> Compare<T> for Descendingwhere
T: Ord,
Source§fn compare(&self, l: &T, r: &T) -> Ordering
fn compare(&self, l: &T, r: &T) -> Ordering
Compares two values, returning
Less, Equal, or Greater if l is less
than, equal to, or greater than r, respectively.Source§fn borrowing(self) -> Borrowing<Self, L, R>where
Self: Sized,
fn borrowing(self) -> Borrowing<Self, L, R>where
Self: Sized,
Borrows the comparator’s parameters before comparing them. Read more
Source§fn rev(self) -> Rev<Self>where
Self: Sized,
fn rev(self) -> Rev<Self>where
Self: Sized,
Reverses the ordering of the comparator. Read more
Auto Trait Implementations§
impl Freeze for Descending
impl RefUnwindSafe for Descending
impl Send for Descending
impl Sync for Descending
impl Unpin for Descending
impl UnsafeUnpin for Descending
impl UnwindSafe for Descending
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