Expand description
Re-exports most types with an extra Lua*
prefix to prevent name clashes.
Structs§
- Lua
- Top level Lua struct which holds the Lua state itself.
- LuaAny
User Data - Handle to an internal Lua userdata for any type that implements
UserData
. - LuaChunk
- Returned from
Context::load
and is used to finalize loading and executing Lua main chunks. - LuaContext
- LuaDebug
- Contains information about currently executing Lua code.
- LuaDebug
Names - LuaDebug
Source - LuaDebug
Stack - LuaFunction
- Handle to an internal Lua function.
- LuaHook
Triggers - Determines when a hook function will be called by Lua.
- LuaLight
User Data - A “light” userdata value. Equivalent to an unmanaged raw pointer.
- LuaMulti
Value - Multiple Lua values used for both argument passing and also for multiple return values.
- LuaRegistry
Key - An auto generated key into the Lua registry.
- LuaScope
- Constructed by the
Context::scope
method, allows temporarily creating Lua userdata and callbacks that are not required to be Send or ’static. - LuaString
- Handle to an internal Lua string.
- LuaTable
- Handle to an internal Lua table.
- LuaTable
Pairs - An iterator over the pairs of a Lua table.
- LuaTable
Sequence - An iterator over the sequence part of a Lua table.
- LuaThread
- Handle to an internal Lua thread (or coroutine).
Enums§
- LuaError
- Error type returned by
rlua
methods. - LuaMeta
Method - Kinds of metamethods that can be overridden.
- LuaThread
Status - Status of a Lua thread (or coroutine).
- LuaValue
- A dynamically typed Lua value. The
String
,Table
,Function
,Thread
, andUserData
variants contain handle types into the internal Lua state. It is a logic error to mix handle types between separateLua
instances, or between a parentLua
instance and one received as a parameter in a Rust callback, and doing so will result in a panic.
Traits§
- FromLua
- Trait for types convertible from
Value
. - From
LuaMulti - Trait for types that can be created from an arbitrary number of Lua values.
- LuaExternal
Error - LuaExternal
Result - LuaUser
Data - Trait for custom userdata types.
- LuaUser
Data Methods - Method registry for
UserData
implementors. - ToLua
- Trait for types convertible to
Value
. - ToLua
Multi - Trait for types convertible to any number of Lua values.
Type Aliases§
- LuaInteger
- Type of Lua integer numbers.
- LuaNumber
- Type of Lua floating point numbers.
- LuaResult
- A specialized
Result
type used byrlua
’s API.