Module rlua Copy item path Source prelude Re-exports most types with an extra Lua*
prefix to prevent name clashes. AnyUserData Handle to an internal Lua userdata for any type that implements UserData
. Chunk Returned from Context::load
and is used to finalize loading and executing Lua main chunks. Context Debug Contains information about currently executing Lua code. DebugNames DebugSource DebugStack Function Handle to an internal Lua function. HookTriggers Determines when a hook function will be called by Lua. LightUserData A “light” userdata value. Equivalent to an unmanaged raw pointer. Lua Top level Lua struct which holds the Lua state itself. MultiValue Multiple Lua values used for both argument passing and also for multiple return values. RegistryKey An auto generated key into the Lua registry. Scope Constructed by the Context::scope
method, allows temporarily creating Lua userdata and
callbacks that are not required to be Send or ’static. StdLib Flags describing the set of lua modules to load. String Handle to an internal Lua string. Table Handle to an internal Lua table. TablePairs An iterator over the pairs of a Lua table. TableSequence An iterator over the sequence part of a Lua table. Thread Handle to an internal Lua thread (or coroutine). Variadic Wraps a variable number of T
s. Error Error type returned by rlua
methods. MetaMethod Kinds of metamethods that can be overridden. ThreadStatus Status of a Lua thread (or coroutine). Value A dynamically typed Lua value. The String
, Table
, Function
, Thread
, and UserData
variants contain handle types into the internal Lua state. It is a logic error to mix handle
types between separate Lua
instances, or between a parent Lua
instance and one received as a
parameter in a Rust callback, and doing so will result in a panic. ExternalError ExternalResult FromLua Trait for types convertible from Value
. FromLuaMulti Trait for types that can be created from an arbitrary number of Lua values. ToLua Trait for types convertible to Value
. ToLuaMulti Trait for types convertible to any number of Lua values. UserData Trait for custom userdata types. UserDataMethods Method registry for UserData
implementors. Integer Type of Lua integer numbers. Number Type of Lua floating point numbers. Result A specialized Result
type used by rlua
’s API.