pub struct VarDesc {
pub kind: VarKind,
pub ridx: u8,
pub pidx: i16,
pub name: Option<GcRef<LuaString>>,
pub const_val: LuaValue,
}Expand description
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: VarKind§ridx: u8§pidx: i16§name: Option<GcRef<LuaString>>§const_val: LuaValueTrait 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