pub struct OrdComparator;Trait Implementations§
Source§impl<S> Compare<HeadTail<S>> for OrdComparator
impl<S> Compare<HeadTail<S>> for OrdComparator
Source§fn compare(&self, l: &HeadTail<S>, r: &HeadTail<S>) -> Ordering
fn compare(&self, l: &HeadTail<S>, r: &HeadTail<S>) -> 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 OrdComparator
impl RefUnwindSafe for OrdComparator
impl Send for OrdComparator
impl Sync for OrdComparator
impl Unpin for OrdComparator
impl UnwindSafe for OrdComparator
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