Skip to main content

IntoLuaArgs

Trait IntoLuaArgs 

Source
pub trait IntoLuaArgs {
    // Required method
    fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>;
}
Expand description

Convert a tuple of typed values into the &[Value] shape Vm::call_value expects. Implemented for () + tuples of IntoValue up to arity 6.

Required Methods§

Source

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Encode self (a tuple of IntoValue implementors) as a flat argument list ready for LuaFunction::call.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoLuaArgs for ()

Source§

fn into_lua_args(self, _vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue> IntoLuaArgs for (T0, T1, T2, T3, T4, T5)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue> IntoLuaArgs for (T0, T1, T2, T3, T4)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue> IntoLuaArgs for (T0, T1, T2, T3)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue, T1: IntoValue, T2: IntoValue> IntoLuaArgs for (T0, T1, T2)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue, T1: IntoValue> IntoLuaArgs for (T0, T1)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Source§

impl<T0: IntoValue> IntoLuaArgs for (T0,)

Source§

fn into_lua_args(self, vm: &mut Vm) -> Vec<Value>

Implementors§