Expand description
Re-exports most types with an extra Lua*
prefix to prevent name clashes.
Structs§
- Lua
- Top level Lua struct which represents an instance of Lua VM.
- LuaAny
User Data - 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.
- LuaFunction
Info - Contains information about a 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.
- LuaOptions
- Controls Lua interpreter behavior such as Rust panics handling.
- LuaRegistry
Key - An auto generated key into the Lua registry.
- LuaStd
Lib - Flags describing the set of lua standard libraries to load.
- 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 (coroutine).
- LuaUser
Data Metatable - Handle to a
AnyUserData
metatable. - LuaUser
Data Ref - A wrapper type for a userdata value that provides read access.
- LuaUser
Data RefMut - A wrapper type for a userdata value that provides read and write access.
- LuaUser
Data Registry - Handle to registry for userdata methods and metamethods.
- LuaVariadic
- Wraps a variable number of
T
s. - WeakLua
- Weak reference to Lua instance.
Enums§
- LuaEither
- The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases. - LuaError
- Error type returned by
mlua
methods. - LuaGC
Mode - Mode of the Lua garbage collector (GC).
- LuaMeta
Method - Kinds of metamethods that can be overridden.
- LuaThread
Status - Status of a Lua thread (coroutine).
- LuaValue
- A dynamically typed Lua value.
- LuaVm
State - Type to set next Lua VM action after executing interrupt or hook function.
Traits§
- 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.
- LuaError
Context - Provides the
context
method forError
andResult<T, Error>
. - LuaExternal
Error - Trait for converting
std::error::Error
into LuaError
. - LuaExternal
Result - Trait for converting
std::result::Result
into LuaResult
. - LuaNative
Fn - A trait for types that can be used as Lua functions.
- LuaNative
FnMut - A trait for types with mutable state that can be used as Lua functions.
- LuaObject
Like - A trait for types that can be used as Lua objects (usually table and userdata).
- LuaUser
Data - Trait for custom userdata types.
- LuaUser
Data Fields - Field registry for
UserData
implementors. - LuaUser
Data Methods - Method registry for
UserData
implementors.
Type Aliases§
- LuaInteger
- Type of Lua integer numbers.
- LuaNumber
- Type of Lua floating point numbers.
- LuaResult
- A specialized
Result
type used bymlua
’s API.