Skip to main content

FromLuaMulti

Trait FromLuaMulti 

Source
pub trait FromLuaMulti: Sized {
    const NRESULTS: i32;

    // Required method
    fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>;
}

Required Associated Constants§

Required Methods§

Source

fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromLuaMulti for ()

Source§

const NRESULTS: i32 = 0

Source§

fn from_lua_multi(_values: Vec<Value>, _lua: &Lua) -> Result<Self>

Source§

impl<A, B> FromLuaMulti for (A, B)
where A: FromLua, B: FromLua,

Source§

const NRESULTS: i32 = 2

Source§

fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>

Source§

impl<A, B, C> FromLuaMulti for (A, B, C)
where A: FromLua, B: FromLua, C: FromLua,

Source§

const NRESULTS: i32 = 3

Source§

fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>

Source§

impl<A, B, T> FromLuaMulti for (A, B, Variadic<T>)
where A: FromLua, B: FromLua, T: FromLua,

Source§

const NRESULTS: i32 = -1

Source§

fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>

Source§

impl<A, T> FromLuaMulti for (A, Variadic<T>)
where A: FromLua, T: FromLua,

Source§

const NRESULTS: i32 = -1

Source§

fn from_lua_multi(values: Vec<Value>, lua: &Lua) -> Result<Self>

Implementors§

Source§

impl<T> FromLuaMulti for Variadic<T>
where T: FromLua,

Source§

const NRESULTS: i32 = -1

Source§

impl<T> FromLuaMulti for T
where T: FromLua,