pub enum AnyNode<'tree> {
Show 130 variants
CompoundStatement(CompoundStatement<'tree>),
SimpleStatement(SimpleStatement<'tree>),
Expression(Expression<'tree>),
Parameter(Parameter<'tree>),
Pattern(Pattern<'tree>),
PrimaryExpression(PrimaryExpression<'tree>),
AliasedImport(AliasedImport<'tree>),
ArgumentList(ArgumentList<'tree>),
AsPattern(AsPattern<'tree>),
AssertStatement(AssertStatement<'tree>),
Assignment(Assignment<'tree>),
Attribute(Attribute<'tree>),
AugmentedAssignment(AugmentedAssignment<'tree>),
Await(Await<'tree>),
BinaryOperator(BinaryOperator<'tree>),
Block(Block<'tree>),
BooleanOperator(BooleanOperator<'tree>),
BreakStatement(BreakStatement<'tree>),
Call(Call<'tree>),
CaseClause(CaseClause<'tree>),
CasePattern(CasePattern<'tree>),
Chevron(Chevron<'tree>),
ClassDefinition(ClassDefinition<'tree>),
ClassPattern(ClassPattern<'tree>),
ComparisonOperator(ComparisonOperator<'tree>),
ComplexPattern(ComplexPattern<'tree>),
ConcatenatedString(ConcatenatedString<'tree>),
ConditionalExpression(ConditionalExpression<'tree>),
ConstrainedType(ConstrainedType<'tree>),
ContinueStatement(ContinueStatement<'tree>),
DecoratedDefinition(DecoratedDefinition<'tree>),
Decorator(Decorator<'tree>),
DefaultParameter(DefaultParameter<'tree>),
DeleteStatement(DeleteStatement<'tree>),
DictPattern(DictPattern<'tree>),
Dictionary(Dictionary<'tree>),
DictionaryComprehension(DictionaryComprehension<'tree>),
DictionarySplat(DictionarySplat<'tree>),
DictionarySplatPattern(DictionarySplatPattern<'tree>),
DottedName(DottedName<'tree>),
ElifClause(ElifClause<'tree>),
ElseClause(ElseClause<'tree>),
ExceptClause(ExceptClause<'tree>),
ExecStatement(ExecStatement<'tree>),
ExpressionList(ExpressionList<'tree>),
ExpressionStatement(ExpressionStatement<'tree>),
FinallyClause(FinallyClause<'tree>),
ForInClause(ForInClause<'tree>),
ForStatement(ForStatement<'tree>),
FormatExpression(FormatExpression<'tree>),
FormatSpecifier(FormatSpecifier<'tree>),
FunctionDefinition(FunctionDefinition<'tree>),
FutureImportStatement(FutureImportStatement<'tree>),
GeneratorExpression(GeneratorExpression<'tree>),
GenericType(GenericType<'tree>),
GlobalStatement(GlobalStatement<'tree>),
IfClause(IfClause<'tree>),
IfStatement(IfStatement<'tree>),
ImportFromStatement(ImportFromStatement<'tree>),
ImportPrefix(ImportPrefix<'tree>),
ImportStatement(ImportStatement<'tree>),
Interpolation(Interpolation<'tree>),
KeywordArgument(KeywordArgument<'tree>),
KeywordPattern(KeywordPattern<'tree>),
KeywordSeparator(KeywordSeparator<'tree>),
Lambda(Lambda<'tree>),
LambdaParameters(LambdaParameters<'tree>),
List(List<'tree>),
ListComprehension(ListComprehension<'tree>),
ListPattern(ListPattern<'tree>),
ListSplat(ListSplat<'tree>),
ListSplatPattern(ListSplatPattern<'tree>),
MatchStatement(MatchStatement<'tree>),
MemberType(MemberType<'tree>),
Module(Module<'tree>),
NamedExpression(NamedExpression<'tree>),
NonlocalStatement(NonlocalStatement<'tree>),
NotOperator(NotOperator<'tree>),
Pair(Pair<'tree>),
Parameters(Parameters<'tree>),
ParenthesizedExpression(ParenthesizedExpression<'tree>),
ParenthesizedListSplat(ParenthesizedListSplat<'tree>),
PassStatement(PassStatement<'tree>),
PatternList(PatternList<'tree>),
PositionalSeparator(PositionalSeparator<'tree>),
PrintStatement(PrintStatement<'tree>),
RaiseStatement(RaiseStatement<'tree>),
RelativeImport(RelativeImport<'tree>),
ReturnStatement(ReturnStatement<'tree>),
Set(Set<'tree>),
SetComprehension(SetComprehension<'tree>),
Slice(Slice<'tree>),
SplatPattern(SplatPattern<'tree>),
SplatType(SplatType<'tree>),
String(String<'tree>),
StringContent(StringContent<'tree>),
Subscript(Subscript<'tree>),
TryStatement(TryStatement<'tree>),
Tuple(Tuple<'tree>),
TuplePattern(TuplePattern<'tree>),
Type(Type<'tree>),
TypeAliasStatement(TypeAliasStatement<'tree>),
TypeParameter(TypeParameter<'tree>),
TypedDefaultParameter(TypedDefaultParameter<'tree>),
TypedParameter(TypedParameter<'tree>),
UnaryOperator(UnaryOperator<'tree>),
UnionPattern(UnionPattern<'tree>),
UnionType(UnionType<'tree>),
WhileStatement(WhileStatement<'tree>),
WildcardImport(WildcardImport<'tree>),
WithClause(WithClause<'tree>),
WithItem(WithItem<'tree>),
WithStatement(WithStatement<'tree>),
Yield(Yield<'tree>),
Comment(Comment<'tree>),
Ellipsis(Ellipsis<'tree>),
EscapeInterpolation(EscapeInterpolation<'tree>),
EscapeSequence(EscapeSequence<'tree>),
False(False<'tree>),
Float(Float<'tree>),
Identifier(Identifier<'tree>),
Integer(Integer<'tree>),
LineContinuation(LineContinuation<'tree>),
None(None<'tree>),
StringEnd(StringEnd<'tree>),
StringStart(StringStart<'tree>),
True(True<'tree>),
TypeConversion(TypeConversion<'tree>),
AsPatternTarget(AsPatternTarget<'tree>),
Unknown(Node<'tree>),
}Variants§
CompoundStatement(CompoundStatement<'tree>)
SimpleStatement(SimpleStatement<'tree>)
Expression(Expression<'tree>)
Parameter(Parameter<'tree>)
Pattern(Pattern<'tree>)
PrimaryExpression(PrimaryExpression<'tree>)
AliasedImport(AliasedImport<'tree>)
ArgumentList(ArgumentList<'tree>)
AsPattern(AsPattern<'tree>)
AssertStatement(AssertStatement<'tree>)
Assignment(Assignment<'tree>)
Attribute(Attribute<'tree>)
AugmentedAssignment(AugmentedAssignment<'tree>)
Await(Await<'tree>)
BinaryOperator(BinaryOperator<'tree>)
Block(Block<'tree>)
BooleanOperator(BooleanOperator<'tree>)
BreakStatement(BreakStatement<'tree>)
Call(Call<'tree>)
CaseClause(CaseClause<'tree>)
CasePattern(CasePattern<'tree>)
Chevron(Chevron<'tree>)
ClassDefinition(ClassDefinition<'tree>)
ClassPattern(ClassPattern<'tree>)
ComparisonOperator(ComparisonOperator<'tree>)
ComplexPattern(ComplexPattern<'tree>)
ConcatenatedString(ConcatenatedString<'tree>)
ConditionalExpression(ConditionalExpression<'tree>)
ConstrainedType(ConstrainedType<'tree>)
ContinueStatement(ContinueStatement<'tree>)
DecoratedDefinition(DecoratedDefinition<'tree>)
Decorator(Decorator<'tree>)
DefaultParameter(DefaultParameter<'tree>)
DeleteStatement(DeleteStatement<'tree>)
DictPattern(DictPattern<'tree>)
Dictionary(Dictionary<'tree>)
DictionaryComprehension(DictionaryComprehension<'tree>)
DictionarySplat(DictionarySplat<'tree>)
DictionarySplatPattern(DictionarySplatPattern<'tree>)
DottedName(DottedName<'tree>)
ElifClause(ElifClause<'tree>)
ElseClause(ElseClause<'tree>)
ExceptClause(ExceptClause<'tree>)
ExecStatement(ExecStatement<'tree>)
ExpressionList(ExpressionList<'tree>)
ExpressionStatement(ExpressionStatement<'tree>)
FinallyClause(FinallyClause<'tree>)
ForInClause(ForInClause<'tree>)
ForStatement(ForStatement<'tree>)
FormatExpression(FormatExpression<'tree>)
FormatSpecifier(FormatSpecifier<'tree>)
FunctionDefinition(FunctionDefinition<'tree>)
FutureImportStatement(FutureImportStatement<'tree>)
GeneratorExpression(GeneratorExpression<'tree>)
GenericType(GenericType<'tree>)
GlobalStatement(GlobalStatement<'tree>)
IfClause(IfClause<'tree>)
IfStatement(IfStatement<'tree>)
ImportFromStatement(ImportFromStatement<'tree>)
ImportPrefix(ImportPrefix<'tree>)
ImportStatement(ImportStatement<'tree>)
Interpolation(Interpolation<'tree>)
KeywordArgument(KeywordArgument<'tree>)
KeywordPattern(KeywordPattern<'tree>)
KeywordSeparator(KeywordSeparator<'tree>)
Lambda(Lambda<'tree>)
LambdaParameters(LambdaParameters<'tree>)
List(List<'tree>)
ListComprehension(ListComprehension<'tree>)
ListPattern(ListPattern<'tree>)
ListSplat(ListSplat<'tree>)
ListSplatPattern(ListSplatPattern<'tree>)
MatchStatement(MatchStatement<'tree>)
MemberType(MemberType<'tree>)
Module(Module<'tree>)
NamedExpression(NamedExpression<'tree>)
NonlocalStatement(NonlocalStatement<'tree>)
NotOperator(NotOperator<'tree>)
Pair(Pair<'tree>)
Parameters(Parameters<'tree>)
ParenthesizedExpression(ParenthesizedExpression<'tree>)
ParenthesizedListSplat(ParenthesizedListSplat<'tree>)
PassStatement(PassStatement<'tree>)
PatternList(PatternList<'tree>)
PositionalSeparator(PositionalSeparator<'tree>)
PrintStatement(PrintStatement<'tree>)
RaiseStatement(RaiseStatement<'tree>)
RelativeImport(RelativeImport<'tree>)
ReturnStatement(ReturnStatement<'tree>)
Set(Set<'tree>)
SetComprehension(SetComprehension<'tree>)
Slice(Slice<'tree>)
SplatPattern(SplatPattern<'tree>)
SplatType(SplatType<'tree>)
String(String<'tree>)
StringContent(StringContent<'tree>)
Subscript(Subscript<'tree>)
TryStatement(TryStatement<'tree>)
Tuple(Tuple<'tree>)
TuplePattern(TuplePattern<'tree>)
Type(Type<'tree>)
TypeAliasStatement(TypeAliasStatement<'tree>)
TypeParameter(TypeParameter<'tree>)
TypedDefaultParameter(TypedDefaultParameter<'tree>)
TypedParameter(TypedParameter<'tree>)
UnaryOperator(UnaryOperator<'tree>)
UnionPattern(UnionPattern<'tree>)
UnionType(UnionType<'tree>)
WhileStatement(WhileStatement<'tree>)
WildcardImport(WildcardImport<'tree>)
WithClause(WithClause<'tree>)
WithItem(WithItem<'tree>)
WithStatement(WithStatement<'tree>)
Yield(Yield<'tree>)
Comment(Comment<'tree>)
Ellipsis(Ellipsis<'tree>)
EscapeInterpolation(EscapeInterpolation<'tree>)
EscapeSequence(EscapeSequence<'tree>)
False(False<'tree>)
Float(Float<'tree>)
Identifier(Identifier<'tree>)
Integer(Integer<'tree>)
LineContinuation(LineContinuation<'tree>)
None(None<'tree>)
StringEnd(StringEnd<'tree>)
StringStart(StringStart<'tree>)
True(True<'tree>)
TypeConversion(TypeConversion<'tree>)
AsPatternTarget(AsPatternTarget<'tree>)
Unknown(Node<'tree>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'tree> Freeze for AnyNode<'tree>
impl<'tree> RefUnwindSafe for AnyNode<'tree>
impl<'tree> Send for AnyNode<'tree>
impl<'tree> Sync for AnyNode<'tree>
impl<'tree> Unpin for AnyNode<'tree>
impl<'tree> UnsafeUnpin for AnyNode<'tree>
impl<'tree> UnwindSafe for AnyNode<'tree>
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