Struct rlua::LuaTable [] [src]

pub struct LuaTable<'lua>(_);

Handle to an internal Lua table.

Methods

impl<'lua> LuaTable<'lua>
[src]

Sets a key-value pair in the table.

If the value is nil, this will effectively remove the pair.

This might invoke the __newindex metamethod. Use the raw_set method if that is not desired.

Gets the value associated to key from the table.

If no value is associated to key, returns the nil value.

This might invoke the __index metamethod. Use the raw_get method if that is not desired.

Checks whether the table contains a non-nil value for key.

Sets a key-value pair without invoking metamethods.

Gets the value associated to key without invoking metamethods.

Returns the result of the Lua # operator.

This might invoke the __len metamethod. Use the raw_len method if that is not desired.

Returns the result of the Lua # operator, without invoking the __len metamethod.

Consume this table and return an iterator over the pairs of the table, works like the Lua 'pairs' function.

Consume this table and return an iterator over the values of this table, which should be a sequence. Works like the Lua 'ipairs' function, but doesn't return the indexes, only the values in order.

Trait Implementations

impl<'lua> Clone for LuaTable<'lua>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'lua> Debug for LuaTable<'lua>
[src]

Formats the value using the given formatter.

impl<'lua> ToLua<'lua> for LuaTable<'lua>
[src]

Performs the conversion.

impl<'lua> FromLua<'lua> for LuaTable<'lua>
[src]

Performs the conversion.