pub trait LuaNativeFn<A: FromLuaMulti> {
type Output: IntoLuaMulti;
// Required method
fn call(&self, args: A) -> Self::Output;
}
Expand description
A trait for types that can be used as Lua functions.
pub trait LuaNativeFn<A: FromLuaMulti> {
type Output: IntoLuaMulti;
// Required method
fn call(&self, args: A) -> Self::Output;
}
A trait for types that can be used as Lua functions.