Re-exports§
pub use crate::lua_vm::call_info::CallInfo;pub use crate::lua_vm::debug_info::DebugInfo;pub use crate::lua_vm::lua_error::LuaError;pub use opcode::Instruction;pub use opcode::OpCode;
Modules§
- async_
thread - Async support for lua-rs: bridge Lua coroutines to Rust Futures.
- call_
info - debug_
info - lua_
error - lua_
limits - Centralized Lua VM limits and configuration constants.
- opcode
- table_
builder - Fluent builder for constructing Lua tables from Rust.
Structs§
- LuaAny
Ref - A generic user-facing reference to any Lua value.
- LuaFunction
Ref - A user-facing reference to a Lua function (Lua closure, C function, or Rust closure).
- LuaRef
Value - 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
- LuaString
Ref - A user-facing reference to a Lua string.
- LuaTable
Ref - A user-facing reference to a Lua table.
- LuaVM
- Global VM state (equivalent to global_State in Lua C API) Manages global resources shared by all execution threads/coroutines
- Safe
Option
Enums§
- TmKind
- Tag Method types (TMS from ltm.h)
Constants§
- LUA_
HOOKCALL - LUA_
HOOKCOUNT - LUA_
HOOKLINE - LUA_
HOOKRET - LUA_
HOOKTAILCALL - LUA_
MASKCALL - LUA_
MASKCOUNT - LUA_
MASKLINE - LUA_
MASKRET - LUA_
NOREF - LUA_
REFNIL - Special reference constants (matching Lua’s C API)
Functions§
- get_
metamethod_ event - get_
metatable - Get metatable for any value type