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

Represents any value that can be stored by Lua

Variants

LuaString(String)

LuaAnyString(AnyLuaString)

LuaNumber(f64)

LuaBoolean(bool)

LuaArray(Vec<(AnyLuaValue, AnyLuaValue)>)

LuaNil

LuaOther

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Reads the data from Lua at a given position.

Reads the data from Lua.

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

This method tests for !=.

Error that can happen when pushing a value.

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

Same as push_to_lua but can only succeed and is only available if Err implements Into<Void>. Read more

Push the value into lua by value

Same as push_into_lua but can only succeed and is only available if Err implements Into<Void>. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.