pub enum NodeKind {
Show 94 variants
ModModule,
ModExpression,
StmtFunctionDef,
StmtClassDef,
StmtReturn,
StmtDelete,
StmtTypeAlias,
StmtAssign,
StmtAugAssign,
StmtAnnAssign,
StmtFor,
StmtWhile,
StmtIf,
StmtWith,
StmtMatch,
StmtRaise,
StmtTry,
StmtAssert,
StmtImport,
StmtImportFrom,
StmtGlobal,
StmtNonlocal,
StmtExpr,
StmtPass,
StmtBreak,
StmtContinue,
StmtIpyEscapeCommand,
ExprBoolOp,
ExprNamed,
ExprBinOp,
ExprUnaryOp,
ExprLambda,
ExprIf,
ExprDict,
ExprSet,
ExprListComp,
ExprSetComp,
ExprDictComp,
ExprGenerator,
ExprAwait,
ExprYield,
ExprYieldFrom,
ExprCompare,
ExprCall,
ExprFString,
ExprTString,
ExprStringLiteral,
ExprBytesLiteral,
ExprNumberLiteral,
ExprBooleanLiteral,
ExprNoneLiteral,
ExprEllipsisLiteral,
ExprAttribute,
ExprSubscript,
ExprStarred,
ExprName,
ExprList,
ExprTuple,
ExprSlice,
ExprIpyEscapeCommand,
ExceptHandlerExceptHandler,
InterpolatedElement,
InterpolatedStringLiteralElement,
PatternMatchValue,
PatternMatchSingleton,
PatternMatchSequence,
PatternMatchMapping,
PatternMatchClass,
PatternMatchStar,
PatternMatchAs,
PatternMatchOr,
TypeParamTypeVar,
TypeParamTypeVarTuple,
TypeParamParamSpec,
InterpolatedStringFormatSpec,
PatternArguments,
PatternKeyword,
Comprehension,
Arguments,
Parameters,
Parameter,
ParameterWithDefault,
Keyword,
Alias,
WithItem,
MatchCase,
Decorator,
ElifElseClause,
TypeParams,
FString,
TString,
StringLiteral,
BytesLiteral,
Identifier,
}Variants§
ModModule
ModExpression
StmtFunctionDef
StmtClassDef
StmtReturn
StmtDelete
StmtTypeAlias
StmtAssign
StmtAugAssign
StmtAnnAssign
StmtFor
StmtWhile
StmtIf
StmtWith
StmtMatch
StmtRaise
StmtTry
StmtAssert
StmtImport
StmtImportFrom
StmtGlobal
StmtNonlocal
StmtExpr
StmtPass
StmtBreak
StmtContinue
StmtIpyEscapeCommand
ExprBoolOp
ExprNamed
ExprBinOp
ExprUnaryOp
ExprLambda
ExprIf
ExprDict
ExprSet
ExprListComp
ExprSetComp
ExprDictComp
ExprGenerator
ExprAwait
ExprYield
ExprYieldFrom
ExprCompare
ExprCall
ExprFString
ExprTString
ExprStringLiteral
ExprBytesLiteral
ExprNumberLiteral
ExprBooleanLiteral
ExprNoneLiteral
ExprEllipsisLiteral
ExprAttribute
ExprSubscript
ExprStarred
ExprName
ExprList
ExprTuple
ExprSlice
ExprIpyEscapeCommand
ExceptHandlerExceptHandler
InterpolatedElement
InterpolatedStringLiteralElement
PatternMatchValue
PatternMatchSingleton
PatternMatchSequence
PatternMatchMapping
PatternMatchClass
PatternMatchStar
PatternMatchAs
PatternMatchOr
TypeParamTypeVar
TypeParamTypeVarTuple
TypeParamParamSpec
InterpolatedStringFormatSpec
PatternArguments
PatternKeyword
Comprehension
Arguments
Parameters
Parameter
ParameterWithDefault
Keyword
Alias
WithItem
MatchCase
Decorator
ElifElseClause
TypeParams
FString
TString
StringLiteral
BytesLiteral
Identifier
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more