pub enum AstKind {
Show 279 variants Accessibility, ArrayLit, ArrayPat, ArrowExpr, AssignExpr, AssignOp, AssignPat, AssignPatProp, AssignProp, AwaitExpr, BigInt, BigIntValue, BinExpr, BinaryOp, BindingIdent, BlockStmt, BlockStmtOrExpr, Bool, BreakStmt, CallExpr, Callee, CatchClause, Class, ClassDecl, ClassExpr, ClassMember, ClassMethod, ClassProp, ComputedPropName, CondExpr, Constructor, ContinueStmt, DebuggerStmt, Decl, Decorator, DefaultDecl, DoWhileStmt, EmptyStmt, ExportAll, ExportDecl, ExportDefaultDecl, ExportDefaultExpr, ExportDefaultSpecifier, ExportNamedSpecifier, ExportNamespaceSpecifier, ExportSpecifier, Expr, ExprOrSpread, ExprStmt, FnDecl, FnExpr, ForInStmt, ForOfStmt, ForStmt, Function, GetterProp, Ident, IfStmt, Import, ImportDecl, ImportDefaultSpecifier, ImportNamedSpecifier, ImportSpecifier, ImportStarAsSpecifier, Invalid, JSXAttr, JSXAttrName, JSXAttrOrSpread, JSXAttrValue, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXFragment, JSXMemberExpr, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, JsWord, KeyValuePatProp, KeyValueProp, LabeledStmt, Lit, MemberExpr, MemberProp, MetaPropExpr, MetaPropKind, MethodKind, MethodProp, Module, ModuleDecl, ModuleExportName, ModuleItem, NamedExport, NewExpr, Null, Number, ObjectLit, ObjectPat, ObjectPatProp, OptAccessibility, OptBlockStmt, OptCall, OptCatchClause, OptChainBase, OptChainExpr, OptExpr, OptExprOrSpread, OptIdent, OptJSXAttrValue, OptJSXClosingElement, OptJsWord, OptModuleExportName, OptObjectLit, OptPat, OptSpan, OptStmt, OptStr, OptTruePlusMinus, OptTsEntityName, OptTsNamespaceBody, OptTsType, OptTsTypeAnn, OptTsTypeParamDecl, OptTsTypeParamInstantiation, OptVarDeclOrExpr, OptVecExprOrSpread, Param, ParamOrTsParamProp, ParenExpr, Pat, PatOrExpr, PrivateMethod, PrivateName, PrivateProp, Program, Prop, PropName, PropOrSpread, Regex, RestPat, ReturnStmt, Script, SeqExpr, SetterProp, Span, SpreadElement, StaticBlock, Stmt, Str, Super, SuperProp, SuperPropExpr, SwitchCase, SwitchStmt, TaggedTpl, ThisExpr, ThrowStmt, Tpl, TplElement, TruePlusMinus, TryStmt, TsArrayType, TsAsExpr, TsCallSignatureDecl, TsConditionalType, TsConstAssertion, TsConstructSignatureDecl, TsConstructorType, TsEntityName, TsEnumDecl, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExprWithTypeArgs, TsExternalModuleRef, TsFnOrConstructorType, TsFnParam, TsFnType, TsGetterSignature, TsImportEqualsDecl, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDecl, TsIntersectionType, TsKeywordType, TsKeywordTypeKind, TsLit, TsLitType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDecl, TsModuleName, TsModuleRef, TsNamespaceBody, TsNamespaceDecl, TsNamespaceExportDecl, TsNonNullExpr, TsOptionalType, TsParamProp, TsParamPropParam, TsParenthesizedType, TsPropertySignature, TsQualifiedName, TsRestType, TsSetterSignature, TsThisType, TsThisTypeOrIdent, TsTplLitType, TsTupleElement, TsTupleType, TsType, TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeElement, TsTypeLit, TsTypeOperator, TsTypeOperatorOp, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation, TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeRef, TsUnionOrIntersectionType, TsUnionType, UnaryExpr, UnaryOp, UpdateExpr, UpdateOp, VarDecl, VarDeclKind, VarDeclOrExpr, VarDeclOrPat, VarDeclarator, VecClassMember, VecDecorator, VecExportSpecifier, VecExpr, VecExprOrSpread, VecImportSpecifier, VecJSXAttrOrSpread, VecJSXElementChild, VecModuleItem, VecObjectPatProp, VecOptExprOrSpread, VecOptPat, VecParam, VecParamOrTsParamProp, VecPat, VecPropOrSpread, VecStmt, VecSwitchCase, VecTplElement, VecTsEnumMember, VecTsExprWithTypeArgs, VecTsFnParam, VecTsTupleElement, VecTsType, VecTsTypeElement, VecTsTypeParam, VecVarDeclarator, WhileStmt, WithStmt, YieldExpr,
}

Variants

Accessibility

ArrayLit

ArrayPat

ArrowExpr

AssignExpr

AssignOp

AssignPat

AssignPatProp

AssignProp

AwaitExpr

BigInt

BigIntValue

BinExpr

BinaryOp

BindingIdent

BlockStmt

BlockStmtOrExpr

Bool

BreakStmt

CallExpr

Callee

CatchClause

Class

ClassDecl

