Crate rlua [] [src]

Reexports

pub use self::LuaValue::Nil as LuaNil;

Modules

ffi

Structs

LightUserData

A "light" userdata value. Equivalent to an unmanaged raw pointer.

Lua

Top level Lua struct which holds the Lua state itself.

LuaError

The Error type.

LuaExternalError
LuaFunction

Handle to an internal Lua function.

LuaMultiValue

Multiple Lua values used for both argument passing and also for multiple return values.

LuaString

Handle to an internal Lua string.

LuaTable

Handle to an internal Lua table.

LuaTablePairs

An iterator over the pairs of a Lua table.

LuaTableSequence

An iterator over the sequence part of a Lua table.

LuaThread

Handle to an internal Lua thread (or coroutine).

LuaUserData

Handle to an internal instance of custom userdata. All userdata in this API is based around RefCell, to best match the mutable semantics of the Lua language.

LuaUserDataMethods

Stores methods of a userdata object.

LuaVariadic

Can be used to pass variadic values to or receive variadic values from Lua, where the type of the values is all the same and the number of values is defined at runtime. This can be included in an hlist when unpacking, but must be the final entry, and will consume the rest of the parameters given.

Enums

LuaErrorKind

The kind of an error.

LuaMetaMethod

Kinds of metamethods that can be overridden.

LuaThreadStatus

Status of a Lua thread (or coroutine).

LuaValue

A dynamically typed Lua value.

Traits

FromLua

Trait for types convertible from LuaValue.

FromLuaMulti

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

LuaExternalResult

Helper trait to convert external error types to a LuaExternalError

LuaResultExt

Additional methods for Result, for easy interaction with this crate.

LuaUserDataType

Trait for custom userdata types.

ToLua

Trait for types convertible to LuaValue.

ToLuaMulti

Trait for types convertible to any number of Lua values.

Type Definitions

LuaInteger

Type of Lua integer numbers.

LuaNumber

Type of Lua floating point numbers.

LuaResult

Convenient wrapper around std::Result.