[−][src]Struct mlua::prelude::LuaMultiValue
Multiple Lua values used for both argument passing and also for multiple return values.
Methods
impl<'lua> MultiValue<'lua>
[src]
pub fn new() -> MultiValue<'lua>
[src]
Creates an empty MultiValue
containing no values.
impl<'lua> MultiValue<'lua>
[src]
pub fn from_vec(v: Vec<Value<'lua>>) -> MultiValue<'lua>
[src]
pub fn into_vec(self) -> Vec<Value<'lua>>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn iter(&self) -> Rev<Iter<Value<'lua>>>
[src]
Trait Implementations
impl<'lua> Clone for MultiValue<'lua>
[src]
fn clone(&self) -> MultiValue<'lua>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'lua> Debug for MultiValue<'lua>
[src]
impl<'lua> Default for MultiValue<'lua>
[src]
fn default() -> MultiValue<'lua>
[src]
impl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>
[src]
fn from_iter<I: IntoIterator<Item = Value<'lua>>>(iter: I) -> Self
[src]
impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
[src]
fn from_lua_multi(values: MultiValue<'lua>, _: &'lua Lua) -> Result<Self>
[src]
impl<'lua> IntoIterator for MultiValue<'lua>
[src]
type Item = Value<'lua>
The type of the elements being iterated over.
type IntoIter = Rev<IntoIter<Value<'lua>>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, 'lua> IntoIterator for &'a MultiValue<'lua>
[src]
type Item = &'a Value<'lua>
The type of the elements being iterated over.
type IntoIter = Rev<Iter<'a, Value<'lua>>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'lua> ToLuaMulti<'lua> for MultiValue<'lua>
[src]
fn to_lua_multi(self, _: &'lua Lua) -> Result<MultiValue<'lua>>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,