pub enum IdrisDoStmt {
Bind(String, IdrisExpr),
Let(String, IdrisExpr),
Expr(IdrisExpr),
LetTyped(String, IdrisType, IdrisExpr),
Ignore(IdrisExpr),
}Expand description
A statement inside a do block.
Variants§
Bind(String, IdrisExpr)
x <- action
Let(String, IdrisExpr)
let x = val
Expr(IdrisExpr)
A bare expression (last statement or side-effect).
LetTyped(String, IdrisType, IdrisExpr)
let x : T = val
Ignore(IdrisExpr)
ignore action
Trait Implementations§
Source§impl Clone for IdrisDoStmt
impl Clone for IdrisDoStmt
Source§fn clone(&self) -> IdrisDoStmt
fn clone(&self) -> IdrisDoStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdrisDoStmt
impl Debug for IdrisDoStmt
Source§impl Display for IdrisDoStmt
impl Display for IdrisDoStmt
Source§impl PartialEq for IdrisDoStmt
impl PartialEq for IdrisDoStmt
impl StructuralPartialEq for IdrisDoStmt
Auto Trait Implementations§
impl Freeze for IdrisDoStmt
impl RefUnwindSafe for IdrisDoStmt
impl Send for IdrisDoStmt
impl Sync for IdrisDoStmt
impl Unpin for IdrisDoStmt
impl UnsafeUnpin for IdrisDoStmt
impl UnwindSafe for IdrisDoStmt
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