Skip to main content

Module lua_vm

Module lua_vm 

Source

Re-exports§

pub use crate::lua_vm::call_info::CallInfo;
pub use opcode::Instruction;
pub use opcode::OpCode;

Modules§

async_thread
Async support for lua-rs: bridge Lua coroutines to Rust Futures.
call_info
opcode

Structs§

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

Enums§

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)

Constants§

LUA_NOREF
LUA_REFNIL
Special reference constants (matching Lua’s C API)

Functions§

get_metamethod_event
get_metatable
Get metatable for any value type

Type Aliases§

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.