ClassExpr

ClassMember

ClassMethod

ClassProp

ComputedPropName

CondExpr

Constructor

ContinueStmt

DebuggerStmt

Decl

Decorator

DefaultDecl

DoWhileStmt

EmptyStmt

ExportAll

ExportDecl

ExportDefaultDecl

ExportDefaultExpr

ExportDefaultSpecifier

ExportNamedSpecifier

ExportNamespaceSpecifier

ExportSpecifier

Expr

ExprOrSpread

ExprStmt

FnDecl

FnExpr

ForInStmt

ForOfStmt

ForStmt

Function

GetterProp

Ident

IfStmt

Import

ImportDecl

ImportDefaultSpecifier

ImportNamedSpecifier

ImportSpecifier

ImportStarAsSpecifier

Invalid

JSXAttr

JSXAttrName

JSXAttrOrSpread

JSXAttrValue

JSXClosingElement

JSXClosingFragment

JSXElement

JSXElementChild

JSXElementName

JSXEmptyExpr

JSXExpr

JSXExprContainer

JSXFragment

JSXMemberExpr

JSXNamespacedName

JSXObject

JSXOpeningElement

JSXOpeningFragment

JSXSpreadChild

JSXText

JsWord

KeyValuePatProp

KeyValueProp

LabeledStmt

Lit

MemberExpr

MemberProp

MetaPropExpr

MetaPropKind

MethodKind

MethodProp

Module

ModuleDecl

ModuleExportName

ModuleItem

NamedExport

NewExpr

Null

Number

ObjectLit

ObjectPat

ObjectPatProp

OptAccessibility

OptBlockStmt

OptCall

OptCatchClause

OptChainBase

OptChainExpr

OptExpr

OptExprOrSpread

OptIdent

OptJSXAttrValue

OptJSXClosingElement

OptJsWord

OptModuleExportName

OptObjectLit

OptPat

OptSpan

OptStmt

OptStr

OptTruePlusMinus

OptTsEntityName

OptTsNamespaceBody

OptTsType

OptTsTypeAnn

OptTsTypeParamDecl

OptTsTypeParamInstantiation

OptVarDeclOrExpr

OptVecExprOrSpread

Param

ParamOrTsParamProp

ParenExpr

Pat

PatOrExpr

PrivateMethod

PrivateName

PrivateProp

Program

Prop

PropName

PropOrSpread

Regex

RestPat

ReturnStmt

Script

SeqExpr

SetterProp

Span

SpreadElement

StaticBlock

Stmt

Str

Super

SuperProp

SuperPropExpr

SwitchCase

SwitchStmt

TaggedTpl

ThisExpr

ThrowStmt

Tpl

TplElement

TruePlusMinus

TryStmt

TsArrayType

TsAsExpr

TsCallSignatureDecl

TsConditionalType

TsConstAssertion

TsConstructSignatureDecl

TsConstructorType

TsEntityName

TsEnumDecl

TsEnumMember

TsEnumMemberId

TsExportAssignment

TsExprWithTypeArgs

TsExternalModuleRef

TsFnOrConstructorType

TsFnParam

TsFnType

TsGetterSignature

TsImportEqualsDecl

TsImportType

TsIndexSignature

TsIndexedAccessType

TsInferType

TsInstantiation

TsInterfaceBody

TsInterfaceDecl

TsIntersectionType

TsKeywordType

TsKeywordTypeKind

TsLit

TsLitType

TsMappedType

TsMethodSignature

TsModuleBlock

TsModuleDecl

TsModuleName

TsModuleRef

TsNamespaceBody

TsNamespaceDecl

TsNamespaceExportDecl

TsNonNullExpr

TsOptionalType

TsParamProp

TsParamPropParam

TsParenthesizedType

TsPropertySignature

TsQualifiedName

TsRestType

TsSetterSignature

TsThisType

TsThisTypeOrIdent

TsTplLitType

TsTupleElement

TsTupleType

TsType

TsTypeAliasDecl

TsTypeAnn

TsTypeAssertion

TsTypeElement

TsTypeLit

TsTypeOperator

TsTypeOperatorOp

TsTypeParam

TsTypeParamDecl

TsTypeParamInstantiation

TsTypePredicate

TsTypeQuery

TsTypeQueryExpr

TsTypeRef

TsUnionOrIntersectionType

TsUnionType

UnaryExpr

UnaryOp

UpdateExpr

UpdateOp

VarDecl

VarDeclKind

VarDeclOrExpr

VarDeclOrPat

VarDeclarator

VecClassMember

VecDecorator

VecExportSpecifier

VecExpr

VecExprOrSpread

VecImportSpecifier

VecJSXAttrOrSpread

VecJSXElementChild

VecModuleItem

VecObjectPatProp

VecOptExprOrSpread

VecOptPat

VecParam

VecParamOrTsParamProp

VecPat

VecPropOrSpread

VecStmt

VecSwitchCase

VecTplElement

VecTsEnumMember

VecTsExprWithTypeArgs

VecTsFnParam

VecTsTupleElement

VecTsType

VecTsTypeElement

VecTsTypeParam

VecVarDeclarator

WhileStmt

WithStmt

YieldExpr

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Compare self to key and return true if they are equal.

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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