pub trait FromLua<'a>: Sized {
const TYPE_NAME: &'static str = _;
// Required method
fn from_lua(lua: &'a State, val: ValRef<'a>) -> Result<Self>;
}Expand description
Trait for types that can be taken from the Lua stack.
pub trait FromLua<'a>: Sized {
const TYPE_NAME: &'static str = _;
// Required method
fn from_lua(lua: &'a State, val: ValRef<'a>) -> Result<Self>;
}Trait for types that can be taken from the Lua stack.