Enum swc_ecma_ast::TsNamespaceBody [−][src]
pub enum TsNamespaceBody { TsModuleBlock(TsModuleBlock), TsNamespaceDecl(TsNamespaceDecl), }
Expand description
namespace A.B { }
is a namespace named A
with another TsNamespaceDecl as
its body.
Variants
Tuple Fields of TsModuleBlock
Tuple Fields of TsNamespaceDecl
Implementations
Returns true
if self
is of variant TsModuleBlock
.
Unwraps the value, yielding the content of TsModuleBlock
.
Panics
Panics if the value is not TsModuleBlock
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsModuleBlock
, and None
otherwise.
Returns true
if self
is of variant TsNamespaceDecl
.
Unwraps the value, yielding the content of TsNamespaceDecl
.
Panics
Panics if the value is not TsNamespaceDecl
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsNamespaceDecl
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TsNamespaceBody
impl Send for TsNamespaceBody
impl Sync for TsNamespaceBody
impl Unpin for TsNamespaceBody
impl UnwindSafe for TsNamespaceBody
Blanket Implementations
Mutably borrows from an owned value. Read more