pub enum SeqStmt {
Let {
name: String,
mutable: bool,
value: SeqExpr,
line: usize,
},
Assign {
name: String,
value: SeqExpr,
line: usize,
},
If {
cond: SeqExpr,
then: Vec<SeqStmt>,
elifs: Vec<(SeqExpr, Vec<SeqStmt>)>,
els: Option<Vec<SeqStmt>>,
line: usize,
},
For {
var: String,
source: String,
body: Vec<SeqStmt>,
line: usize,
},
Match {
value: SeqExpr,
arms: Vec<SeqMatchArm>,
line: usize,
},
Return {
value: Option<SeqExpr>,
line: usize,
},
Expr(SeqExpr),
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeqStmt
impl RefUnwindSafe for SeqStmt
impl Send for SeqStmt
impl Sync for SeqStmt
impl Unpin for SeqStmt
impl UnsafeUnpin for SeqStmt
impl UnwindSafe for SeqStmt
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