Struct swc_ecma_ast::TsNamespaceDecl
source · [−]pub struct TsNamespaceDecl {
pub span: Span,
pub declare: bool,
pub global: bool,
pub id: Ident,
pub body: Box<TsNamespaceBody>,
}
Fields
span: Span
declare: bool
global: bool
In TypeScript, this is only available throughnode.flags
.
id: Ident
body: Box<TsNamespaceBody>
Trait Implementations
sourceimpl Clone for TsNamespaceDecl
impl Clone for TsNamespaceDecl
sourcefn clone(&self) -> TsNamespaceDecl
fn clone(&self) -> TsNamespaceDecl
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 TsNamespaceDecl
impl Debug for TsNamespaceDecl
sourceimpl<'de> Deserialize<'de> for TsNamespaceDecl
impl<'de> Deserialize<'de> for TsNamespaceDecl
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 TsNamespaceDecl
impl EqIgnoreSpan for TsNamespaceDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsNamespaceDecl> for TsNamespaceBody
impl From<TsNamespaceDecl> for TsNamespaceBody
sourcefn from(v: TsNamespaceDecl) -> Self
fn from(v: TsNamespaceDecl) -> Self
Converts to this type from the input type.
sourceimpl Hash for TsNamespaceDecl
impl Hash for TsNamespaceDecl
sourceimpl PartialEq<TsNamespaceDecl> for TsNamespaceDecl
impl PartialEq<TsNamespaceDecl> for TsNamespaceDecl
sourcefn eq(&self, other: &TsNamespaceDecl) -> bool
fn eq(&self, other: &TsNamespaceDecl) -> bool
sourceimpl Serialize for TsNamespaceDecl
impl Serialize for TsNamespaceDecl
sourceimpl Spanned for TsNamespaceDecl
impl Spanned for TsNamespaceDecl
impl Eq for TsNamespaceDecl
impl StructuralEq for TsNamespaceDecl
impl StructuralPartialEq for TsNamespaceDecl
Auto Trait Implementations
impl RefUnwindSafe for TsNamespaceDecl
impl Send for TsNamespaceDecl
impl Sync for TsNamespaceDecl
impl Unpin for TsNamespaceDecl
impl UnwindSafe for TsNamespaceDecl
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