Enum hlua::any::AnyLuaValue
[−]
[src]
pub enum AnyLuaValue { LuaString(String), LuaNumber(f64), LuaBoolean(bool), LuaArray(Vec<(AnyLuaValue, AnyLuaValue)>), LuaNil, LuaOther, }
Represents any value that can be stored by Lua
Variants
LuaString(String)
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
impl PartialEq for AnyLuaValue
[src]
fn eq(&self, __arg_0: &AnyLuaValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnyLuaValue) -> bool
This method tests for !=
.
impl Debug for AnyLuaValue
[src]
impl Clone for AnyLuaValue
[src]
fn clone(&self) -> AnyLuaValue
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
impl<L> Push<L> for AnyLuaValue where L: AsMutLua
[src]
fn push_to_lua(self, lua: L) -> PushGuard<L>
Pushes the value on the top of the stack. Read more
impl<L> LuaRead<L> for AnyLuaValue where L: AsLua
[src]
fn lua_read_at_position(lua: L, index: i32) -> Result<AnyLuaValue, L>
Reads the data from Lua at a given position.
fn lua_read(lua: L) -> Result<Self, L>
Reads the data from Lua.