Expand description
Includes mlua::prelude, vim, vim::ext::log, and builder::ModuleBuilder if the corresponding features are enabled
Re-exports§
pub use crate::vim;vimpub use crate::vim::ext::log;vimpub use crate::builder::ModuleBuilder;builder
Structs§
- Deserializer
- A struct for deserializing Lua values into Rust values.
- 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. - LuaAsync
Thread - Thread (coroutine) representation as an async
FutureorStream. - LuaChunk
- Returned from
Lua::loadand is used to finalize loading and executing Lua main chunks. - LuaDeserialize
Options - A struct with options to change default deserializer behavior.
- LuaFunction
- Handle to an internal Lua function.
- LuaFunction
Info - 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.
- LuaSerialize
Options - A struct with options to change default serializer behavior.
- 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 (or coroutine).
- LuaUser
Data Metatable - Handle to a
UserDatametatable. - Serializer
- A struct for serializing Rust values into Lua values.
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 (or 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.
- LuaExternal
Error - LuaExternal
Result - LuaSerde
Ext - Trait for serializing/deserializing Lua values using Serde.
- 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. - ToLua
Multi - Trait for types convertible to any number of Lua values.
Type Aliases§
- LuaInteger
- Type of Lua integer numbers.
- LuaNumber
- Type of Lua floating point numbers.
- LuaResult
- A specialized
Resulttype used bymlua’s API.