Enum swc_ecma_ast::ClassMember [−][src]
pub enum ClassMember {
Constructor(Constructor),
Method(ClassMethod),
PrivateMethod(PrivateMethod),
ClassProp(ClassProp),
PrivateProp(PrivateProp),
TsIndexSignature(TsIndexSignature),
Empty(EmptyStmt),
StaticBlock(StaticBlock),
}
Variants
Constructor(Constructor)
Tuple Fields of Constructor
0: Constructor
Method(ClassMethod)
es2015
Tuple Fields of Method
0: ClassMethod
PrivateMethod(PrivateMethod)
Tuple Fields of PrivateMethod
ClassProp(ClassProp)
stage 0 / Typescript
Tuple Fields of ClassProp
0: ClassProp
PrivateProp(PrivateProp)
Tuple Fields of PrivateProp
0: PrivateProp
TsIndexSignature(TsIndexSignature)
Tuple Fields of TsIndexSignature
Empty(EmptyStmt)
Tuple Fields of Empty
0: EmptyStmt
StaticBlock(StaticBlock)
Tuple Fields of StaticBlock
0: StaticBlock
Implementations
Returns true
if self
is of variant Constructor
.
Unwraps the value, yielding the content of Constructor
.
Panics
Panics if the value is not Constructor
, with a panic message including the content of self
.
Returns Some
if self
is of variant Constructor
, and None
otherwise.
Returns Some
if self
is of variant Method
, and None
otherwise.
Returns true
if self
is of variant PrivateMethod
.
Unwraps the value, yielding the content of PrivateMethod
.
Panics
Panics if the value is not PrivateMethod
, with a panic message including the content of self
.
Returns Some
if self
is of variant PrivateMethod
, and None
otherwise.
Returns true
if self
is of variant ClassProp
.
Returns Some
if self
is of variant ClassProp
, and None
otherwise.
Returns true
if self
is of variant PrivateProp
.
Unwraps the value, yielding the content of PrivateProp
.
Panics
Panics if the value is not PrivateProp
, with a panic message including the content of self
.
Returns Some
if self
is of variant PrivateProp
, and None
otherwise.
Returns true
if self
is of variant TsIndexSignature
.
Unwraps the value, yielding the content of TsIndexSignature
.
Panics
Panics if the value is not TsIndexSignature
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsIndexSignature
, and None
otherwise.
Returns Some
if self
is of variant Empty
, and None
otherwise.
Returns true
if self
is of variant StaticBlock
.
Unwraps the value, yielding the content of StaticBlock
.
Panics
Panics if the value is not StaticBlock
, with a panic message including the content of self
.
Returns Some
if self
is of variant StaticBlock
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
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 ClassMember
impl Send for ClassMember
impl Sync for ClassMember
impl Unpin for ClassMember
impl UnwindSafe for ClassMember
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