pub enum NodeKind {
Show 167 variants
ArrayLit,
ArrayPat,
ArrowExpr,
AssignExpr,
AssignPat,
AssignPatProp,
AssignProp,
AwaitExpr,
BigInt,
BinExpr,
BindingIdent,
BlockStmt,
Bool,
BreakStmt,
CallExpr,
CatchClause,
Class,
ClassDecl,
ClassExpr,
ClassMethod,
ClassProp,
ComputedPropName,
CondExpr,
Constructor,
ContinueStmt,
DebuggerStmt,
Decorator,
DoWhileStmt,
EmptyStmt,
ExportAll,
ExportDecl,
ExportDefaultDecl,
ExportDefaultExpr,
ExportDefaultSpecifier,
ExportNamedSpecifier,
ExportNamespaceSpecifier,
ExprOrSpread,
ExprStmt,
FnDecl,
FnExpr,
ForInStmt,
ForOfStmt,
ForStmt,
Function,
GetterProp,
Ident,
IfStmt,
Import,
ImportDecl,
ImportDefaultSpecifier,
ImportNamedSpecifier,
ImportStarAsSpecifier,
Invalid,
JSXAttr,
JSXClosingElement,
JSXClosingFragment,
JSXElement,
JSXEmptyExpr,
JSXExprContainer,
JSXFragment,
JSXMemberExpr,
JSXNamespacedName,
JSXOpeningElement,
JSXOpeningFragment,
JSXSpreadChild,
JSXText,
KeyValuePatProp,
KeyValueProp,
LabeledStmt,
MemberExpr,
MetaPropExpr,
MethodProp,
Module,
NamedExport,
NewExpr,
Null,
Number,
ObjectLit,
ObjectPat,
OptCall,
OptChainExpr,
Param,
ParenExpr,
PrivateMethod,
PrivateName,
PrivateProp,
Regex,
RestPat,
ReturnStmt,
Script,
SeqExpr,
SetterProp,
SpreadElement,
StaticBlock,
Str,
Super,
SuperPropExpr,
SwitchCase,
SwitchStmt,
TaggedTpl,
ThisExpr,
ThrowStmt,
Tpl,
TplElement,
TryStmt,
TsArrayType,
TsAsExpr,
TsCallSignatureDecl,
TsConditionalType,
TsConstAssertion,
TsConstructSignatureDecl,
TsConstructorType,
TsEnumDecl,
TsEnumMember,
TsExportAssignment,
TsExprWithTypeArgs,
TsExternalModuleRef,
TsFnType,
TsGetterSignature,
TsImportEqualsDecl,
TsImportType,
TsIndexSignature,
TsIndexedAccessType,
TsInferType,
TsInstantiation,
TsInterfaceBody,
TsInterfaceDecl,
TsIntersectionType,
TsKeywordType,
TsLitType,
TsMappedType,
TsMethodSignature,
TsModuleBlock,
TsModuleDecl,
TsNamespaceDecl,
TsNamespaceExportDecl,
TsNonNullExpr,
TsOptionalType,
TsParamProp,
TsParenthesizedType,
TsPropertySignature,
TsQualifiedName,
TsRestType,
TsSetterSignature,
TsThisType,
TsTplLitType,
TsTupleElement,
TsTupleType,
TsTypeAliasDecl,
TsTypeAnn,
TsTypeAssertion,
TsTypeLit,
TsTypeOperator,
TsTypeParam,
TsTypeParamDecl,
TsTypeParamInstantiation,
TsTypePredicate,
TsTypeQuery,
TsTypeRef,
TsUnionType,
UnaryExpr,
UpdateExpr,
VarDecl,
VarDeclarator,
WhileStmt,
WithStmt,
YieldExpr,
}
Variants
ArrayLit
ArrayPat
ArrowExpr
AssignExpr
AssignPat
AssignPatProp
AssignProp
AwaitExpr
BigInt
BinExpr
BindingIdent
BlockStmt
Bool
BreakStmt
CallExpr
CatchClause
Class
ClassDecl
ClassExpr
ClassMethod
ClassProp
ComputedPropName
CondExpr
Constructor
ContinueStmt
DebuggerStmt
Decorator
DoWhileStmt
EmptyStmt
ExportAll
ExportDecl
ExportDefaultDecl
ExportDefaultExpr
ExportDefaultSpecifier
ExportNamedSpecifier
ExportNamespaceSpecifier
ExprOrSpread
ExprStmt
FnDecl
FnExpr
ForInStmt
ForOfStmt
ForStmt
Function
GetterProp
Ident
IfStmt
Import
ImportDecl
ImportDefaultSpecifier
ImportNamedSpecifier
ImportStarAsSpecifier
Invalid
JSXAttr
JSXClosingElement
JSXClosingFragment
JSXElement
JSXEmptyExpr
JSXExprContainer
JSXFragment
JSXMemberExpr
JSXNamespacedName
JSXOpeningElement
JSXOpeningFragment
JSXSpreadChild
JSXText
KeyValuePatProp
KeyValueProp
LabeledStmt
MemberExpr
MetaPropExpr
MethodProp
Module
NamedExport
NewExpr
Null
Number
ObjectLit
ObjectPat
OptCall
OptChainExpr
Param
ParenExpr
PrivateMethod
PrivateName
PrivateProp
Regex
RestPat
ReturnStmt
Script
SeqExpr
SetterProp
SpreadElement
StaticBlock
Str
Super
SuperPropExpr
SwitchCase
SwitchStmt
TaggedTpl
ThisExpr
ThrowStmt
Tpl
TplElement
TryStmt
TsArrayType
TsAsExpr
TsCallSignatureDecl
TsConditionalType
TsConstAssertion
TsConstructSignatureDecl
TsConstructorType
TsEnumDecl
TsEnumMember
TsExportAssignment
TsExprWithTypeArgs
TsExternalModuleRef
TsFnType
TsGetterSignature
TsImportEqualsDecl
TsImportType
TsIndexSignature
TsIndexedAccessType
TsInferType
TsInstantiation
TsInterfaceBody
TsInterfaceDecl
TsIntersectionType
TsKeywordType
TsLitType
TsMappedType
TsMethodSignature
TsModuleBlock
TsModuleDecl
TsNamespaceDecl
TsNamespaceExportDecl
TsNonNullExpr
TsOptionalType
TsParamProp
TsParenthesizedType
TsPropertySignature
TsQualifiedName
TsRestType
TsSetterSignature
TsThisType
TsTplLitType
TsTupleElement
TsTupleType
TsTypeAliasDecl
TsTypeAnn
TsTypeAssertion
TsTypeLit
TsTypeOperator
TsTypeParam
TsTypeParamDecl
TsTypeParamInstantiation
TsTypePredicate
TsTypeQuery
TsTypeRef
TsUnionType
UnaryExpr
UpdateExpr
VarDecl
VarDeclarator
WhileStmt
WithStmt
YieldExpr
Trait Implementations
impl Copy for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnwindSafe for NodeKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more