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