pub struct LocalDecl {
pub fvar: FVarId,
pub name: Name,
pub ty: Expr,
pub val: Option<Expr>,
}Expand description
Local declaration (free variable with type).
Fields§
§fvar: FVarIdFree variable ID
name: NameName (for pretty-printing)
ty: ExprType of this variable
val: Option<Expr>Optional value (for let-bound variables)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalDecl
impl RefUnwindSafe for LocalDecl
impl Send for LocalDecl
impl Sync for LocalDecl
impl Unpin for LocalDecl
impl UnsafeUnpin for LocalDecl
impl UnwindSafe for LocalDecl
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