[−][src]Struct rlua::MultiValue
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> ToLuaMulti<'lua> for MultiValue<'lua>
[src]
fn to_lua_multi(self, _: Context<'lua>) -> Result<MultiValue<'lua>>
[src]
impl<'lua> FromLuaMulti<'lua> for MultiValue<'lua>
[src]
fn from_lua_multi(values: MultiValue<'lua>, _: Context<'lua>) -> Result<Self>
[src]
impl<'lua> Default for MultiValue<'lua>
[src]
fn default() -> MultiValue<'lua>
[src]
impl<'lua> Clone for MultiValue<'lua>
[src]
fn clone(&self) -> MultiValue<'lua>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. 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]
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> FromIterator<Value<'lua>> for MultiValue<'lua>
[src]
fn from_iter<I: IntoIterator<Item = Value<'lua>>>(iter: I) -> Self
[src]
impl<'lua> Debug for MultiValue<'lua>
[src]
Auto Trait Implementations
impl<'lua> !Send for MultiValue<'lua>
impl<'lua> !Sync for MultiValue<'lua>
Blanket Implementations
impl<T> From for T
[src]
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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,