pub enum Stmt {
Block(Vec<Stmt>),
Expr(Expr),
If(Expr, Box<Stmt>, Option<Box<Stmt>>),
Return(Option<Expr>),
Var(String, Option<Expr>),
While(Expr, Box<Stmt>),
}
Variants§
Block(Vec<Stmt>)
Expr(Expr)
If(Expr, Box<Stmt>, Option<Box<Stmt>>)
Return(Option<Expr>)
Var(String, Option<Expr>)
While(Expr, Box<Stmt>)
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 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