Struct rlua::LuaTable
[−]
[src]
pub struct LuaTable<'lua>(_);
Handle to an an internal lua table
Methods
impl<'lua> LuaTable<'lua>
[src]
fn set<K: ToLua<'lua>, V: ToLua<'lua>>(&self, key: K, value: V) -> LuaResult<()>
fn get<K: ToLua<'lua>, V: FromLua<'lua>>(&self, key: K) -> LuaResult<V>
fn length(&self) -> LuaResult<LuaInteger>
Equivalent to the result of the lua '#' operator.
fn pairs<K: FromLua<'lua>, V: FromLua<'lua>>(&self) -> LuaResult<Vec<(K, V)>>
fn array_values<V: FromLua<'lua>>(&self) -> LuaResult<Vec<V>>
Strictly interpret the table as an array, and fail if it is not a proper lua array.
Trait Implementations
impl<'lua> Clone for LuaTable<'lua>
[src]
fn clone(&self) -> LuaTable<'lua>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more