glua/lib

Bindings to the functions under _G

Values

pub fn assert_() -> glua.Value

Returns the assert function.

pub fn collect_garbage() -> glua.Value

Returns the collectgarbage function.

pub fn do_file() -> glua.Value

Returns the dofile function.

pub fn eprint() -> glua.Value

Returns the eprint function.

pub fn error() -> glua.Value

Returns the error function.

pub fn get_meta_table() -> glua.Value

Returns the getmetatable function.

pub fn ipairs() -> glua.Value

Returns the ipairs function.

pub fn load() -> glua.Value

Returns the load function.

pub fn load_file() -> glua.Value

Returns the loadfile function.

pub fn load_string() -> glua.Value

Returns the loadstring function.

As of Lua 5.2, loadstring is deprecated.

pub const lua_version: String
pub fn next() -> glua.Value

Returns the next function.

pub fn pairs() -> glua.Value

Returns the pairs function.

pub fn pcall() -> glua.Value

Returns the pcall function.

pub fn print() -> glua.Value

Returns the print function.

pub fn raw_equal() -> glua.Value

Returns the rawequal function.

pub fn raw_get() -> glua.Value

Returns the rawget function.

pub fn raw_len() -> glua.Value

Returns the rawlen function.

pub fn raw_set() -> glua.Value

Returns the rawset function.

pub fn require() -> glua.Value

Returns the require function.

pub fn select() -> glua.Value

Returns the select function.

pub fn set_meta_table() -> glua.Value

Returns the setmetatable function.

pub fn to_number() -> glua.Value

Returns the tonumber function.

pub fn to_string() -> glua.Value

Returns the tostring function.

pub fn type_() -> glua.Value

Returns the type function.

pub fn unpack() -> glua.Value

Returns the unpack function.

As of Lua 5.2, unpack was moved to table.unpack

Search Document