pub struct LocalVar {
pub name: Name,
pub binder_info: BinderInfo,
pub ty: Expr,
pub val: Option<Expr>,
pub fvar: FVarId,
pub index: usize,
}Expand description
Local variable declaration in context.
Fields§
§name: NameVariable name
binder_info: BinderInfoBinder info (default, implicit, etc.)
ty: ExprVariable type
val: Option<Expr>Optional value (for let-bindings)
fvar: FVarIdFree variable ID
index: usizeDe Bruijn index (position in context, 0 = innermost)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalVar
impl RefUnwindSafe for LocalVar
impl Send for LocalVar
impl Sync for LocalVar
impl Unpin for LocalVar
impl UnsafeUnpin for LocalVar
impl UnwindSafe for LocalVar
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