Enum swc_ecma_ast::TsType[][src]

pub enum TsType {
Show 20 variants TsKeywordType(TsKeywordType), TsThisType(TsThisType), TsFnOrConstructorType(TsFnOrConstructorType), TsTypeRef(TsTypeRef), TsTypeQuery(TsTypeQuery), TsTypeLit(TsTypeLit), TsArrayType(TsArrayType), TsTupleType(TsTupleType), TsOptionalType(TsOptionalType), TsRestType(TsRestType), TsUnionOrIntersectionType(TsUnionOrIntersectionType), TsConditionalType(TsConditionalType), TsInferType(TsInferType), TsParenthesizedType(TsParenthesizedType), TsTypeOperator(TsTypeOperator), TsIndexedAccessType(TsIndexedAccessType), TsMappedType(TsMappedType), TsLitType(TsLitType), TsTypePredicate(TsTypePredicate), TsImportType(TsImportType),
}

Variants

TsKeywordType

Tuple Fields of TsKeywordType

0: TsKeywordType
TsThisType

Tuple Fields of TsThisType

0: TsThisType
TsFnOrConstructorType

Tuple Fields of TsFnOrConstructorType

0: TsFnOrConstructorType
TsTypeRef

Tuple Fields of TsTypeRef

0: TsTypeRef
TsTypeQuery

Tuple Fields of TsTypeQuery

0: TsTypeQuery
TsTypeLit

Tuple Fields of TsTypeLit

0: TsTypeLit
TsArrayType

Tuple Fields of TsArrayType

0: TsArrayType
TsTupleType

Tuple Fields of TsTupleType

0: TsTupleType
TsOptionalType

Tuple Fields of TsOptionalType

0: TsOptionalType
TsRestType

Tuple Fields of TsRestType

0: TsRestType
TsUnionOrIntersectionType

Tuple Fields of TsUnionOrIntersectionType

0: TsUnionOrIntersectionType
TsConditionalType

Tuple Fields of TsConditionalType

0: TsConditionalType
TsInferType

Tuple Fields of TsInferType

0: TsInferType
TsParenthesizedType

Tuple Fields of TsParenthesizedType

0: TsParenthesizedType
TsTypeOperator

Tuple Fields of TsTypeOperator

0: TsTypeOperator
TsIndexedAccessType

Tuple Fields of TsIndexedAccessType

0: TsIndexedAccessType
TsMappedType

Tuple Fields of TsMappedType

0: TsMappedType
TsLitType

Tuple Fields of TsLitType

0: TsLitType
TsTypePredicate

Tuple Fields of TsTypePredicate

0: TsTypePredicate
TsImportType

Tuple Fields of TsImportType

0: TsImportType

Implementations

Returns true if self is of variant TsKeywordType.

Unwraps the value, yielding the content of TsKeywordType.

Panics

Panics if the value is not TsKeywordType, with a panic message including the content of self.

Returns Some if self is of variant TsKeywordType, and None otherwise.

Returns true if self is of variant TsThisType.

Unwraps the value, yielding the content of TsThisType.

Panics

Panics if the value is not TsThisType, with a panic message including the content of self.

Returns Some if self is of variant TsThisType, and None otherwise.

Returns true if self is of variant TsFnOrConstructorType.

Unwraps the value, yielding the content of TsFnOrConstructorType.

Panics

Panics if the value is not TsFnOrConstructorType, with a panic message including the content of self.

Returns Some if self is of variant TsFnOrConstructorType, and None otherwise.

Returns true if self is of variant TsTypeRef.

Unwraps the value, yielding the content of TsTypeRef.

Panics

Panics if the value is not TsTypeRef, with a panic message including the content of self.

Returns Some if self is of variant TsTypeRef, and None otherwise.

Returns true if self is of variant TsTypeQuery.

Unwraps the value, yielding the content of TsTypeQuery.

Panics

Panics if the value is not TsTypeQuery, with a panic message including the content of self.

