Enum swc_ecma_ast::DefaultDecl [−][src]
pub enum DefaultDecl {
Class(ClassExpr),
Fn(FnExpr),
TsInterfaceDecl(TsInterfaceDecl),
}
Variants
Class(ClassExpr)
Tuple Fields of Class
0: ClassExpr
Fn(FnExpr)
Tuple Fields of Fn
0: FnExpr
TsInterfaceDecl(TsInterfaceDecl)
Tuple Fields of TsInterfaceDecl
Implementations
Returns Some
if self
is of variant Class
, and None
otherwise.
Returns true
if self
is of variant Fn
.
Returns Some
if self
is of variant Fn
, and None
otherwise.
Returns true
if self
is of variant TsInterfaceDecl
.
Unwraps the value, yielding the content of TsInterfaceDecl
.
Panics
Panics if the value is not TsInterfaceDecl
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsInterfaceDecl
, 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 DefaultDecl
impl Send for DefaultDecl
impl Sync for DefaultDecl
impl Unpin for DefaultDecl
impl UnwindSafe for DefaultDecl
Blanket Implementations
Mutably borrows from an owned value. Read more