pub struct VarDesc {
pub kind: VarKind,
pub ridx: u8,
pub pidx: i16,
pub name: Option<GcRef<LuaString>>,
pub const_val: LuaValue,
}Expand description
A compile-time variable descriptor. const_val is only meaningful when
kind == VarKind::CompileTimeConst; for every other kind it is unused. Kept
as a flat struct for the same reason as ExprPayload (see that type’s
note and the Sprint-1 honest-negative).
Fields§
§kind: VarKind§ridx: u8§pidx: i16§name: Option<GcRef<LuaString>>§const_val: LuaValueTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VarDesc
impl !Send for VarDesc
impl !Sync for VarDesc
impl !UnwindSafe for VarDesc
impl Forget for VarDesc
impl Freeze for VarDesc
impl Move for VarDesc
impl Unpin for VarDesc
impl UnsafeUnpin 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