Struct swc_ecma_ast::TsModuleDecl
source · [−]pub struct TsModuleDecl {
pub span: Span,
pub declare: bool,
pub global: bool,
pub id: TsModuleName,
pub body: Option<TsNamespaceBody>,
}
Fields
span: Span
declare: bool
global: bool
In TypeScript, this is only available throughnode.flags
.
id: TsModuleName
body: Option<TsNamespaceBody>
Trait Implementations
sourceimpl Clone for TsModuleDecl
impl Clone for TsModuleDecl
sourcefn clone(&self) -> TsModuleDecl
fn clone(&self) -> TsModuleDecl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TsModuleDecl
impl Debug for TsModuleDecl
sourceimpl<'de> Deserialize<'de> for TsModuleDecl
impl<'de> Deserialize<'de> for TsModuleDecl
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for TsModuleDecl
impl EqIgnoreSpan for TsModuleDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsModuleDecl> for Decl
impl From<TsModuleDecl> for Decl
sourcefn from(src: TsModuleDecl) -> Decl
fn from(src: TsModuleDecl) -> Decl
Converts to this type from the input type.
sourceimpl From<TsModuleDecl> for ModuleItem
impl From<TsModuleDecl> for ModuleItem
sourcefn from(src: TsModuleDecl) -> ModuleItem
fn from(src: TsModuleDecl) -> ModuleItem
Converts to this type from the input type.
sourceimpl From<TsModuleDecl> for Stmt
impl From<TsModuleDecl> for Stmt
sourcefn from(src: TsModuleDecl) -> Stmt
fn from(src: TsModuleDecl) -> Stmt
Converts to this type from the input type.
sourceimpl Hash for TsModuleDecl
impl Hash for TsModuleDecl
sourceimpl PartialEq<TsModuleDecl> for TsModuleDecl
impl PartialEq<TsModuleDecl> for TsModuleDecl
sourcefn eq(&self, other: &TsModuleDecl) -> bool
fn eq(&self, other: &TsModuleDecl) -> bool
sourceimpl Serialize for TsModuleDecl
impl Serialize for TsModuleDecl
sourceimpl Spanned for TsModuleDecl
impl Spanned for TsModuleDecl
impl Eq for TsModuleDecl
impl StructuralEq for TsModuleDecl
impl StructuralPartialEq for TsModuleDecl
Auto Trait Implementations
impl RefUnwindSafe for TsModuleDecl
impl Send for TsModuleDecl
impl Sync for TsModuleDecl
impl Unpin for TsModuleDecl
impl UnwindSafe for TsModuleDecl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more