Struct luaext::types::table::LuaTable [] [src]

pub struct LuaTable { /* fields omitted */ }

Represents a Lua table on the Lua stack.

Methods

impl LuaTable
[src]

Create a new LuaTable at the given index.

Set this table's metatable.

Equivalent to the Lua setmetatable function

Set a value in this table May call the __newindex metamethod

Equivalent to table[key] = value in Lua

Set a value in this table without invoking metamethods

Equivalent to the Lua rawset function

Get a value from this table May call the __index metamethod

Equivalent to table[key] in Lua

Get a value from this table without invoking metamethods

Equivalent to the Lua rawget function

Get a value from this table as type T

Count the number of elements in this table as an array May call the __len metamethod

Equivalent to the Lua # operator

Panics

This method will panic if this table has a __len metamethod that does not return an integer

Count the number of elements in this table as an array without calling the __len metamethod

Equivalent to the Lua rawlen function

Iterate through every (i, value) pair where i is an integer and is continuous from 1 to this table's length.

Similar to the Lua ipairs function

Add an element to the end of the table

Equivalent to the Lua table.insert function

Trait Implementations

impl LuaStackable for LuaTable
[src]

Get the position of this value on the stack

impl ToLua for LuaTable
[src]

Pushes a value of type Self onto the stack of a Lua state.

impl FromLua for LuaTable
[src]

Converts the value on top of the stack of a Lua state to a value of type Option<Self>. Read more