Struct stream_kmerge::FnComparator
source · [−]pub struct FnComparator<F> { /* private fields */ }
Trait Implementations
sourceimpl<S, F> Compare<HeadTail<S>, HeadTail<S>> for FnComparator<F> where
S: Stream,
F: Fn(&S::Item, &S::Item) -> Ordering,
impl<S, F> Compare<HeadTail<S>, HeadTail<S>> for FnComparator<F> where
S: Stream,
F: Fn(&S::Item, &S::Item) -> Ordering,
sourcefn 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. Read more
sourcefn compares_lt(&self, l: &L, r: &R) -> bool
fn compares_lt(&self, l: &L, r: &R) -> bool
Checks if l
is less than r
.
sourcefn compares_le(&self, l: &L, r: &R) -> bool
fn compares_le(&self, l: &L, r: &R) -> bool
Checks if l
is less than or equal to r
.
sourcefn compares_ge(&self, l: &L, r: &R) -> bool
fn compares_ge(&self, l: &L, r: &R) -> bool
Checks if l
is greater than or equal to r
.
sourcefn compares_gt(&self, l: &L, r: &R) -> bool
fn compares_gt(&self, l: &L, r: &R) -> bool
Checks if l
is greater than r
.
sourcefn compares_eq(&self, l: &L, r: &R) -> bool
fn compares_eq(&self, l: &L, r: &R) -> bool
Checks if l
is equal to r
.
sourcefn compares_ne(&self, l: &L, r: &R) -> bool
fn compares_ne(&self, l: &L, r: &R) -> bool
Checks if l
is not equal to r
.
sourcefn borrowing(self) -> Borrowing<Self, L, R>
fn borrowing(self) -> Borrowing<Self, L, R>
Borrows the comparator’s parameters before comparing them. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for FnComparator<F> where
F: RefUnwindSafe,
impl<F> Send for FnComparator<F> where
F: Send,
impl<F> Sync for FnComparator<F> where
F: Sync,
impl<F> Unpin for FnComparator<F> where
F: Unpin,
impl<F> UnwindSafe for FnComparator<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more