Module nvim_utils::prelude
source · Expand description
Includes mlua::prelude, vim, vim::ext::log and mlua::serde if the corresponding features are enabled
Re-exports
Structs
- Deserializer
serdeA struct for deserializing Lua values into Rust values. - Top level Lua struct which represents an instance of Lua VM.
- Handle to an internal Lua userdata for any type that implements
UserData. - Returned from
Lua::loadand is used to finalize loading and executing Lua main chunks. - A struct with options to change default deserializer behavior.
- Handle to an internal Lua function.
- Determines when a hook function will be called by Lua.
- A “light” userdata value. Equivalent to an unmanaged raw pointer.
- Multiple Lua values used for both argument passing and also for multiple return values.
- Controls Lua interpreter behavior such as Rust panics handling.
- An auto generated key into the Lua registry.
- A struct with options to change default serializer behavior.
- Flags describing the set of lua standard libraries to load.
- Handle to an internal Lua string.
- Handle to an internal Lua table.
- An iterator over the pairs of a Lua table.
- An iterator over the sequence part of a Lua table.
- Handle to an internal Lua thread (or coroutine).
- Handle to a
UserDatametatable. - Serializer
serdeA struct for serializing Rust values into Lua values.
Enums
- Error type returned by
mluamethods. - Mode of the Lua garbage collector (GC).
- Kinds of metamethods that can be overridden.
- Status of a Lua thread (or coroutine).
- 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
- Trait for types convertible from
Value. - Trait for types that can be created from an arbitrary number of Lua values.
- LuaSerdeExt
serdeTrait for serializing/deserializing Lua values using Serde. - An extension trait for
Tables that provides a variety of convenient functionality. - Trait for custom userdata types.
- Field registry for
UserDataimplementors. - Method registry for
UserDataimplementors. - Trait for types convertible to
Value. - Trait for types convertible to any number of Lua values.
Type Definitions
- Type of Lua integer numbers.
- Type of Lua floating point numbers.
- A specialized
Resulttype used bymlua’s API.