pub struct LuaTable { /* private fields */ }Implementations§
Source§impl LuaTable
impl LuaTable
pub fn has_metatable(&self) -> bool
pub fn get_metatable(&self) -> Option<LuaValue>
pub fn len(&self) -> usize
pub fn hash_size(&self) -> usize
Sourcepub fn compute_mem_size(&self) -> usize
pub fn compute_mem_size(&self) -> usize
Current data memory footprint (array + hash allocations, not including GcTable header). Used by GC to track resize deltas.
pub fn is_array(&self) -> bool
pub fn raw_geti(&self, key: i64) -> Option<LuaValue>
pub fn raw_get(&self, key: &LuaValue) -> Option<LuaValue>
Sourcepub fn next(
&self,
input_key: &LuaValue,
) -> Result<Option<(LuaValue, LuaValue)>, ()>
pub fn next( &self, input_key: &LuaValue, ) -> Result<Option<(LuaValue, LuaValue)>, ()>
Returns Ok(Some((key, value))) for next entry, Ok(None) for end of table, or Err(()) for invalid key.
pub fn remove_array_at(&mut self, i: i64) -> LuaResult<LuaValue>
pub fn iter_all(&self) -> Vec<(LuaValue, LuaValue)>
pub fn iter_keys(&self) -> Vec<LuaValue>
Auto Trait Implementations§
impl Freeze for LuaTable
impl RefUnwindSafe for LuaTable
impl !Send for LuaTable
impl !Sync for LuaTable
impl Unpin for LuaTable
impl UnsafeUnpin for LuaTable
impl UnwindSafe for LuaTable
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