[]Struct swc_ecma_transforms::pass::Optional

pub struct Optional<V> {
    pub enabled: bool,
    pub visitor: V,
}

Fields

enabled: boolvisitor: V

Implementations

impl<V> Optional<V>

pub fn new(visitor: V, enabled: bool) -> Optional<V>

Trait Implementations

impl<V> Clone for Optional<V> where
    V: Clone

impl<V> Copy for Optional<V> where
    V: Copy

impl<V> Debug for Optional<V> where
    V: Debug

impl<V> Eq for Optional<V> where
    V: Eq

impl<V> Fold for Optional<V> where
    V: Fold
[src]

impl<V> PartialEq<Optional<V>> for Optional<V> where
    V: PartialEq<V>, 

impl<V> Visit for Optional<V> where
    V: Visit
[src]

impl<V> VisitMut for Optional<V> where
    V: VisitMut
[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Optional<V> where
    V: RefUnwindSafe

impl<V> Send for Optional<V> where
    V: Send

impl<V> Sync for Optional<V> where
    V: Sync

impl<V> Unpin for Optional<V> where
    V: Unpin

impl<V> UnwindSafe for Optional<V> where
    V: 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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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

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

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

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.