pub struct TKey { /* private fields */ }Expand description
Non-owning view of a live table-key record.
Unsafe operations require the owning table storage to remain live and the key’s tag/payload and collision-chain encoding to remain valid.
Implementations§
Source§impl TKey
impl TKey
pub const unsafe fn from_raw(raw: NonNull<RawTKey>) -> Self
pub fn set_nil(&self)
pub fn tt(&self) -> i32
pub fn next(&self) -> i32
pub fn is_nil(&self) -> bool
pub fn is_dead_key(&self) -> bool
Sourcepub fn is_collectable(&self) -> bool
pub fn is_collectable(&self) -> bool
iscollectable
Sourcepub fn pointer_value(&self) -> *mut ()
pub fn pointer_value(&self) -> *mut ()
pvalue
Sourcepub fn number_value(&self) -> f64
pub fn number_value(&self) -> f64
nvalue
Sourcepub fn integer_value(&self) -> i64
pub fn integer_value(&self) -> i64
lvalue
Sourcepub fn boolean_value(&self) -> i32
pub fn boolean_value(&self) -> i32
bvalue
Sourcepub fn light_userdata_tag(&self) -> i32
pub fn light_userdata_tag(&self) -> i32
lightuserdatatag
Sourcepub fn vector_value(&self) -> [f32; 3]
pub fn vector_value(&self) -> [f32; 3]
vvalue
Sourcepub fn raw_equal_value(&self, other: impl Into<TValue>) -> bool
pub fn raw_equal_value(&self, other: impl Into<TValue>) -> bool
luaO_rawequalKey
Trait Implementations§
impl Copy for TKey
impl Eq for TKey
impl StructuralPartialEq for TKey
Auto Trait Implementations§
impl !Send for TKey
impl !Sync for TKey
impl Freeze for TKey
impl RefUnwindSafe for TKey
impl Unpin for TKey
impl UnsafeUnpin for TKey
impl UnwindSafe for TKey
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