Enum swc_ecma_ast::ExportSpecifier[][src]

pub enum ExportSpecifier {
    Namespace(ExportNamespaceSpecifier),
    Default(ExportDefaultSpecifier),
    Named(ExportNamedSpecifier),
}

Variants

Implementations

impl ExportSpecifier[src]

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

Returns true if self is of variant Namespace.

pub fn expect_namespace(self) -> ExportNamespaceSpecifier where
    Self: Debug
[src]

Unwraps the value, yielding the content of Namespace.

Panics

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

pub fn namespace(self) -> Option<ExportNamespaceSpecifier>[src]

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

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

Returns true if self is of variant Default.

pub fn expect_default(self) -> ExportDefaultSpecifier where
    Self: Debug
[src]

Unwraps the value, yielding the content of Default.

Panics

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

pub fn default(self) -> Option<ExportDefaultSpecifier>[src]

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

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

Returns true if self is of variant Named.

pub fn expect_named(self) -> ExportNamedSpecifier where
    Self: Debug
[src]

Unwraps the value, yielding the content of Named.

Panics

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

pub fn named(self) -> Option<ExportNamedSpecifier>[src]

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

Trait Implementations

impl Clone for ExportSpecifier[src]

impl Debug for ExportSpecifier[src]

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

impl Eq for ExportSpecifier[src]

impl EqIgnoreSpan for ExportSpecifier[src]

impl From<ExportDefaultSpecifier> for ExportSpecifier[src]

impl From<ExportNamedSpecifier> for ExportSpecifier[src]

impl From<ExportNamespaceSpecifier> for ExportSpecifier[src]

impl Hash for ExportSpecifier[src]

impl PartialEq<ExportSpecifier> for ExportSpecifier[src]

impl Serialize for ExportSpecifier[src]

impl Spanned for ExportSpecifier[src]

impl StructuralEq for ExportSpecifier[src]

impl StructuralPartialEq for ExportSpecifier[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.