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

pub struct LuaMultiValue<'lua>(_);
Expand description

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>>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[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]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn default() -> MultiValue<'lua>[src]

Returns the “default value” for a type. Read more

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

fn from_iter<I: IntoIterator<Item = Value<'lua>>>(iter: I) -> Self[src]

Creates a value from an iterator. Read more

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

fn from_lua_multi(values: MultiValue<'lua>, _: &'lua Lua) -> Result<Self>[src]

Performs the conversion. Read more

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]

Creates an iterator from a value. Read more

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]

Creates an iterator from a value. Read more

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

fn to_lua_multi(self, _: &'lua Lua) -> Result<MultiValue<'lua>>[src]

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

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.