pub struct VarDesc {
pub kind: VarKind,
pub ridx: u8,
pub pidx: i16,
pub name: Option<GcRef<LuaString>>,
pub const_val: LuaValue,
}Expand description
C: Vardesc — describes an active local variable during compilation.
PORT NOTE: C uses a union (vd fields + k for const value). Rust keeps all
fields in a struct. The const_val field is only meaningful when
kind == VarKind::CompileTimeConst.
Fields§
§kind: VarKindC: vd.kind
ridx: u8C: vd.ridx — register holding the variable
pidx: i16C: vd.pidx — index in Proto.locvars
name: Option<GcRef<LuaString>>C: vd.name — variable name
const_val: LuaValueC: k — compile-time constant value (only valid for CompileTimeConst)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VarDesc
impl !RefUnwindSafe for VarDesc
impl !Send for VarDesc
impl !Sync for VarDesc
impl Unpin for VarDesc
impl UnsafeUnpin for VarDesc
impl !UnwindSafe for VarDesc
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