pub enum Stmt {
Show 13 variants
Expr(Expr),
SystemIris {
traits: Vec<String>,
},
Let {
name: String,
value: Expr,
},
Const {
name: String,
value: Expr,
},
Fn {
name: String,
params: Vec<String>,
body: Vec<Stmt>,
},
Block(Vec<Stmt>),
If {
condition: Expr,
then_branch: Vec<Stmt>,
else_branch: Option<Vec<Stmt>>,
},
While {
condition: Expr,
body: Vec<Stmt>,
},
For {
var: String,
iterable: Expr,
body: Vec<Stmt>,
},
Return(Option<Expr>),
Break,
Continue,
Import {
path: String,
},
}Variants§
Expr(Expr)
SystemIris
Let
Const
Fn
Block(Vec<Stmt>)
If
While
For
Return(Option<Expr>)
Break
Continue
Import
Trait Implementations§
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnsafeUnpin 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