Module prelude

Source

Re-exports§

pub use super::RluaCompat;

Structs§

Lua
Top level Lua struct which represents an instance of Lua VM.
LuaAnyUserData
Handle to an internal Lua userdata for any type that implements UserData.
LuaChunk
Returned from Lua::load and is used to finalize loading and executing Lua main chunks.
LuaFunction
Handle to an internal Lua function.
LuaFunctionInfo
Contains information about a function.
LuaHookTriggers
Determines when a hook function will be called by Lua.
LuaLightUserData
A “light” userdata value. Equivalent to an unmanaged raw pointer.
LuaMultiValue
Multiple Lua values used for both argument passing and also for multiple return values.
LuaOptions
Controls Lua interpreter behavior such as Rust panics handling.
LuaRegistryKey
An auto generated key into the Lua registry.
LuaStdLib
Flags describing the set of lua standard libraries to load.
LuaString
Handle to an internal Lua string.
LuaTable
Handle to an internal Lua table.
LuaTablePairs
An iterator over the pairs of a Lua table.
LuaTableSequence
An iterator over the sequence part of a Lua table.
LuaThread
Handle to an internal Lua thread (coroutine).
LuaUserDataMetatable
Handle to a UserData metatable.
LuaUserDataRef
A wrapper type for an immutably borrowed value from a AnyUserData.
LuaUserDataRefMut
A wrapper type for a mutably borrowed value from a AnyUserData.
LuaUserDataRegistry
Handle to registry for userdata methods and metamethods.

Enums§

LuaError
Error type returned by mlua methods.
LuaGCMode
Mode of the Lua garbage collector (GC).
LuaMetaMethod
Kinds of metamethods that can be overridden.
LuaThreadStatus
Status of a Lua thread (coroutine).
LuaValue
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.

Traits§

FromLua
Trait for types convertible from Value.
FromLuaMulti
Trait for types that can be created from an arbitrary number of Lua values.
IntoLua
Trait for types convertible to Value.
IntoLuaMulti
Trait for types convertible to any number of Lua values.
LuaAnyUserDataExt
An extension trait for AnyUserData that provides a variety of convenient functionality.
LuaErrorContext
Provides the context method for Error and Result<T, Error>.
LuaExternalError
Trait for converting std::error::Error into Lua Error.
LuaExternalResult
Trait for converting std::result::Result into Lua Result.
LuaTableExt
An extension trait for Tables that provides a variety of convenient functionality.
LuaUserData
Trait for custom userdata types.
LuaUserDataFields
Field registry for UserData implementors.
LuaUserDataMethods
Method registry for UserData implementors.
ToLua
Trait for types convertible to Value.

Type Aliases§

LuaInteger
Type of Lua integer numbers.
LuaNumber
Type of Lua floating point numbers.
LuaResult
A specialized Result type used by mlua’s API.

Derive Macros§

FromLua