[][src]Enum ecmascript::ast::Either

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

Variants

Left(L)Right(R)

Methods

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

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

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

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

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

Trait Implementations

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

Auto Trait Implementations

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

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

Blanket Implementations

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.

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]