Enum hlua::AnyLuaValue [] [src]

pub enum AnyLuaValue {
    LuaString(String),
    LuaAnyString(AnyLuaString),
    LuaNumber(f64),
    LuaBoolean(bool),
    LuaArray(Vec<(AnyLuaValue, AnyLuaValue)>),
    LuaNil,
    LuaOther,
}

Represents any value that can be stored by Lua

Variants

The "Other" element is (hopefully) temporary and will be replaced by "Function" and "Userdata". A panic! will trigger if you try to push a Other.

Trait Implementations

impl Clone for AnyLuaValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AnyLuaValue
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for AnyLuaValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'lua, L> Push<L> for AnyLuaValue where
    L: AsMutLua<'lua>, 
[src]

Error that can happen when pushing a value.

[src]

Pushes the value on the top of the stack. Read more

[src]

Same as push_to_lua but can only succeed and is only available if Err is Void.

impl<'lua, L> PushOne<L> for AnyLuaValue where
    L: AsMutLua<'lua>, 
[src]

impl<'lua, L> LuaRead<L> for AnyLuaValue where
    L: AsLua<'lua>, 
[src]

[src]

Reads the data from Lua at a given position.

[src]

Reads the data from Lua.