pub enum Statement<'tree> {
Show 21 variants
Semicolon(Span),
AssertStatement(Box<AssertStatement<'tree>>),
Block(Box<Block<'tree>>),
BreakStatement(Box<BreakStatement<'tree>>),
ContinueStatement(Box<ContinueStatement<'tree>>),
Declaration(Box<Declaration<'tree>>),
DoStatement(Box<DoStatement<'tree>>),
EnhancedForStatement(Box<EnhancedForStatement<'tree>>),
ExpressionStatement(Box<ExpressionStatement<'tree>>),
ForStatement(Box<ForStatement<'tree>>),
IfStatement(Box<IfStatement<'tree>>),
LabeledStatement(Box<LabeledStatement<'tree>>),
LocalVariableDeclaration(Box<LocalVariableDeclaration<'tree>>),
ReturnStatement(Box<ReturnStatement<'tree>>),
SwitchExpression(Box<SwitchExpression<'tree>>),
SynchronizedStatement(Box<SynchronizedStatement<'tree>>),
ThrowStatement(Box<ThrowStatement<'tree>>),
TryStatement(Box<TryStatement<'tree>>),
TryWithResourcesStatement(Box<TryWithResourcesStatement<'tree>>),
WhileStatement(Box<WhileStatement<'tree>>),
YieldStatement(Box<YieldStatement<'tree>>),
}Variants§
Semicolon(Span)
AssertStatement(Box<AssertStatement<'tree>>)
Block(Box<Block<'tree>>)
BreakStatement(Box<BreakStatement<'tree>>)
ContinueStatement(Box<ContinueStatement<'tree>>)
Declaration(Box<Declaration<'tree>>)
DoStatement(Box<DoStatement<'tree>>)
EnhancedForStatement(Box<EnhancedForStatement<'tree>>)
ExpressionStatement(Box<ExpressionStatement<'tree>>)
ForStatement(Box<ForStatement<'tree>>)
IfStatement(Box<IfStatement<'tree>>)
LabeledStatement(Box<LabeledStatement<'tree>>)
LocalVariableDeclaration(Box<LocalVariableDeclaration<'tree>>)
ReturnStatement(Box<ReturnStatement<'tree>>)
SwitchExpression(Box<SwitchExpression<'tree>>)
SynchronizedStatement(Box<SynchronizedStatement<'tree>>)
ThrowStatement(Box<ThrowStatement<'tree>>)
TryStatement(Box<TryStatement<'tree>>)
TryWithResourcesStatement(Box<TryWithResourcesStatement<'tree>>)
WhileStatement(Box<WhileStatement<'tree>>)
YieldStatement(Box<YieldStatement<'tree>>)
Trait Implementations§
Auto Trait Implementations§
impl<'tree> Freeze for Statement<'tree>
impl<'tree> RefUnwindSafe for Statement<'tree>
impl<'tree> Send for Statement<'tree>
impl<'tree> Sync for Statement<'tree>
impl<'tree> Unpin for Statement<'tree>
impl<'tree> UnsafeUnpin for Statement<'tree>
impl<'tree> UnwindSafe for Statement<'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