Module mlua::prelude[][src]

Expand description

Re-exports most types with an extra Lua* prefix to prevent name clashes.

Re-exports

pub use crate::Nil as LuaNil;

Structs

Top level Lua struct which holds the Lua state itself.

Handle to an internal Lua userdata for any type that implements UserData.

Thread (coroutine) representation as an async Future or Stream.

Returned from Lua::load and is used to finalize loading and executing Lua main chunks.

Handle to an internal Lua function.

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.

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 UserData metatable.

Enums

Error type returned by mlua methods.

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, 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

Trait for types convertible from Value.

Trait for types that can be created from an arbitrary number of Lua values.

Trait 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 UserData implementors.

Method registry for UserData implementors.

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 Result type used by mlua’s API.