pub struct KeyComparator<F> { /* private fields */ }Trait Implementations§
Source§impl<S, F, O> Compare<HeadTail<S>> for KeyComparator<F>
impl<S, F, O> Compare<HeadTail<S>> for KeyComparator<F>
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<F> Freeze for KeyComparator<F>where
F: Freeze,
impl<F> RefUnwindSafe for KeyComparator<F>where
F: RefUnwindSafe,
impl<F> Send for KeyComparator<F>where
F: Send,
impl<F> Sync for KeyComparator<F>where
F: Sync,
impl<F> Unpin for KeyComparator<F>where
F: Unpin,
impl<F> UnwindSafe for KeyComparator<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