Skip to main content Crate rlua Copy item path Source ffi Low level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Luau. prelude chunk AnyUser Data Handle to an internal Lua userdata for any type that implements UserData . AppData Ref A wrapper type for an immutably borrowed value from an app data container. AppData RefMut A wrapper type for a mutably borrowed value from an app data container. Chunk Returned from Lua::load and is used to finalize loading and executing Lua main chunks. Debug Contains information about currently executing Lua code. Debug Names Debug Source Debug Stack Function Handle to an internal Lua function. Function Info Contains information about a function. Hook Triggers Determines when a hook function will be called by Lua. Light User Data A “light” userdata value. Equivalent to an unmanaged raw pointer. Lua Top level Lua struct which represents an instance of Lua VM. LuaOptions Controls Lua interpreter behavior such as Rust panics handling. Multi Value Multiple Lua values used for both argument passing and also for multiple return values. Registry Key An auto generated key into the Lua registry. Scope Constructed by the Lua::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 standard libraries to load. String Handle to an internal Lua string. Table Handle to an internal Lua table. Table Pairs An iterator over the pairs of a Lua table. Table Sequence An iterator over the sequence part of a Lua table. Thread Handle to an internal Lua thread (coroutine). User Data Metatable Handle to a UserData metatable. User Data Ref A wrapper type for an immutably borrowed value from a AnyUserData. User Data RefMut A wrapper type for a mutably borrowed value from a AnyUserData. User Data Registry Handle to registry for userdata methods and metamethods. Variadic Wraps a variable number of Ts. lua_ State A raw Lua state associated with a thread. Chunk Mode Represents chunk mode (text or binary). Debug Event Represents a specific event that triggered the hook. Error Error type returned by mlua methods. GCMode Mode of the Lua garbage collector (GC). Meta Method Kinds of metamethods that can be overridden. Thread Status Status of a Lua thread (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, and doing so will result in a panic. AnyUser Data Ext An extension trait for AnyUserData that provides a variety of convenient functionality. AsChunk Trait for types loadable by Lua and convertible to a Chunk Error Context Provides the context method for Error and Result<T, Error>. External Error Trait for converting std::error::Error into Lua Error . External Result Trait for converting std::result::Result into Lua Result . FromLua Trait for types convertible from Value. From LuaMulti Trait for types that can be created from an arbitrary number of Lua values. IntoLua Trait for types convertible to Value. Into LuaMulti Trait for types convertible to any number of Lua values. Rlua Compat Table Ext An extension trait for Tables that provides a variety of convenient functionality. ToLua Trait for types convertible to Value. ToLua Compat User Data Trait for custom userdata types. User Data Fields Field registry for UserData implementors. User Data Methods Method registry for UserData implementors. Context Integer Type of Lua integer numbers. Number Type of Lua floating point numbers. Result A specialized Result type used by mlua’s API. lua_ CFunction Type for native C functions that can be passed to Lua FromLua