pub fn to_cfunction(
state: &LuaState,
idx: i32,
) -> Option<fn(&mut LuaState) -> Result<usize, LuaError>>Expand description
C’s lua_tocfunction: the underlying bare C function pointer for a light C
function or a C closure, or None for any other value. LightC/LuaCClosure
store a LuaCFnPtr index into the per-state c_functions table; resolve it
and hand back the registered fn.