Enum swc_ecma_ast::TsModuleRef [−][src]
pub enum TsModuleRef {
TsEntityName(TsEntityName),
TsExternalModuleRef(TsExternalModuleRef),
}
Variants
TsEntityName(TsEntityName)
Tuple Fields
0: TsEntityName
TsExternalModuleRef(TsExternalModuleRef)
Tuple Fields
Implementations
Returns true
if self
is of variant TsEntityName
.
Unwraps the value, yielding the content of TsEntityName
.
Panics
Panics if the value is not TsEntityName
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsEntityName
, and None
otherwise.
Returns true
if self
is of variant TsExternalModuleRef
.
Unwraps the value, yielding the content of TsExternalModuleRef
.
Panics
Panics if the value is not TsExternalModuleRef
, with a panic message including the content of self
.
Returns Some
if self
is of variant TsExternalModuleRef
, 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 TsModuleRef
impl Send for TsModuleRef
impl Sync for TsModuleRef
impl Unpin for TsModuleRef
impl UnwindSafe for TsModuleRef
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