pub fn lua_fn<F, A, R>(_f: F) -> LuaFunctionwhere
F: Fn(A) -> R,Expand description
Coerce a Rust fn item or closure to LuaFunction.
Prefer this for closures (lua_fn(|e| { ... })). Fn items also implement
From for LuaFunction directly for common arities.