Skip to main content

function2

Function function2 

Source
pub fn function2<F, A0, A1, R>(f: F) -> Function2<F, A0, A1, R>
where F: Fn(A0, A1) -> R + 'static, A0: LuaReadArg + 'static, A1: LuaReadArg + 'static, R: PushToLua + 'static,
Expand description

Wrap a Rust closure so it can be stored as a Lua global via Lua::set.