[][src]Enum swc_ecma_ast::ModuleDecl

pub enum ModuleDecl {
    Import(ImportDecl),
    ExportDecl(ExportDecl),
    ExportNamed(NamedExport),
    ExportDefaultDecl(ExportDefaultDecl),
    ExportDefaultExpr(ExportDefaultExpr),
    ExportAll(ExportAll),
    TsImportEquals(TsImportEqualsDecl),
    TsExportAssignment(TsExportAssignment),
    TsNamespaceExport(TsNamespaceExportDecl),
}

Variants

Import(ImportDecl)
ExportDecl(ExportDecl)
ExportNamed(NamedExport)
ExportDefaultDecl(ExportDefaultDecl)
ExportDefaultExpr(ExportDefaultExpr)
ExportAll(ExportAll)
TsImportEquals(TsImportEqualsDecl)
TsExportAssignment(TsExportAssignment)
TsNamespaceExport(TsNamespaceExportDecl)

Trait Implementations

impl Clone for ModuleDecl[src]

impl Debug for ModuleDecl[src]

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

impl Eq for ModuleDecl[src]

impl From<ExportAll> for ModuleDecl[src]

impl From<ExportDecl> for ModuleDecl[src]

impl From<ExportDefaultDecl> for ModuleDecl[src]

impl From<ExportDefaultExpr> for ModuleDecl[src]

impl From<ImportDecl> for ModuleDecl[src]

impl From<ModuleDecl> for ModuleItem[src]

impl From<NamedExport> for ModuleDecl[src]

impl From<TsExportAssignment> for ModuleDecl[src]

impl From<TsImportEqualsDecl> for ModuleDecl[src]

impl From<TsNamespaceExportDecl> for ModuleDecl[src]

impl Hash for ModuleDecl[src]

impl PartialEq<ModuleDecl> for ModuleDecl[src]

impl Serialize for ModuleDecl[src]

impl Spanned for ModuleDecl[src]

impl StructuralEq for ModuleDecl[src]

impl StructuralPartialEq for ModuleDecl[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> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.