Expand description
Embedding helper for lua-rs.
This crate sits above lua-vm, lua-stdlib, and lua-parse, so it can
provide the common setup sequence without creating dependency cycles:
create a state, install the parser hook, install host hooks, open stdlib,
and run chunks.
Structs§
- AnyUser
Data - Chunk
- DynLib
Id - Opaque handle to a dynamically loaded library, allocated by a
DynLibLoadHookbackend and stored inpackage._CLIBS. - Function
- Host
Hooks - Host capabilities exposed to Lua stdlib.
- Lua
- Primary owned embedding handle.
- LuaRuntime
- A Lua state with parser and standard libraries installed.
- LuaString
- OsExecute
Result - Result returned by
OsExecuteHook, carrying the three values that C-Lua’sluaL_execresultpushes:(boolean|nil, "exit"|"signal", int). - Table
- Thread
- Variadic
- Variable argument or return list converted element-by-element.
Enums§
- Dynamic
Symbol - Resolved dynamic-library symbol.
- LuaError
- The Lua error type. Carries a
LuaValuepayload because Lua errors can be any value (typically a string). - Meta
Method - OsExecute
Reason - Reason a shell command terminated, returned by
OsExecuteHook. - Value
- Dynamically typed owned Lua value.
Traits§
- FromLua
- From
LuaMulti - IntoLua
- Into
LuaMulti - LuaFile
Handle - Capabilities required by the io library from an OS file handle.
- User
Data - User
Data Methods