Skip to main contentModule lua_vm
Source pub use crate::lua_vm::call_info::CallInfo;pub use opcode::Instruction;pub use opcode::OpCode;
- async_thread
- Async support for lua-rs: bridge Lua coroutines to Rust Futures.
- call_info
- opcode
- LuaRefValue
- A reference to a Lua value stored in the VM’s registry.
- LuaState
- Execution state for a Lua thread/coroutine
This is separate from LuaVM (global_State) to support multiple execution contexts
- LuaVM
- Global VM state (equivalent to global_State in Lua C API)
Manages global resources shared by all execution threads/coroutines
- SafeOption
- LuaError
- Lightweight error enum - only 1 byte!
Actual error data stored in VM to reduce Result size
- TmKind
- Tag Method types (TMS from ltm.h)
- LUA_NOREF
- LUA_REFNIL
- Special reference constants (matching Lua’s C API)
- get_metamethod_event
- get_metatable
- Get metatable for any value type
- CFunction
- C Function type - Rust function callable from Lua
Now takes LuaContext instead of LuaVM for better ergonomics
- LuaResult
- RefId
- A reference ID in the registry.
Similar to Lua’s luaL_ref return value.