[][src]Enum cor_iter::Either

pub enum Either<T, U> {
    Primary(T),
    Secondary(U),
}

An enum that represent either primary's value or secondary value.

Primary is the iterator that is left hand side of operand.

Variants

Primary(T)

A value from primary iterator

Secondary(U)

A value from secondary iterator

Implementations

impl<T, U> Either<T, U>[src]

pub fn is_primary(&self) -> bool[src]

Return true if this enum contains value from primary iterator

pub fn is_secondary(&self) -> bool[src]

Return true if this enum contains value from secondary iterator

Trait Implementations

impl<T: Debug, U: Debug> Debug for Either<T, U>[src]

impl<T> Deref for Either<T, T>[src]

If both iterators return value of the same type, it'll be able to directly deref it to get inner value.

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T, U> RefUnwindSafe for Either<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for Either<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Either<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for Either<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for Either<T, U> where
    T: UnwindSafe,
    U: 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<T> From<T> for T[src]

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

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.