pub struct TableFlags(pub u8);Expand description
Bitfield for a LuaTable: lower bits record absent fast-access
metamethods; bit 7 encodes whether alimit is the real array size.
Tuple Fields§
§0: u8Implementations§
Source§impl TableFlags
impl TableFlags
Sourcepub fn is_real_asize(self) -> bool
pub fn is_real_asize(self) -> bool
isrealasize(t) — bit 7 clear means alimit IS the real array size.
Sourcepub fn set_real_asize(&mut self)
pub fn set_real_asize(&mut self)
setrealasize(t) — clear bit 7 so alimit becomes the canonical size.
Sourcepub fn set_no_real_asize(&mut self)
pub fn set_no_real_asize(&mut self)
setnorealasize(t) — set bit 7 so alimit is only a hint.
Sourcepub fn invalidate_tm_cache(&mut self)
pub fn invalidate_tm_cache(&mut self)
invalidateTMcache(t) — clear all fast-access metamethod bits.
Trait Implementations§
Source§impl Clone for TableFlags
impl Clone for TableFlags
Source§fn clone(&self) -> TableFlags
fn clone(&self) -> TableFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableFlags
impl Debug for TableFlags
Source§impl Default for TableFlags
impl Default for TableFlags
Source§fn default() -> TableFlags
fn default() -> TableFlags
Returns the “default value” for a type. Read more
impl Copy for TableFlags
Auto Trait Implementations§
impl Freeze for TableFlags
impl RefUnwindSafe for TableFlags
impl Send for TableFlags
impl Sync for TableFlags
impl Unpin for TableFlags
impl UnsafeUnpin for TableFlags
impl UnwindSafe for TableFlags
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