Enum dprint_swc_ecma_ast_view::TsType[][src]

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

Variants

TsKeywordType

Tuple Fields of TsKeywordType

0: &'a TsKeywordType<'a>
TsThisType

Tuple Fields of TsThisType

0: &'a TsThisType<'a>
TsFnOrConstructorType

Tuple Fields of TsFnOrConstructorType

0: TsFnOrConstructorType<'a>
TsTypeRef

Tuple Fields of TsTypeRef

0: &'a TsTypeRef<'a>
TsTypeQuery

Tuple Fields of TsTypeQuery

0: &'a TsTypeQuery<'a>
TsTypeLit

Tuple Fields of TsTypeLit

0: &'a TsTypeLit<'a>
TsArrayType

Tuple Fields of TsArrayType

0: &'a TsArrayType<'a>
TsTupleType

Tuple Fields of TsTupleType

0: &'a TsTupleType<'a>
TsOptionalType

Tuple Fields of TsOptionalType

0: &'a TsOptionalType<'a>
TsRestType

Tuple Fields of TsRestType

0: &'a TsRestType<'a>
TsUnionOrIntersectionType

Tuple Fields of TsUnionOrIntersectionType

0: TsUnionOrIntersectionType<'a>
TsConditionalType

Tuple Fields of TsConditionalType

0: &'a TsConditionalType<'a>
TsInferType

Tuple Fields of TsInferType

0: &'a TsInferType<'a>
TsParenthesizedType

Tuple Fields of TsParenthesizedType

0: &'a TsParenthesizedType<'a>
TsTypeOperator

Tuple Fields of TsTypeOperator

0: &'a TsTypeOperator<'a>
TsIndexedAccessType

Tuple Fields of TsIndexedAccessType

0: &'a TsIndexedAccessType<'a>
TsMappedType

Tuple Fields of TsMappedType

0: &'a TsMappedType<'a>
TsLitType

Tuple Fields of TsLitType

0: &'a TsLitType<'a>
TsTypePredicate

Tuple Fields of TsTypePredicate

0: &'a TsTypePredicate<'a>
TsImportType

Tuple Fields of TsImportType

0: &'a TsImportType<'a>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Performs the conversion.

Gets the previous siblings in the order they appear in the file.

Gets the next siblings in the order they appear in the file.

Gets the root node.

Gets the root node if the view was created from a Module; otherwise panics.

Gets the root node if the view was created from a Script; otherwise panics.

Gets the previous tokens in the order they appear in the file.

Gets the next tokens in the order they appear in the file.

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.