Struct stream_kmerge::OrdComparator
source · [−]pub struct OrdComparator;
Trait Implementations
sourceimpl<S> Compare<HeadTail<S>, HeadTail<S>> for OrdComparator where
S: Stream,
S::Item: Ord,
impl<S> Compare<HeadTail<S>, HeadTail<S>> for OrdComparator where
S: Stream,
S::Item: Ord,
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 RefUnwindSafe for OrdComparator
impl Send for OrdComparator
impl Sync for OrdComparator
impl Unpin for OrdComparator
impl UnwindSafe for OrdComparator
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