[][src]Enum swc_ecma_ast::TsModuleRef

pub enum TsModuleRef {
    TsEntityName(TsEntityName),
    TsExternalModuleRef(TsExternalModuleRef),
}

Variants

TsEntityName(TsEntityName)
TsExternalModuleRef(TsExternalModuleRef)

Implementations

impl TsModuleRef[src]

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

Returns true if self is of variant TsEntityName.

pub fn expect_ts_entity_name(self) -> TsEntityName where
    Self: Debug
[src]

Unwraps the value, yielding the content of TsEntityName.

Panics

Panics if the value is not TsEntityName, with a panic message including the content of self.

pub fn ts_entity_name(self) -> Option<TsEntityName>[src]

Returns Some if self is of variant TsEntityName, and None otherwise.

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

Returns true if self is of variant TsExternalModuleRef.

pub fn expect_ts_external_module_ref(self) -> TsExternalModuleRef where
    Self: Debug
[src]

Unwraps the value, yielding the content of TsExternalModuleRef.

Panics

Panics if the value is not TsExternalModuleRef, with a panic message including the content of self.

pub fn ts_external_module_ref(self) -> Option<TsExternalModuleRef>[src]

Returns Some if self is of variant TsExternalModuleRef, and None otherwise.

Trait Implementations

impl Clone for TsModuleRef[src]

impl Debug for TsModuleRef[src]

impl<'de> Deserialize<'de> for TsModuleRef[src]

impl Eq for TsModuleRef[src]

impl EqIgnoreSpan for TsModuleRef[src]

impl From<TsEntityName> for TsModuleRef[src]

impl From<TsExternalModuleRef> for TsModuleRef[src]

impl Hash for TsModuleRef[src]

impl PartialEq<TsModuleRef> for TsModuleRef[src]

impl Serialize for TsModuleRef[src]

impl Spanned for TsModuleRef[src]

impl StructuralEq for TsModuleRef[src]

impl StructuralPartialEq for TsModuleRef[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

impl<T> Sync for T where
    T: ?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.