pub enum Stmt {
Show 21 variants
Bad(Rc<BadStmt, Global>),
Decl(Rc<Decl, Global>),
Empty(Rc<EmptyStmt, Global>),
Labeled(LabeledStmtKey),
Expr(Box<Expr, Global>),
Send(Rc<SendStmt, Global>),
IncDec(Rc<IncDecStmt, Global>),
Assign(AssignStmtKey),
Go(Rc<GoStmt, Global>),
Defer(Rc<DeferStmt, Global>),
Return(Rc<ReturnStmt, Global>),
Branch(Rc<BranchStmt, Global>),
Block(Rc<BlockStmt, Global>),
If(Rc<IfStmt, Global>),
Case(Rc<CaseClause, Global>),
Switch(Rc<SwitchStmt, Global>),
TypeSwitch(Rc<TypeSwitchStmt, Global>),
Comm(Rc<CommClause, Global>),
Select(Rc<SelectStmt, Global>),
For(Rc<ForStmt, Global>),
Range(Rc<RangeStmt, Global>),
}
Variants§
Bad(Rc<BadStmt, Global>)
Decl(Rc<Decl, Global>)
Empty(Rc<EmptyStmt, Global>)
Labeled(LabeledStmtKey)
Expr(Box<Expr, Global>)
Send(Rc<SendStmt, Global>)
IncDec(Rc<IncDecStmt, Global>)
Assign(AssignStmtKey)
Go(Rc<GoStmt, Global>)
Defer(Rc<DeferStmt, Global>)
Return(Rc<ReturnStmt, Global>)
Branch(Rc<BranchStmt, Global>)
Block(Rc<BlockStmt, Global>)
If(Rc<IfStmt, Global>)
Case(Rc<CaseClause, Global>)
Switch(Rc<SwitchStmt, Global>)
TypeSwitch(Rc<TypeSwitchStmt, Global>)
Comm(Rc<CommClause, Global>)
Select(Rc<SelectStmt, Global>)
For(Rc<ForStmt, Global>)
Range(Rc<RangeStmt, Global>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Stmt
impl !Send for Stmt
impl !Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
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