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(&'a TsKeywordType<'a>)

Tuple Fields of TsKeywordType

0: &'a TsKeywordType<'a>
TsThisType(&'a TsThisType<'a>)

Tuple Fields of TsThisType

0: &'a TsThisType<'a>
TsFnOrConstructorType(TsFnOrConstructorType<'a>)

Tuple Fields of TsFnOrConstructorType

0: TsFnOrConstructorType<'a>
TsTypeRef(&'a TsTypeRef<'a>)

Tuple Fields of TsTypeRef

0: &'a TsTypeRef<'a>
TsTypeQuery(&'a TsTypeQuery<'a>)

Tuple Fields of TsTypeQuery

0: &'a TsTypeQuery<'a>
TsTypeLit(&'a TsTypeLit<'a>)

Tuple Fields of TsTypeLit

0: &'a TsTypeLit<'a>
TsArrayType(&'a TsArrayType<'a>)

Tuple Fields of TsArrayType

0: &'a TsArrayType<'a>
TsTupleType(&'a TsTupleType<'a>)

Tuple Fields of TsTupleType

0: &'a TsTupleType<'a>
TsOptionalType(&'a TsOptionalType<'a>)

Tuple Fields of TsOptionalType

0: &'a TsOptionalType<'a>
TsRestType(&'a TsRestType<'a>)

Tuple Fields of TsRestType

0: &'a TsRestType<'a>
TsUnionOrIntersectionType(TsUnionOrIntersectionType<'a>)

Tuple Fields of TsUnionOrIntersectionType

0: TsUnionOrIntersectionType<'a>
TsConditionalType(&'a TsConditionalType<'a>)

Tuple Fields of TsConditionalType

0: &'a TsConditionalType<'a>
TsInferType(&'a TsInferType<'a>)

Tuple Fields of TsInferType

0: &'a TsInferType<'a>
TsParenthesizedType(&'a TsParenthesizedType<'a>)

Tuple Fields of TsParenthesizedType

0: &'a TsParenthesizedType<'a>
TsTypeOperator(&'a TsTypeOperator<'a>)

Tuple Fields of TsTypeOperator

0: &'a TsTypeOperator<'a>
TsIndexedAccessType(&'a TsIndexedAccessType<'a>)

Tuple Fields of TsIndexedAccessType

0: &'a TsIndexedAccessType<'a>
TsMappedType(&'a TsMappedType<'a>)

Tuple Fields of TsMappedType

0: &'a TsMappedType<'a>
TsLitType(&'a TsLitType<'a>)

Tuple Fields of TsLitType

0: &'a TsLitType<'a>
TsTypePredicate(&'a TsTypePredicate<'a>)

Tuple Fields of TsTypePredicate

0: &'a TsTypePredicate<'a>
TsImportType(&'a TsImportType<'a>)

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.

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