Skip to main content

function0

Function function0 

Source
pub fn function0<F, R>(f: F) -> Function0<F, R>
where F: Fn() -> R + 'static, R: PushToLua + 'static,
Expand description

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