pub enum AnyNode<'tree> {
Show 52 variants
Declaration(Declaration<'tree>),
Expression(Expression<'tree>),
Statement(Statement<'tree>),
Variable(Variable<'tree>),
Arguments(Arguments<'tree>),
AssignmentStatement(AssignmentStatement<'tree>),
Attribute(Attribute<'tree>),
BinaryExpression(BinaryExpression<'tree>),
Block(Block<'tree>),
BracketIndexExpression(BracketIndexExpression<'tree>),
Chunk(Chunk<'tree>),
Comment(Comment<'tree>),
DoStatement(DoStatement<'tree>),
DotIndexExpression(DotIndexExpression<'tree>),
ElseStatement(ElseStatement<'tree>),
ElseifStatement(ElseifStatement<'tree>),
EmptyStatement(EmptyStatement<'tree>),
ExpressionList(ExpressionList<'tree>),
Field(Field<'tree>),
ForGenericClause(ForGenericClause<'tree>),
ForNumericClause(ForNumericClause<'tree>),
ForStatement(ForStatement<'tree>),
FunctionCall(FunctionCall<'tree>),
FunctionDeclaration(FunctionDeclaration<'tree>),
FunctionDefinition(FunctionDefinition<'tree>),
GotoStatement(GotoStatement<'tree>),
IfStatement(IfStatement<'tree>),
ImplicitVariableDeclaration(ImplicitVariableDeclaration<'tree>),
LabelStatement(LabelStatement<'tree>),
MethodIndexExpression(MethodIndexExpression<'tree>),
Parameters(Parameters<'tree>),
ParenthesizedExpression(ParenthesizedExpression<'tree>),
RepeatStatement(RepeatStatement<'tree>),
ReturnStatement(ReturnStatement<'tree>),
String(String<'tree>),
StringContent(StringContent<'tree>),
TableConstructor(TableConstructor<'tree>),
UnaryExpression(UnaryExpression<'tree>),
VariableDeclaration(VariableDeclaration<'tree>),
VariableList(VariableList<'tree>),
WhileStatement(WhileStatement<'tree>),
BreakStatement(BreakStatement<'tree>),
CommentContent(CommentContent<'tree>),
EscapeSequence(EscapeSequence<'tree>),
False(False<'tree>),
HashBangLine(HashBangLine<'tree>),
Identifier(Identifier<'tree>),
Nil(Nil<'tree>),
Number(Number<'tree>),
True(True<'tree>),
VarargExpression(VarargExpression<'tree>),
Unknown(Node<'tree>),
}Variants§
Declaration(Declaration<'tree>)
Expression(Expression<'tree>)
Statement(Statement<'tree>)
Variable(Variable<'tree>)
Arguments(Arguments<'tree>)
AssignmentStatement(AssignmentStatement<'tree>)
Attribute(Attribute<'tree>)
BinaryExpression(BinaryExpression<'tree>)
Block(Block<'tree>)
BracketIndexExpression(BracketIndexExpression<'tree>)
Chunk(Chunk<'tree>)
Comment(Comment<'tree>)
DoStatement(DoStatement<'tree>)
DotIndexExpression(DotIndexExpression<'tree>)
ElseStatement(ElseStatement<'tree>)
ElseifStatement(ElseifStatement<'tree>)
EmptyStatement(EmptyStatement<'tree>)
ExpressionList(ExpressionList<'tree>)
Field(Field<'tree>)
ForGenericClause(ForGenericClause<'tree>)
ForNumericClause(ForNumericClause<'tree>)
ForStatement(ForStatement<'tree>)
FunctionCall(FunctionCall<'tree>)
FunctionDeclaration(FunctionDeclaration<'tree>)
FunctionDefinition(FunctionDefinition<'tree>)
GotoStatement(GotoStatement<'tree>)
IfStatement(IfStatement<'tree>)
ImplicitVariableDeclaration(ImplicitVariableDeclaration<'tree>)
LabelStatement(LabelStatement<'tree>)
MethodIndexExpression(MethodIndexExpression<'tree>)
Parameters(Parameters<'tree>)
ParenthesizedExpression(ParenthesizedExpression<'tree>)
RepeatStatement(RepeatStatement<'tree>)
ReturnStatement(ReturnStatement<'tree>)
String(String<'tree>)
StringContent(StringContent<'tree>)
TableConstructor(TableConstructor<'tree>)
UnaryExpression(UnaryExpression<'tree>)
VariableDeclaration(VariableDeclaration<'tree>)
VariableList(VariableList<'tree>)
WhileStatement(WhileStatement<'tree>)
BreakStatement(BreakStatement<'tree>)
CommentContent(CommentContent<'tree>)
EscapeSequence(EscapeSequence<'tree>)
False(False<'tree>)
HashBangLine(HashBangLine<'tree>)
Identifier(Identifier<'tree>)
Nil(Nil<'tree>)
Number(Number<'tree>)
True(True<'tree>)
VarargExpression(VarargExpression<'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