Enum swc_ecma_ast::ModuleItem [−][src]
pub enum ModuleItem {
ModuleDecl(ModuleDecl),
Stmt(Stmt),
}
Variants
ModuleDecl(ModuleDecl)
Tuple Fields
0: ModuleDecl
Stmt(Stmt)
Tuple Fields
0: Stmt
Implementations
Returns true
if self
is of variant ModuleDecl
.
Unwraps the value, yielding the content of ModuleDecl
.
Panics
Panics if the value is not ModuleDecl
, with a panic message including the content of self
.
Returns Some
if self
is of variant ModuleDecl
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
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 ModuleItem
impl Send for ModuleItem
impl Sync for ModuleItem
impl Unpin for ModuleItem
impl UnwindSafe for ModuleItem
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more