[][src]Enum binjs::specialized::es6::ast::ViewMutBindingOrBindingWithInitializer

pub enum ViewMutBindingOrBindingWithInitializer<'a> {
    BindingWithInitializer(&'a mut BindingWithInitializer),
    ArrayBinding(&'a mut ArrayBinding),
    BindingIdentifier(&'a mut BindingIdentifier),
    ObjectBinding(&'a mut ObjectBinding),
}

A mechanism to view value as an instance of interface sum BindingOrBindingWithInitializer

Used to perform shallow cast between larger sums and smaller sums.

Variants

BindingWithInitializer(&'a mut BindingWithInitializer)
ArrayBinding(&'a mut ArrayBinding)
BindingIdentifier(&'a mut BindingIdentifier)
ObjectBinding(&'a mut ObjectBinding)

Methods

impl<'a> ViewMutBindingOrBindingWithInitializer<'a>[src]

pub fn steal(&mut self) -> BindingOrBindingWithInitializer[src]

Convert a ViewMutBindingOrBindingWithInitializer back into a BindingOrBindingWithInitializer, stealing the contents of the sum.

Trait Implementations

impl<'a> Debug for ViewMutBindingOrBindingWithInitializer<'a>[src]

impl<'a> From<&'a mut BindingOrBindingWithInitializer> for ViewMutBindingOrBindingWithInitializer<'a>[src]

impl<'a> Walker<'a> for ViewMutBindingOrBindingWithInitializer<'a> where
    ViewMutBindingOrBindingWithInitializer<'a>: 'a, 
[src]

type Output = BindingOrBindingWithInitializer

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ViewMutBindingOrBindingWithInitializer<'a>

impl<'a> !Send for ViewMutBindingOrBindingWithInitializer<'a>

impl<'a> !Sync for ViewMutBindingOrBindingWithInitializer<'a>

impl<'a> Unpin for ViewMutBindingOrBindingWithInitializer<'a>

impl<'a> !UnwindSafe for ViewMutBindingOrBindingWithInitializer<'a>

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]