pub struct HeadTail<S>where
S: Stream,{ /* private fields */ }Expand description
Head element and tail stream pair
Trait Implementations§
Source§impl<S, F> Compare<HeadTail<S>> for FnComparator<F>
impl<S, F> Compare<HeadTail<S>> for FnComparator<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
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
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<S> Freeze for HeadTail<S>
impl<S> RefUnwindSafe for HeadTail<S>
impl<S> Send for HeadTail<S>
impl<S> Sync for HeadTail<S>
impl<S> Unpin for HeadTail<S>
impl<S> UnwindSafe for HeadTail<S>
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