Crate rlua [] [src]

Reexports

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

Modules

ffi

Structs

LightUserData
Lua

Top level Lua struct which holds the lua state itself.

LuaError

The Error type.

LuaExternalError
LuaFunction

Handle to an an internal lua function

LuaMultiValue

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

LuaString

Handle to an an internal lua string

LuaTable

Handle to an an internal lua table

LuaThread

Handle to an an internal lua 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

Methods added will be added to the __index table on the metatable for the userdata, so they can be called as userdata:method(args) as expected. If there are any regular methods, and an "Index" metamethod is given, it will be called as a fallback if the index doesn't match an existing regular method.

LuaVariadic

Enums

LuaErrorKind

The kind of an error.

LuaMetaMethod

These are the metamethods that can be overridden using this API

LuaThreadStatus
LuaValue

A rust-side handle to an internal Lua value.

Traits

FromLua

Trait for types convertible from LuaValue

FromLuaMulti
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 types that can be converted to LuaUserData

ToLua

Trait for types convertible to LuaValue

ToLuaMulti

Type Definitions

LuaInteger
LuaNumber
LuaResult

Convenient wrapper around std::Result.