Enum swc_babel_ast::TSType[][src]

pub enum TSType {
Show 35 variants AnyKeyword(TSAnyKeyword), BooleanKeyword(TSBooleanKeyword), BigIntKeyword(TSBigIntKeyword), IntrinsicKeyword(TSIntrinsicKeyword), NeverKeyword(TSNeverKeyword), NullKeyword(TSNullKeyword), NumberKeyword(TSNumberKeyword), ObjectKeyword(TSObjectKeyword), StringKeyword(TSStringKeyword), SymbolKeyword(TSSymbolKeyword), UndefinedKeyword(TSUndefinedKeyword), UnknownKeyword(TSUnknownKeyword), VoidKeyword(TSVoidKeyword), This(TSThisType), Function(TSFunctionType), Constructor(TSConstructorType), TypeRef(TSTypeReference), TypePredicate(TSTypePredicate), TypeQuery(TSTypeQuery), TypeLiteral(TSTypeLiteral), Array(TSArrayType), Tuple(TSTupleType), Optional(TSOptionalType), Rest(TSRestType), Union(TSUnionType), Intersection(TSIntersectionType), Conditional(TSConditionalType), Infer(TSInferType), Parenthesized(TSParenthesizedType), TypeOp(TSTypeOperator), IndexedAccess(TSIndexedAccessType), Mapped(TSMappedType), Literal(TSLiteralType), ExprWithArgs(TSExpressionWithTypeArguments), Import(TSImportType),
}

Variants

AnyKeyword(TSAnyKeyword)

Tuple Fields

BooleanKeyword(TSBooleanKeyword)

Tuple Fields

BigIntKeyword(TSBigIntKeyword)

Tuple Fields

IntrinsicKeyword(TSIntrinsicKeyword)

Tuple Fields

NeverKeyword(TSNeverKeyword)

Tuple Fields

NullKeyword(TSNullKeyword)

Tuple Fields

NumberKeyword(TSNumberKeyword)

Tuple Fields

ObjectKeyword(TSObjectKeyword)

Tuple Fields

StringKeyword(TSStringKeyword)

Tuple Fields

SymbolKeyword(TSSymbolKeyword)

Tuple Fields

UndefinedKeyword(TSUndefinedKeyword)

Tuple Fields

UnknownKeyword(TSUnknownKeyword)

Tuple Fields

VoidKeyword(TSVoidKeyword)

Tuple Fields

This(TSThisType)

Tuple Fields

Function(TSFunctionType)

Tuple Fields

Constructor(TSConstructorType)

Tuple Fields

TypeRef(TSTypeReference)

Tuple Fields

TypePredicate(TSTypePredicate)

Tuple Fields

TypeQuery(TSTypeQuery)

Tuple Fields

TypeLiteral(TSTypeLiteral)

Tuple Fields

Array(TSArrayType)

Tuple Fields

Tuple(TSTupleType)

Tuple Fields

Optional(TSOptionalType)

Tuple Fields

Rest(TSRestType)

Tuple Fields

Union(TSUnionType)

Tuple Fields

Intersection(TSIntersectionType)

Tuple Fields

Conditional(TSConditionalType)

Tuple Fields

Infer(TSInferType)

Tuple Fields

Parenthesized(TSParenthesizedType)

Tuple Fields

TypeOp(TSTypeOperator)

Tuple Fields

IndexedAccess(TSIndexedAccessType)

Tuple Fields

Mapped(TSMappedType)

Tuple Fields

Literal(TSLiteralType)

Tuple Fields

ExprWithArgs(TSExpressionWithTypeArguments)

Import(TSImportType)

Tuple Fields

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

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

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

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