pub trait LuaNativeFn<A: FromLuaMulti> {
type Output;
// Required method
fn call(&self, args: A) -> Self::Output;
}Expand description
A function/closure callable with a tuple of FromLuaMulti arguments,
abstracting over arity. Mirrors mlua::LuaNativeFn. Lets
Function::wrap accept ||, |a|, |a, b|, … closures uniformly (the
closure receives the converted args directly, not the Lua).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".