Struct stream_kmerge::HeadTail
source · [−]pub struct HeadTail<S> where
S: Stream, { /* private fields */ }
Expand description
Head element and tail stream pair
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
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
sourceimpl<S, F, O> Compare<HeadTail<S>, HeadTail<S>> for KeyComparator<F> where
S: Stream,
F: Fn(&S::Item) -> O,
O: Ord,
impl<S, F, O> Compare<HeadTail<S>, HeadTail<S>> for KeyComparator<F> where
S: Stream,
F: Fn(&S::Item) -> O,
O: 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<S> RefUnwindSafe for HeadTail<S> where
S: RefUnwindSafe,
<S as Stream>::Item: RefUnwindSafe,
impl<S> Send for HeadTail<S> where
S: Send,
<S as Stream>::Item: Send,
impl<S> Sync for HeadTail<S> where
S: Sync,
<S as Stream>::Item: Sync,
impl<S> Unpin for HeadTail<S> where
S: Unpin,
<S as Stream>::Item: Unpin,
impl<S> UnwindSafe for HeadTail<S> where
S: UnwindSafe,
<S as Stream>::Item: 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