Struct rlua::LuaVariadic
[−]
[src]
pub struct LuaVariadic<T>(pub Vec<T>);
Can be used to pass variadic values to or receive variadic values from lua, where the type of the values is all the same and the number of values is defined at runtime. This can be included in an hlist when unpacking, but must be the final entry, and will consume the rest of the parameters given.
Trait Implementations
impl<'lua, T: ToLua<'lua>> ToLuaMulti<'lua> for LuaVariadic<T>
[src]
fn to_lua_multi(self, lua: &'lua Lua) -> LuaResult<LuaMultiValue<'lua>>
impl<'lua, T: FromLua<'lua>> FromLuaMulti<'lua> for LuaVariadic<T>
[src]
fn from_lua_multi(
values: LuaMultiValue<'lua>,
lua: &'lua Lua
) -> LuaResult<Self>
values: LuaMultiValue<'lua>,
lua: &'lua Lua
) -> LuaResult<Self>