pub struct LuaTableLib;Expand description
Lua table library.
Implementations§
Source§impl LuaTableLib
impl LuaTableLib
pub const fn new() -> Self
pub fn concat( &self, list: impl Into<LuaAny>, sep: Option<&'static str>, i: Option<i64>, j: Option<i64>, ) -> &'static str
pub fn insert(&self, list: impl Into<LuaAny>, value: impl Into<LuaAny>)
Sourcepub fn insert_at(
&self,
list: impl Into<LuaAny>,
pos: i64,
value: impl Into<LuaAny>,
)
pub fn insert_at( &self, list: impl Into<LuaAny>, pos: i64, value: impl Into<LuaAny>, )
table.insert(list, pos, value). Lowers as table.insert.
pub fn pack(&self, values: impl Into<LuaAny>) -> LuaAny
pub fn remove(&self, list: impl Into<LuaAny>, pos: Option<i64>) -> LuaAny
pub fn sort(&self, list: impl Into<LuaAny>, comp: Option<LuaFunction>)
pub fn unpack( &self, list: impl Into<LuaAny>, i: Option<i64>, j: Option<i64>, ) -> LuaAny
Trait Implementations§
Source§impl Clone for LuaTableLib
impl Clone for LuaTableLib
Source§fn clone(&self) -> LuaTableLib
fn clone(&self) -> LuaTableLib
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 moreimpl Copy for LuaTableLib
Source§impl Debug for LuaTableLib
impl Debug for LuaTableLib
Source§impl Default for LuaTableLib
impl Default for LuaTableLib
Source§fn default() -> LuaTableLib
fn default() -> LuaTableLib
Returns the “default value” for a type. Read more
impl Eq for LuaTableLib
Source§impl PartialEq for LuaTableLib
impl PartialEq for LuaTableLib
impl StructuralPartialEq for LuaTableLib
Auto Trait Implementations§
impl Freeze for LuaTableLib
impl RefUnwindSafe for LuaTableLib
impl Send for LuaTableLib
impl Sync for LuaTableLib
impl Unpin for LuaTableLib
impl UnsafeUnpin for LuaTableLib
impl UnwindSafe for LuaTableLib
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