Struct IterEither
pub struct IterEither<L, R> { /* private fields */ }
Iterator that maps left or right iterators to corresponding Either-wrapped items.
This struct is created by the Either::factor_into_iter,
[factor_iter][Either::factor_iter],
and [factor_iter_mut][Either::factor_iter_mut] methods.
Trait Implementations
impl<L, R> DoubleEndedIterator for IterEither<L, R>
where
L: DoubleEndedIterator,
R: DoubleEndedIterator,
fn next_back(&mut self) -> Option<Self::Item>fn nth_back(&mut self, n: usize) -> Option<Self::Item>fn rfold<Acc, G>(self, init: Acc, f: G) -> Acc where G: FnMut(Acc, Self::Item) -> Acc,fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item> where P: FnMut(&Self::Item) -> bool,
impl<L, R> ExactSizeIterator for IterEither<L, R>
where
L: ExactSizeIterator,
R: ExactSizeIterator,
fn len(&self) -> usize
impl<L, R> FusedIterator for IterEither<L, R>
where
L: FusedIterator,
R: FusedIterator,
impl<L, R> Iterator for IterEither<L, R>
where
L: Iterator,
R: Iterator,
type Item = Either<<L as Iterator>::Item, <R as Iterator>::Item>;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<Acc, G>(self, init: Acc, f: G) -> Acc where G: FnMut(Acc, Self::Item) -> Acc,fn for_each<F>(self, f: F) where F: FnMut(Self::Item),fn count(self) -> usizefn last(self) -> Option<Self::Item>fn nth(&mut self, n: usize) -> Option<Self::Item>fn collect<B>(self) -> B where B: FromIterator<Self::Item>,fn partition<B, F>(self, f: F) -> (B, B) where B: Default + Extend<Self::Item>, F: FnMut(&Self::Item) -> bool,fn all<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool,fn any<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool,fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where P: FnMut(&Self::Item) -> bool,fn find_map<B, F>(&mut self, f: F) -> Option<B> where F: FnMut(Self::Item) -> Option<B>,fn position<P>(&mut self, predicate: P) -> Option<usize> where P: FnMut(Self::Item) -> bool,
impl<L: Clone, R: Clone> Clone for IterEither<L, R>
fn clone(&self) -> Self
impl<L: Debug, R: Debug> Debug for IterEither<L, R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result