pub enum HashablePrimitive {
Integer(Integer),
String(String),
OsString(OsString),
Char(char),
Bool(bool),
}
Expand description
A primitive that can be used as a hash map key
Variants§
Trait Implementations§
Source§impl Clone for HashablePrimitive
impl Clone for HashablePrimitive
Source§fn clone(&self) -> HashablePrimitive
fn clone(&self) -> HashablePrimitive
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 HashablePrimitive
impl Debug for HashablePrimitive
Source§impl Hash for HashablePrimitive
impl Hash for HashablePrimitive
Source§impl Ord for HashablePrimitive
impl Ord for HashablePrimitive
Source§fn cmp(&self, other: &HashablePrimitive) -> Ordering
fn cmp(&self, other: &HashablePrimitive) -> 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 HashablePrimitive
impl PartialEq for HashablePrimitive
Source§impl PartialOrd for HashablePrimitive
impl PartialOrd for HashablePrimitive
Source§impl ToString for HashablePrimitive
impl ToString for HashablePrimitive
impl Eq for HashablePrimitive
impl StructuralPartialEq for HashablePrimitive
Auto Trait Implementations§
impl Freeze for HashablePrimitive
impl RefUnwindSafe for HashablePrimitive
impl Send for HashablePrimitive
impl Sync for HashablePrimitive
impl Unpin for HashablePrimitive
impl UnwindSafe for HashablePrimitive
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