Struct me3_framework::scripting::lua::prelude::LuaMultiValue
source · [−]pub struct LuaMultiValue<'lua>(_);
Expand description
Multiple Lua values used for both argument passing and also for multiple return values.
Implementations
sourceimpl<'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.
sourceimpl<'lua> MultiValue<'lua>
impl<'lua> MultiValue<'lua>
pub fn from_vec(v: Vec<Value<'lua>, Global>) -> MultiValue<'lua>
pub fn into_vec(self) -> Vec<Value<'lua>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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
sourceimpl<'lua> Clone for MultiValue<'lua>
impl<'lua> Clone for MultiValue<'lua>
sourcefn clone(&self) -> MultiValue<'lua>
fn clone(&self) -> MultiValue<'lua>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'lua> Debug for MultiValue<'lua>
impl<'lua> Debug for MultiValue<'lua>
sourceimpl<'lua> Default for MultiValue<'lua>
impl<'lua> Default for MultiValue<'lua>
sourcefn default() -> MultiValue<'lua>
fn default() -> MultiValue<'lua>
Returns the “default value” for a type. Read more
sourceimpl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>
impl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>
sourcefn from_iter<I>(iter: I) -> MultiValue<'lua>where
I: IntoIterator<Item = Value<'lua>>,
fn from_iter<I>(iter: I) -> MultiValue<'lua>where
I: IntoIterator<Item = Value<'lua>>,
Creates a value from an iterator. Read more
sourceimpl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
sourcefn from_lua_multi(
values: MultiValue<'lua>,
&'lua Lua
) -> Result<MultiValue<'lua>, Error>
fn from_lua_multi(
values: MultiValue<'lua>,
&'lua Lua
) -> Result<MultiValue<'lua>, Error>
Performs the conversion. Read more
sourceimpl<'lua> Index<usize> for MultiValue<'lua>
impl<'lua> Index<usize> for MultiValue<'lua>
sourceimpl<'a, 'lua> IntoIterator for &'a MultiValue<'lua>
impl<'a, 'lua> IntoIterator for &'a MultiValue<'lua>
sourceimpl<'lua> IntoIterator for MultiValue<'lua>
impl<'lua> IntoIterator for MultiValue<'lua>
sourceimpl<'lua> ToLuaMulti<'lua> for MultiValue<'lua>
impl<'lua> ToLuaMulti<'lua> for MultiValue<'lua>
sourcefn to_lua_multi(self, &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more