Enum hlua::AnyLuaValue
source · 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§
source§impl Clone for AnyLuaValue
impl Clone for AnyLuaValue
source§fn clone(&self) -> AnyLuaValue
fn clone(&self) -> AnyLuaValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnyLuaValue
impl Debug for AnyLuaValue
source§impl<'lua, L> LuaRead<L> for AnyLuaValuewhere
L: AsMutLua<'lua>,
impl<'lua, L> LuaRead<L> for AnyLuaValuewhere
L: AsMutLua<'lua>,
source§fn lua_read_at_position(lua: L, index: i32) -> Result<AnyLuaValue, L>
fn lua_read_at_position(lua: L, index: i32) -> Result<AnyLuaValue, L>
Reads the data from Lua at a given position.
source§impl PartialEq for AnyLuaValue
impl PartialEq for AnyLuaValue
source§fn eq(&self, other: &AnyLuaValue) -> bool
fn eq(&self, other: &AnyLuaValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'lua, L> Push<L> for AnyLuaValuewhere
L: AsMutLua<'lua>,
impl<'lua, L> Push<L> for AnyLuaValuewhere
L: AsMutLua<'lua>,
impl<'lua, L> PushOne<L> for AnyLuaValuewhere
L: AsMutLua<'lua>,
impl StructuralPartialEq for AnyLuaValue
Auto Trait Implementations§
impl Freeze for AnyLuaValue
impl RefUnwindSafe for AnyLuaValue
impl Send for AnyLuaValue
impl Sync for AnyLuaValue
impl Unpin for AnyLuaValue
impl UnwindSafe for AnyLuaValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more