Struct MergeBy
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct MergeBy<I: Iterator, J: Iterator, F> { /* private fields */ }
An iterator adaptor that merges the two base iterators in ascending order. If both base iterators are sorted (ascending), the result is sorted.
Iterator element type is I::Item.
See .merge_by() for more information.
Trait Implementations
impl<I, J, F> Clone for MergeBy<I, J, F>
where
I: Iterator,
J: Iterator,
PutBack<Fuse<I>>: Clone,
PutBack<Fuse<J>>: Clone,
F: Clone,
fn clone(&self) -> Self
impl<I, J, F> Debug for MergeBy<I, J, F>
where
I: Iterator + Debug,
I::Item: Debug,
J: Iterator + Debug,
J::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, J, F> FusedIterator for MergeBy<I, J, F>
where
I: Iterator,
J: Iterator,
F: OrderingOrBool<I::Item, J::Item>,
impl<I, J, F> Iterator for MergeBy<I, J, F>
where
I: Iterator,
J: Iterator,
F: OrderingOrBool<I::Item, J::Item>,
type Item = <F as OrderingOrBool<<I as Iterator>::Item, <J as Iterator>::Item>>::MergeResult;fn next(&mut self) -> Option<Self::Item>fn fold<B, G>(self, init: B, f: G) -> B where Self: Sized, G: FnMut(B, Self::Item) -> B,fn size_hint(&self) -> (usize, Option<usize>)fn nth(&mut self, n: usize) -> Option<Self::Item>