[][src]Enum cmdmat::Either

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

Either sum type

Variants

Left(L)

Left variant

Right(R)

Right variant

Methods

impl<L, R> Either<L, R>[src]

pub fn left(self) -> Option<L>[src]

Convert Either into Option.

pub fn right(self) -> Option<R>[src]

Convert Either into Option.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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