Enum tlua::AnyHashableLuaValue
source · pub enum AnyHashableLuaValue {
LuaString(String),
LuaAnyString(AnyLuaString),
LuaNumber(i32),
LuaBoolean(bool),
LuaArray(Vec<(AnyHashableLuaValue, AnyHashableLuaValue)>),
LuaNil,
LuaOther,
}
Expand description
Represents any value that can be stored by Lua
Variants§
LuaString(String)
LuaAnyString(AnyLuaString)
LuaNumber(i32)
LuaBoolean(bool)
LuaArray(Vec<(AnyHashableLuaValue, AnyHashableLuaValue)>)
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 AnyHashableLuaValue
impl Clone for AnyHashableLuaValue
source§fn clone(&self) -> AnyHashableLuaValue
fn clone(&self) -> AnyHashableLuaValue
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 AnyHashableLuaValue
impl Debug for AnyHashableLuaValue
source§impl Hash for AnyHashableLuaValue
impl Hash for AnyHashableLuaValue
source§impl<L: AsLua> LuaRead<L> for AnyHashableLuaValue
impl<L: AsLua> LuaRead<L> for AnyHashableLuaValue
source§fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
Reads the data from Lua at a given position.
fn n_values_expected() -> i32
source§fn lua_read(lua: L) -> ReadResult<Self, L>
fn lua_read(lua: L) -> ReadResult<Self, L>
Reads the data from Lua.
fn lua_read_at_maybe_zero_position(lua: L, index: i32) -> ReadResult<Self, L>where L: AsLua,
source§impl Ord for AnyHashableLuaValue
impl Ord for AnyHashableLuaValue
source§fn cmp(&self, other: &AnyHashableLuaValue) -> Ordering
fn cmp(&self, other: &AnyHashableLuaValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AnyHashableLuaValue> for AnyHashableLuaValue
impl PartialEq<AnyHashableLuaValue> for AnyHashableLuaValue
source§fn eq(&self, other: &AnyHashableLuaValue) -> bool
fn eq(&self, other: &AnyHashableLuaValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AnyHashableLuaValue> for AnyHashableLuaValue
impl PartialOrd<AnyHashableLuaValue> for AnyHashableLuaValue
source§fn partial_cmp(&self, other: &AnyHashableLuaValue) -> Option<Ordering>
fn partial_cmp(&self, other: &AnyHashableLuaValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<L: AsLua> Push<L> for AnyHashableLuaValue
impl<L: AsLua> Push<L> for AnyHashableLuaValue
source§impl<L: AsLua> PushInto<L> for AnyHashableLuaValue
impl<L: AsLua> PushInto<L> for AnyHashableLuaValue
impl Eq for AnyHashableLuaValue
impl<L: AsLua> PushOne<L> for AnyHashableLuaValue
impl<L: AsLua> PushOneInto<L> for AnyHashableLuaValue
impl StructuralEq for AnyHashableLuaValue
impl StructuralPartialEq for AnyHashableLuaValue
Auto Trait Implementations§
impl RefUnwindSafe for AnyHashableLuaValue
impl Send for AnyHashableLuaValue
impl Sync for AnyHashableLuaValue
impl Unpin for AnyHashableLuaValue
impl UnwindSafe for AnyHashableLuaValue
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