pub enum StmtKind {
Let {
name: String,
value: Expr,
},
Assign {
target: AssignTarget,
op: AssignOp,
value: Expr,
},
If {
condition: Expr,
body: Vec<Stmt>,
else_ifs: Vec<(Expr, Vec<Stmt>)>,
else_body: Option<Vec<Stmt>>,
},
While {
condition: Expr,
body: Vec<Stmt>,
},
Repeat {
count: Expr,
body: Vec<Stmt>,
},
ForIn {
var: String,
iterable: Expr,
body: Vec<Stmt>,
},
FnDecl {
name: String,
params: Vec<String>,
body: Vec<Stmt>,
},
Return {
value: Option<Expr>,
},
Break,
Continue,
ExprStmt(Expr),
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StmtKind
impl RefUnwindSafe for StmtKind
impl Send for StmtKind
impl Sync for StmtKind
impl Unpin for StmtKind
impl UnsafeUnpin for StmtKind
impl UnwindSafe for StmtKind
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