[][src]Struct mlua::prelude::LuaMultiValue

pub struct LuaMultiValue<'lua>(_);

Multiple Lua values used for both argument passing and also for multiple return values.

Implementations

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]

impl<'lua> Debug for MultiValue<'lua>[src]

impl<'lua> Default for MultiValue<'lua>[src]

impl<'lua> FromIterator<Value<'lua>> for MultiValue<'lua>[src]

impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>[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?

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?

impl<'lua> ToLuaMulti<'lua> for MultiValue<'lua>[src]

Auto Trait Implementations

impl<'lua> !RefUnwindSafe for MultiValue<'lua>[src]

impl<'lua> !Send for MultiValue<'lua>[src]

impl<'lua> !Sync for MultiValue<'lua>[src]

impl<'lua> Unpin for MultiValue<'lua>[src]

impl<'lua> !UnwindSafe for MultiValue<'lua>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.