Expand description
LuaClosure — the function variant of LuaValue. Three sub-kinds:
Lua closure (compiled Proto + upvalues), C closure (function pointer +
upvalues), light C function (function pointer, no upvalues).
Structs§
Enums§
Type Aliases§
- LuaC
FnPtr - Opaque registry index into
GlobalState.c_functions, where the reallua_CFunction(fn(&mut LuaState) -> Result<usize, LuaError>) is stored. Lua-types can’t referenceLuaStatewithout a circular dep, so we keep the closure variant type-erased here and resolve through the registry at call time.