Struct mlua::MultiValue
source · pub struct MultiValue<'lua> { /* private fields */ }
Expand description
Multiple Lua values used for both argument passing and also for multiple return values.
Implementations§
source§impl<'lua> MultiValue<'lua>
impl<'lua> MultiValue<'lua>
sourcepub const fn new() -> MultiValue<'lua>
pub const fn new() -> MultiValue<'lua>
Creates an empty MultiValue
containing no values.
source§impl<'lua> MultiValue<'lua>
impl<'lua> MultiValue<'lua>
pub fn from_vec(vec: Vec<Value<'lua>>) -> MultiValue<'lua>
pub fn into_vec(self) -> Vec<Value<'lua>>
pub fn get(&self, index: usize) -> Option<&Value<'lua>>
pub fn pop_front(&mut self) -> Option<Value<'lua>>
pub fn push_front(&mut self, value: Value<'lua>)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Rev<Iter<'_, Value<'lua>>>
Trait Implementations§
source§impl<'lua> Clone for MultiValue<'lua>
impl<'lua> Clone for MultiValue<'lua>
source§fn clone(&self) -> MultiValue<'lua>
fn clone(&self) -> MultiValue<'lua>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'lua> Debug for MultiValue<'lua>
impl<'lua> Debug for MultiValue<'lua>
source§impl<'lua> Default for MultiValue<'lua>
impl<'lua> Default for MultiValue<'lua>
source§fn default() -> MultiValue<'lua>
fn default() -> MultiValue<'lua>
Returns the “default value” for a type. Read more
source§impl Drop for MultiValue<'_>
impl Drop for MultiValue<'_>
source§impl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>
impl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>
source§impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
source§fn from_lua_multi(values: MultiValue<'lua>, _: &'lua Lua) -> Result<Self>
fn from_lua_multi(values: MultiValue<'lua>, _: &'lua Lua) -> Result<Self>
Performs the conversion. Read more
source§impl<'lua> Index<usize> for MultiValue<'lua>
impl<'lua> Index<usize> for MultiValue<'lua>
source§impl<'a, 'lua> IntoIterator for &'a MultiValue<'lua>
impl<'a, 'lua> IntoIterator for &'a MultiValue<'lua>
source§impl<'lua> IntoIterator for MultiValue<'lua>
impl<'lua> IntoIterator for MultiValue<'lua>
source§impl<'lua> IntoLuaMulti<'lua> for MultiValue<'lua>
impl<'lua> IntoLuaMulti<'lua> for MultiValue<'lua>
source§fn into_lua_multi(self, _: &'lua Lua) -> Result<MultiValue<'lua>>
fn into_lua_multi(self, _: &'lua Lua) -> Result<MultiValue<'lua>>
Performs the conversion.
Auto Trait Implementations§
impl<'lua> Freeze for MultiValue<'lua>
impl<'lua> !RefUnwindSafe for MultiValue<'lua>
impl<'lua> !Send for MultiValue<'lua>
impl<'lua> !Sync for MultiValue<'lua>
impl<'lua> Unpin for MultiValue<'lua>
impl<'lua> !UnwindSafe for MultiValue<'lua>
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