Crate hlua [] [src]

Macros

implement_lua_push
implement_lua_read

Structs

Function

Opaque type containing a Rust function or closure.

InsideCallback

Opaque type that represents the Lua context when inside a callback.

Lua

Main object of the library.

LuaCode

Wrapper around a &str. When pushed, the content will be parsed as Lua code and turned into a function.

LuaCodeFromReader

Wrapper around a Read object. When pushed, the content will be parsed as Lua code and turned into a function.

LuaContext

Opaque type that contains the raw Lua context.

LuaFunction

Handle to a function in the Lua context.

LuaTable

Represents a table stored in the Lua context.

LuaTableIterator

Iterator that enumerates the content of a Lua table.

PushGuard

RAII guard for a value pushed on the stack.

UserdataOnStack

Represents a user data located inside the Lua context.

Enums

AnyLuaValue

Represents any value that can be stored by Lua

LuaError

Error that can happen when executing Lua code.

Void

Type that cannot be instantiated.

Traits

AsLua

Trait for objects that have access to a Lua context. When using a context returned by a AsLua, you are not allowed to modify the stack.

AsMutLua

Trait for objects that have access to a Lua context. You are allowed to modify the stack, but it must be in the same state as it was when you started.

LuaRead

Types that can be obtained from a Lua context.

Push

Types that can be given to a Lua context, for example with lua.set() or as a return value of a function.

PushOne

Extension trait for Push. Guarantees that only one element will be pushed.

Functions

function0

Wraps a type that implements FnMut so that it can be used by hlua.

function1

Wraps a type that implements FnMut so that it can be used by hlua.

function10

Wraps a type that implements FnMut so that it can be used by hlua.

function2

Wraps a type that implements FnMut so that it can be used by hlua.

function3

Wraps a type that implements FnMut so that it can be used by hlua.

function4

Wraps a type that implements FnMut so that it can be used by hlua.

function5

Wraps a type that implements FnMut so that it can be used by hlua.

function6

Wraps a type that implements FnMut so that it can be used by hlua.

function7

Wraps a type that implements FnMut so that it can be used by hlua.

function8

Wraps a type that implements FnMut so that it can be used by hlua.

function9

Wraps a type that implements FnMut so that it can be used by hlua.

push_userdata

Pushes an object as a user data.

read_userdata