pub enum Stmt {
Expr(Expr),
Local(Vec<(String, Expr)>),
Assert {
cond: Expr,
message: Option<Expr>,
},
}
Expand description
Statement (for top-level constructs)
Variants§
Expr(Expr)
Expression statement
Local(Vec<(String, Expr)>)
Local binding at top level
Assert
Assert at top level
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