pub enum AnyHashableLuaValue {
LuaString(String),
LuaAnyString(AnyLuaString),
LuaNumber(i32),
LuaBoolean(bool),
LuaArray(Vec<(AnyHashableLuaValue, AnyHashableLuaValue)>),
LuaNil,
LuaOther,
}Expand description
The hashable projection used for Lua table keys, mirroring
hlua::AnyHashableLuaValue. Numbers narrow to i32 exactly as upstream.
Variants§
LuaString(String)
LuaAnyString(AnyLuaString)
LuaNumber(i32)
LuaBoolean(bool)
LuaArray(Vec<(AnyHashableLuaValue, AnyHashableLuaValue)>)
LuaNil
LuaOther
Trait Implementations§
Source§impl Clone for AnyHashableLuaValue
impl Clone for AnyHashableLuaValue
Source§fn clone(&self) -> AnyHashableLuaValue
fn clone(&self) -> AnyHashableLuaValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Ord for AnyHashableLuaValue
impl Ord for AnyHashableLuaValue
Source§fn cmp(&self, other: &AnyHashableLuaValue) -> Ordering
fn cmp(&self, other: &AnyHashableLuaValue) -> Ordering
1.21.0 (const: unstable) · 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 for AnyHashableLuaValue
impl PartialEq for AnyHashableLuaValue
Source§fn eq(&self, other: &AnyHashableLuaValue) -> bool
fn eq(&self, other: &AnyHashableLuaValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AnyHashableLuaValue
impl PartialOrd for AnyHashableLuaValue
impl Eq for AnyHashableLuaValue
impl StructuralPartialEq for AnyHashableLuaValue
Auto Trait Implementations§
impl Freeze for AnyHashableLuaValue
impl RefUnwindSafe for AnyHashableLuaValue
impl Send for AnyHashableLuaValue
impl Sync for AnyHashableLuaValue
impl Unpin for AnyHashableLuaValue
impl UnsafeUnpin 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