pub trait LuaNativeFn<A>where
A: FromLuaMulti,{
type Output: IntoLuaMulti;
// Required method
fn call(&self, args: A) -> Self::Output;
}Available on crate feature
mlua only.Expand description
A trait for types that can be used as Lua functions.
Required Associated Types§
type Output: IntoLuaMulti
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".