pub struct LetStmt {
pub name: Ident,
pub mutable: bool,
pub ty: Option<TypeExpr>,
pub init: Box<Expr>,
}Expand description
Let binding statement: let x = 1; or let mut y: f64 = 3.14;
Fields§
§name: IdentBinding name.
mutable: boolWhether the binding is mutable (let mut).
ty: Option<TypeExpr>Optional explicit type annotation.
init: Box<Expr>Initializer expression (required in CJC).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LetStmt
impl RefUnwindSafe for LetStmt
impl Send for LetStmt
impl Sync for LetStmt
impl Unpin for LetStmt
impl UnsafeUnpin for LetStmt
impl UnwindSafe for LetStmt
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