Re-exports§
pub use super::RluaCompat;
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::loadand 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
UserDatametatable. - LuaUser
Data Ref - A wrapper type for an immutably borrowed value from a
AnyUserData. - LuaUser
Data RefMut - A wrapper type for a mutably borrowed value from a
AnyUserData. - LuaUser
Data Registry - Handle to registry for userdata methods and metamethods.
Enums§
- LuaError
- Error type returned by
mluamethods. - 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. The
String,Table,Function,Thread, andUserDatavariants contain handle types into the internal Lua state. It is a logic error to mix handle types between separateLuainstances, 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.
- IntoLua
- Trait for types convertible to
Value. - Into
LuaMulti - Trait for types convertible to any number of Lua values.
- LuaAny
User Data Ext - An extension trait for
AnyUserDatathat provides a variety of convenient functionality. - LuaError
Context - Provides the
contextmethod forErrorandResult<T, Error>. - LuaExternal
Error - Trait for converting
std::error::Errorinto LuaError. - LuaExternal
Result - Trait for converting
std::result::Resultinto LuaResult. - LuaTable
Ext - An extension trait for
Tables that provides a variety of convenient functionality. - LuaUser
Data - Trait for custom userdata types.
- LuaUser
Data Fields - Field registry for
UserDataimplementors. - LuaUser
Data Methods - Method registry for
UserDataimplementors. - 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
Resulttype used bymlua’s API.