pub fn to_cfunction( state: &LuaState, idx: i32, ) -> Option<fn(&mut LuaState) -> Result<usize, LuaError>>