Enum hlua::AnyHashableLuaValue [] [src]

pub enum AnyHashableLuaValue {
    LuaString(String),
    LuaAnyString(AnyLuaString),
    LuaNumber(i32),
    LuaBoolean(bool),
    LuaArray(Vec<(AnyHashableLuaValue, AnyHashableLuaValue)>),
    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 AnyHashableLuaValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AnyHashableLuaValue
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for AnyHashableLuaValue
[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 Eq for AnyHashableLuaValue
[src]

impl Hash for AnyHashableLuaValue
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for AnyHashableLuaValue
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for AnyHashableLuaValue
[src]

[src]

This method returns an Ordering between self and other. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl<'lua, L> Push<L> for AnyHashableLuaValue 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 AnyHashableLuaValue where
    L: AsMutLua<'lua>, 
[src]

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

[src]

Reads the data from Lua at a given position.

[src]

Reads the data from Lua.