pub enum HashableValue {
Primitive(HashablePrimitive),
List(Vec<HashableValue>),
None,
}
Expand description
A value that can be used as a key inside a hash map
Variants§
Trait Implementations§
Source§impl Clone for HashableValue
impl Clone for HashableValue
Source§fn clone(&self) -> HashableValue
fn clone(&self) -> HashableValue
Returns a duplicate 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 HashableValue
impl Debug for HashableValue
Source§impl Hash for HashableValue
impl Hash for HashableValue
Source§impl Ord for HashableValue
impl Ord for HashableValue
Source§fn cmp(&self, other: &HashableValue) -> Ordering
fn cmp(&self, other: &HashableValue) -> 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 for HashableValue
impl PartialEq for HashableValue
Source§impl PartialOrd for HashableValue
impl PartialOrd for HashableValue
Source§impl RustyValue for HashableValue
impl RustyValue for HashableValue
fn into_rusty_value(self) -> Value
impl Eq for HashableValue
impl StructuralPartialEq for HashableValue
Auto Trait Implementations§
impl Freeze for HashableValue
impl RefUnwindSafe for HashableValue
impl Send for HashableValue
impl Sync for HashableValue
impl Unpin for HashableValue
impl UnwindSafe for HashableValue
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