[−][src]Enum rustc_data_structures::sso::either_iter::EitherIter

pub enum EitherIter<L, R> {
    Left(L),
    Right(R),
}

Iterator which may contain instance of one of two specific implementations.

Note: For most methods providing custom implementation may margianlly improve performance by avoiding doing Left/Right match on every step and doing it only once instead.

Variants

Left(L)
Right(R)

Trait Implementations

impl<L: Clone, R: Clone> Clone for EitherIter<L, R>[src]

impl<L, R> Debug for EitherIter<L, R> where
    L: Debug,
    R: Debug, 
[src]

impl<L, R> ExactSizeIterator for EitherIter<L, R> where
    L: ExactSizeIterator,
    R: ExactSizeIterator,
    EitherIter<L, R>: Iterator, 
[src]

impl<L, R> FusedIterator for EitherIter<L, R> where
    L: FusedIterator,
    R: FusedIterator,
    EitherIter<L, R>: Iterator, 
[src]

impl<L, R> Iterator for EitherIter<L, R> where
    L: Iterator,
    R: Iterator<Item = L::Item>, 
[src]

type Item = L::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<L, R> RefUnwindSafe for EitherIter<L, R> where
    L: RefUnwindSafe,
    R: RefUnwindSafe, 

impl<L, R> Send for EitherIter<L, R> where
    L: Send,
    R: Send, 

impl<L, R> Sync for EitherIter<L, R> where
    L: Sync,
    R: Sync, 

impl<L, R> Unpin for EitherIter<L, R> where
    L: Unpin,
    R: Unpin, 

impl<L, R> UnwindSafe for EitherIter<L, R> where
    L: UnwindSafe,
    R: UnwindSafe, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.