Struct td_rlua::Lua [] [src]

pub struct Lua { /* fields omitted */ }

Methods

impl Lua
[src]

[src]

Builds a new Lua context.

Panic

The function panics if the underlying call to luaL_newstate fails (which indicates lack of memory).

[src]

[src]

[src]

[src]

Takes an existing lua_State and build a Lua object from it.

Arguments

  • close_at_the_end: if true, lua_close will be called on the lua_State on the destructor

[src]

[src]

Opens all standard Lua libraries. This is done by calling luaL_openlibs.

[src]

Reads the value of a global variable.

[src]

Modifies the value of a global variable.

[src]

[src]

[src]

Inserts an empty table, then loads it.

[src]

[src]

[src]

enable hotfix, can update the new func, and the old data will be keep and bind to the new func

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Drop for Lua
[src]

[src]

Executes the destructor for this type. Read more