pub enum Statement<'tree> {
Show 19 variants
SimpleStatement(Box<SimpleStatement<'tree>>),
Block(Box<Block<'tree>>),
BreakStatement(Box<BreakStatement<'tree>>),
ConstDeclaration(Box<ConstDeclaration<'tree>>),
ContinueStatement(Box<ContinueStatement<'tree>>),
DeferStatement(Box<DeferStatement<'tree>>),
EmptyStatement(Box<EmptyStatement<'tree>>),
ExpressionSwitchStatement(Box<ExpressionSwitchStatement<'tree>>),
FallthroughStatement(Box<FallthroughStatement<'tree>>),
ForStatement(Box<ForStatement<'tree>>),
GoStatement(Box<GoStatement<'tree>>),
GotoStatement(Box<GotoStatement<'tree>>),
IfStatement(Box<IfStatement<'tree>>),
LabeledStatement(Box<LabeledStatement<'tree>>),
ReturnStatement(Box<ReturnStatement<'tree>>),
SelectStatement(Box<SelectStatement<'tree>>),
TypeDeclaration(Box<TypeDeclaration<'tree>>),
TypeSwitchStatement(Box<TypeSwitchStatement<'tree>>),
VarDeclaration(Box<VarDeclaration<'tree>>),
}Variants§
SimpleStatement(Box<SimpleStatement<'tree>>)
Block(Box<Block<'tree>>)
BreakStatement(Box<BreakStatement<'tree>>)
ConstDeclaration(Box<ConstDeclaration<'tree>>)
ContinueStatement(Box<ContinueStatement<'tree>>)
DeferStatement(Box<DeferStatement<'tree>>)
EmptyStatement(Box<EmptyStatement<'tree>>)
ExpressionSwitchStatement(Box<ExpressionSwitchStatement<'tree>>)
FallthroughStatement(Box<FallthroughStatement<'tree>>)
ForStatement(Box<ForStatement<'tree>>)
GoStatement(Box<GoStatement<'tree>>)
GotoStatement(Box<GotoStatement<'tree>>)
IfStatement(Box<IfStatement<'tree>>)
LabeledStatement(Box<LabeledStatement<'tree>>)
ReturnStatement(Box<ReturnStatement<'tree>>)
SelectStatement(Box<SelectStatement<'tree>>)
TypeDeclaration(Box<TypeDeclaration<'tree>>)
TypeSwitchStatement(Box<TypeSwitchStatement<'tree>>)
VarDeclaration(Box<VarDeclaration<'tree>>)
Trait Implementations§
impl<'tree> Eq for Statement<'tree>
impl<'tree> StructuralPartialEq for Statement<'tree>
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