[−][src]Enum swc_ecma_ast::ModuleDecl
Variants
Import(ImportDecl)
ExportDecl(ExportDecl)
ExportNamed(NamedExport)
ExportDefaultDecl(ExportDefaultDecl)
ExportDefaultExpr(ExportDefaultExpr)
ExportAll(ExportAll)
TsImportEquals(TsImportEqualsDecl)
TsExportAssignment(TsExportAssignment)
TsNamespaceExport(TsNamespaceExportDecl)
Trait Implementations
impl PartialEq<ModuleDecl> for ModuleDecl
[src]
fn eq(&self, other: &ModuleDecl) -> bool
[src]
fn ne(&self, other: &ModuleDecl) -> bool
[src]
impl Clone for ModuleDecl
[src]
fn clone(&self) -> ModuleDecl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<ModuleDecl> for ModuleItem
[src]
fn from(v: ModuleDecl) -> Self
[src]
impl From<ImportDecl> for ModuleDecl
[src]
fn from(v: ImportDecl) -> Self
[src]
impl From<ExportDecl> for ModuleDecl
[src]
fn from(v: ExportDecl) -> Self
[src]
impl From<NamedExport> for ModuleDecl
[src]
fn from(v: NamedExport) -> Self
[src]
impl From<ExportDefaultDecl> for ModuleDecl
[src]
fn from(v: ExportDefaultDecl) -> Self
[src]
impl From<ExportDefaultExpr> for ModuleDecl
[src]
fn from(v: ExportDefaultExpr) -> Self
[src]
impl From<ExportAll> for ModuleDecl
[src]
impl From<TsImportEqualsDecl> for ModuleDecl
[src]
fn from(v: TsImportEqualsDecl) -> Self
[src]
impl From<TsExportAssignment> for ModuleDecl
[src]
fn from(v: TsExportAssignment) -> Self
[src]
impl From<TsNamespaceExportDecl> for ModuleDecl
[src]
fn from(v: TsNamespaceExportDecl) -> Self
[src]
impl Debug for ModuleDecl
[src]
impl Serialize for ModuleDecl
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ModuleDecl
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Spanned for ModuleDecl
[src]
Auto Trait Implementations
impl Send for ModuleDecl
impl Sync for ModuleDecl
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,