Returns Some if self is of variant TsTypeQuery, and None otherwise.

Returns true if self is of variant TsTypeLit.

Unwraps the value, yielding the content of TsTypeLit.

Panics

Panics if the value is not TsTypeLit, with a panic message including the content of self.

Returns Some if self is of variant TsTypeLit, and None otherwise.

Returns true if self is of variant TsArrayType.

Unwraps the value, yielding the content of TsArrayType.

Panics

Panics if the value is not TsArrayType, with a panic message including the content of self.

Returns Some if self is of variant TsArrayType, and None otherwise.

Returns true if self is of variant TsTupleType.

Unwraps the value, yielding the content of TsTupleType.

Panics

Panics if the value is not TsTupleType, with a panic message including the content of self.

Returns Some if self is of variant TsTupleType, and None otherwise.

Returns true if self is of variant TsOptionalType.

Unwraps the value, yielding the content of TsOptionalType.

Panics

Panics if the value is not TsOptionalType, with a panic message including the content of self.

Returns Some if self is of variant TsOptionalType, and None otherwise.

Returns true if self is of variant TsRestType.

Unwraps the value, yielding the content of TsRestType.

Panics

Panics if the value is not TsRestType, with a panic message including the content of self.

Returns Some if self is of variant TsRestType, and None otherwise.

Returns true if self is of variant TsUnionOrIntersectionType.

Unwraps the value, yielding the content of TsUnionOrIntersectionType.

Panics

Panics if the value is not TsUnionOrIntersectionType, with a panic message including the content of self.

Returns Some if self is of variant TsUnionOrIntersectionType, and None otherwise.

Returns true if self is of variant TsConditionalType.

Unwraps the value, yielding the content of TsConditionalType.

Panics

Panics if the value is not TsConditionalType, with a panic message including the content of self.

Returns Some if self is of variant TsConditionalType, and None otherwise.

Returns true if self is of variant TsInferType.

Unwraps the value, yielding the content of TsInferType.

Panics

Panics if the value is not TsInferType, with a panic message including the content of self.

Returns Some if self is of variant TsInferType, and None otherwise.

Returns true if self is of variant TsParenthesizedType.

Unwraps the value, yielding the content of TsParenthesizedType.

Panics

Panics if the value is not TsParenthesizedType, with a panic message including the content of self.

Returns Some if self is of variant TsParenthesizedType, and None otherwise.

Returns true if self is of variant TsTypeOperator.

Unwraps the value, yielding the content of TsTypeOperator.

Panics

Panics if the value is not TsTypeOperator, with a panic message including the content of self.

Returns Some if self is of variant TsTypeOperator, and None otherwise.

Returns true if self is of variant TsIndexedAccessType.

Unwraps the value, yielding the content of TsIndexedAccessType.

Panics

Panics if the value is not TsIndexedAccessType, with a panic message including the content of self.

Returns Some if self is of variant TsIndexedAccessType, and None otherwise.

Returns true if self is of variant TsMappedType.

Unwraps the value, yielding the content of TsMappedType.

Panics

Panics if the value is not TsMappedType, with a panic message including the content of self.

Returns Some if self is of variant TsMappedType, and None otherwise.

Returns true if self is of variant TsLitType.

Unwraps the value, yielding the content of TsLitType.

Panics

Panics if the value is not TsLitType, with a panic message including the content of self.

Returns Some if self is of variant TsLitType, and None otherwise.

Returns true if self is of variant TsTypePredicate.

Unwraps the value, yielding the content of TsTypePredicate.

Panics

Panics if the value is not TsTypePredicate, with a panic message including the content of self.

Returns Some if self is of variant TsTypePredicate, and None otherwise.

Returns true if self is of variant TsImportType.

Unwraps the value, yielding the content of TsImportType.

Panics

Panics if the value is not TsImportType, with a panic message including the content of self.

Returns Some if self is of variant TsImportType, and None otherwise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Get span of self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.