pub enum ValueHasher {
Bool(bool),
Integer(i64),
Float(Vec<u8>),
Symbol(String),
String(Vec<u8>),
Class(String),
}Expand description
Canonical representation used when Ruby objects serve as Hash keys. TODO: This will be used to implement Hash#hash and Hash#eql?.
Variants§
Trait Implementations§
Source§impl Clone for ValueHasher
impl Clone for ValueHasher
Source§fn clone(&self) -> ValueHasher
fn clone(&self) -> ValueHasher
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 ValueHasher
impl Debug for ValueHasher
Source§impl Hash for ValueHasher
impl Hash for ValueHasher
Source§impl PartialEq for ValueHasher
impl PartialEq for ValueHasher
impl Eq for ValueHasher
impl StructuralPartialEq for ValueHasher
Auto Trait Implementations§
impl Freeze for ValueHasher
impl RefUnwindSafe for ValueHasher
impl Send for ValueHasher
impl Sync for ValueHasher
impl Unpin for ValueHasher
impl UnwindSafe for ValueHasher
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