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
Tuple Fields of TsKeywordType
0: &'a TsKeywordType<'a>
Tuple Fields of TsThisType
0: &'a TsThisType<'a>
Tuple Fields of TsFnOrConstructorType
0: TsFnOrConstructorType<'a>
Tuple Fields of TsTypeRef
0: &'a TsTypeRef<'a>
Tuple Fields of TsTypeQuery
0: &'a TsTypeQuery<'a>
Tuple Fields of TsTypeLit
0: &'a TsTypeLit<'a>
Tuple Fields of TsArrayType
0: &'a TsArrayType<'a>
Tuple Fields of TsTupleType
0: &'a TsTupleType<'a>
Tuple Fields of TsOptionalType
0: &'a TsOptionalType<'a>
Tuple Fields of TsRestType
0: &'a TsRestType<'a>
Tuple Fields of TsUnionOrIntersectionType
0: TsUnionOrIntersectionType<'a>
Tuple Fields of TsConditionalType
0: &'a TsConditionalType<'a>
Tuple Fields of TsInferType
0: &'a TsInferType<'a>
Tuple Fields of TsParenthesizedType
0: &'a TsParenthesizedType<'a>
Tuple Fields of TsTypeOperator
0: &'a TsTypeOperator<'a>
Tuple Fields of TsIndexedAccessType
0: &'a TsIndexedAccessType<'a>
Tuple Fields of TsMappedType
0: &'a TsMappedType<'a>
Tuple Fields of TsLitType
0: &'a TsLitType<'a>
Tuple Fields of TsTypePredicate
0: &'a TsTypePredicate<'a>
Tuple Fields of TsImportType
0: &'a TsImportType<'a>
Implementations
Trait Implementations
fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
Notable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
Gets the previous siblings in the order they appear in the file.
Gets the next siblings in the order they appear in the file.
fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
Notable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
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.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TsType<'a>
impl<'a> !UnwindSafe for TsType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more