#[non_exhaustive]pub enum DoStmt {
Bind {
pat: Pat,
expr: Expr,
pos: Pos,
span: Span,
},
Let {
bindings: Vec<Binding>,
pos: Pos,
span: Span,
},
Expr {
expr: Expr,
pos: Pos,
span: Span,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bind
pat <- expr
Fields
Let
let x = e (no in) inside a do block.
Fields
Expr
Bare expression statement.
Trait Implementations§
impl Eq for DoStmt
impl StructuralPartialEq for DoStmt
Auto Trait Implementations§
impl Freeze for DoStmt
impl RefUnwindSafe for DoStmt
impl Send for DoStmt
impl Sync for DoStmt
impl Unpin for DoStmt
impl UnsafeUnpin for DoStmt
impl UnwindSafe for DoStmt
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