Enum swc_ecma_visit::fields::TsTypeField
source · pub enum TsTypeField {
Show 20 variants
TsKeywordType,
TsThisType,
TsFnOrConstructorType,
TsTypeRef,
TsTypeQuery,
TsTypeLit,
TsArrayType,
TsTupleType,
TsOptionalType,
TsRestType,
TsUnionOrIntersectionType,
TsConditionalType,
TsInferType,
TsParenthesizedType,
TsTypeOperator,
TsIndexedAccessType,
TsMappedType,
TsLitType,
TsTypePredicate,
TsImportType,
}
Expand description
This enum represents fields of TsTypeField
Variants§
TsKeywordType
This represents TsKeywordType
TsThisType
This represents TsThisType
TsFnOrConstructorType
This represents TsFnOrConstructorType
TsTypeRef
This represents TsTypeRef
TsTypeQuery
This represents TsTypeQuery
TsTypeLit
This represents TsTypeLit
TsArrayType
This represents TsArrayType
TsTupleType
This represents TsTupleType
TsOptionalType
This represents TsOptionalType
TsRestType
This represents TsRestType
TsUnionOrIntersectionType
This represents TsUnionOrIntersectionType
TsConditionalType
This represents TsConditionalType
TsInferType
This represents TsInferType
TsParenthesizedType
This represents TsParenthesizedType
TsTypeOperator
This represents TsTypeOperator
TsIndexedAccessType
This represents TsIndexedAccessType
TsMappedType
This represents TsMappedType
TsLitType
This represents TsLitType
TsTypePredicate
This represents TsTypePredicate
TsImportType
This represents TsImportType
Implementations§
Trait Implementations§
source§impl Clone for TsTypeField
impl Clone for TsTypeField
source§fn clone(&self) -> TsTypeField
fn clone(&self) -> TsTypeField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TsTypeField
impl Debug for TsTypeField
source§impl<'de> Deserialize<'de> for TsTypeField
impl<'de> Deserialize<'de> for TsTypeField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TsTypeField
impl Hash for TsTypeField
source§impl Ord for TsTypeField
impl Ord for TsTypeField
source§fn cmp(&self, other: &TsTypeField) -> Ordering
fn cmp(&self, other: &TsTypeField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TsTypeField> for TsTypeField
impl PartialEq<TsTypeField> for TsTypeField
source§fn eq(&self, other: &TsTypeField) -> bool
fn eq(&self, other: &TsTypeField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TsTypeField> for TsTypeField
impl PartialOrd<TsTypeField> for TsTypeField
source§fn partial_cmp(&self, other: &TsTypeField) -> Option<Ordering>
fn partial_cmp(&self, other: &TsTypeField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more