Enum rslint_parser::ast::TsType[][src]

pub enum TsType {
Show 31 variants TsAny(TsAny), TsUnknown(TsUnknown), TsNumber(TsNumber), TsObject(TsObject), TsBoolean(TsBoolean), TsBigint(TsBigint), TsString(TsString), TsSymbol(TsSymbol), TsVoid(TsVoid), TsUndefined(TsUndefined), TsNull(TsNull), TsNever(TsNever), TsThis(TsThis), TsLiteral(TsLiteral), TsPredicate(TsPredicate), TsTuple(TsTuple), TsParen(TsParen), TsTypeRef(TsTypeRef), TsTemplate(TsTemplate), TsMappedType(TsMappedType), TsImport(TsImport), TsArray(TsArray), TsIndexedArray(TsIndexedArray), TsTypeOperator(TsTypeOperator), TsIntersection(TsIntersection), TsUnion(TsUnion), TsFnType(TsFnType), TsConstructorType(TsConstructorType), TsConditionalType(TsConditionalType), TsObjectType(TsObjectType), TsInfer(TsInfer),
}
Expand description

A TypeScript type

Variants

TsAny(TsAny)

Tuple Fields of TsAny

0: TsAny
TsUnknown(TsUnknown)

Tuple Fields of TsUnknown

0: TsUnknown
TsNumber(TsNumber)

Tuple Fields of TsNumber

0: TsNumber
TsObject(TsObject)

Tuple Fields of TsObject

0: TsObject
TsBoolean(TsBoolean)

Tuple Fields of TsBoolean

0: TsBoolean
TsBigint(TsBigint)

Tuple Fields of TsBigint

0: TsBigint
TsString(TsString)

Tuple Fields of TsString

0: TsString
TsSymbol(TsSymbol)

Tuple Fields of TsSymbol

0: TsSymbol
TsVoid(TsVoid)

Tuple Fields of TsVoid

0: TsVoid
TsUndefined(TsUndefined)

Tuple Fields of TsUndefined

0: TsUndefined
TsNull(TsNull)

Tuple Fields of TsNull

0: TsNull
TsNever(TsNever)

Tuple Fields of TsNever

0: TsNever
TsThis(TsThis)

Tuple Fields of TsThis

0: TsThis
TsLiteral(TsLiteral)

Tuple Fields of TsLiteral

0: TsLiteral
TsPredicate(TsPredicate)

Tuple Fields of TsPredicate

0: TsPredicate
TsTuple(TsTuple)

Tuple Fields of TsTuple

0: TsTuple
TsParen(TsParen)

Tuple Fields of TsParen

0: TsParen
TsTypeRef(TsTypeRef)

Tuple Fields of TsTypeRef

0: TsTypeRef
TsTemplate(TsTemplate)

Tuple Fields of TsTemplate

0: TsTemplate
TsMappedType(TsMappedType)

Tuple Fields of TsMappedType

0: TsMappedType
TsImport(TsImport)

Tuple Fields of TsImport

0: TsImport
TsArray(TsArray)

Tuple Fields of TsArray

0: TsArray
TsIndexedArray(TsIndexedArray)

Tuple Fields of TsIndexedArray

0: TsIndexedArray
TsTypeOperator(TsTypeOperator)

Tuple Fields of TsTypeOperator

0: TsTypeOperator
TsIntersection(TsIntersection)

Tuple Fields of TsIntersection

0: TsIntersection
TsUnion(TsUnion)

Tuple Fields of TsUnion

0: TsUnion
TsFnType(TsFnType)

Tuple Fields of TsFnType

0: TsFnType
TsConstructorType(TsConstructorType)

Tuple Fields of TsConstructorType

0: TsConstructorType
TsConditionalType(TsConditionalType)

Tuple Fields of TsConditionalType

0: TsConditionalType
TsObjectType(TsObjectType)

Tuple Fields of TsObjectType

0: TsObjectType
TsInfer(TsInfer)

Tuple Fields of TsInfer

0: TsInfer

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

Formats the value using the given formatter. 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.

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 !=.

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

Unerase this erased pointer. Read more

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more

Turn this erasable pointer into an erased pointer. 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

Converts the given value to a String. 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.