Enum tlua::AnyLuaValue [−][src]
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)
Tuple Fields
0: StringLuaAnyString(AnyLuaString)
Tuple Fields
0: AnyLuaStringLuaNumber(f64)
Tuple Fields
0: f64LuaBoolean(bool)
Tuple Fields
0: boolLuaArray(Vec<(AnyLuaValue, AnyLuaValue)>)
Tuple Fields
0: 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
Reads the data from Lua at a given position.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Pushes the value on the top of the stack. Read more
Push the value into lua by value
Auto Trait Implementations
impl RefUnwindSafe for AnyLuaValue
impl Send for AnyLuaValue
impl Sync for AnyLuaValue
impl Unpin for AnyLuaValue
impl UnwindSafe for AnyLuaValue
Blanket Implementations
Mutably borrows from an owned value. Read more
