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) -> IterEither<L, R>
impl<L: Debug, R: Debug> Debug for IterEither<L, R>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<L, R> Freeze for IterEither<L, R>
where
Either<L, R>: Freeze,
impl<L, R> RefUnwindSafe for IterEither<L, R>
where
Either<L, R>: RefUnwindSafe,
impl<L, R> Send for IterEither<L, R>
where
Either<L, R>: Send,
impl<L, R> Sync for IterEither<L, R>
where
Either<L, R>: Sync,
impl<L, R> Unpin for IterEither<L, R>
where
Either<L, R>: Unpin,
impl<L, R> UnsafeUnpin for IterEither<L, R>
where
Either<L, R>: UnsafeUnpin,
impl<L, R> UnwindSafe for IterEither<L, R>
where
Either<L, R>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for IterEither<L, R>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for IterEither<L, R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IterEither<L, R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IterEither<L, R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for IterEither<L, R>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for IterEither<L, R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for IterEither<L, R>
impl<T> ToOwned for IterEither<L, R>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for IterEither<L, R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IterEither<L, R>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for IterEither<L, R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>