pub struct LuaNode { /* private fields */ }Expand description
Non-owning view of a live table hash node.
Unsafe operations require the owning table’s node array to remain live and the node’s key/value records to remain valid.
Implementations§
Source§impl LuaNode
impl LuaNode
pub const unsafe fn from_raw(raw: NonNull<RawLuaNode>) -> Self
pub fn value(&self) -> TValue
pub fn value_unchecked(&self) -> TValue
pub fn key(&self) -> TKey
pub fn has_string_key(&self, key: TString) -> bool
pub fn value_is_nil(&self) -> bool
Sourcepub fn set_key_from_value(&self, value: impl Into<TValue>)
pub fn set_key_from_value(&self, value: impl Into<TValue>)
setnodekey
Sourcepub fn write_key_to_value(&self, value: impl Into<TValue>)
pub fn write_key_to_value(&self, value: impl Into<TValue>)
getnodekey
Trait Implementations§
impl Copy for LuaNode
impl Eq for LuaNode
impl StructuralPartialEq for LuaNode
Auto Trait Implementations§
impl !Send for LuaNode
impl !Sync for LuaNode
impl Freeze for LuaNode
impl RefUnwindSafe for LuaNode
impl Unpin for LuaNode
impl UnsafeUnpin for LuaNode
impl UnwindSafe for LuaNode
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