Enum py_marshal::ObjHashable
source · pub enum ObjHashable {
None,
StopIteration,
Ellipsis,
Bool(bool),
Long(Arc<BigInt>),
Float(OrderedFloat<f64>),
Complex(Complex<OrderedFloat<f64>>),
Bytes(Arc<Vec<u8>>),
String(Arc<String>),
Tuple(Arc<Vec<ObjHashable>>),
FrozenSet(Arc<HashableHashSet<ObjHashable>>),
}
Variants§
None
StopIteration
Ellipsis
Bool(bool)
Long(Arc<BigInt>)
Float(OrderedFloat<f64>)
Complex(Complex<OrderedFloat<f64>>)
Bytes(Arc<Vec<u8>>)
String(Arc<String>)
Tuple(Arc<Vec<ObjHashable>>)
FrozenSet(Arc<HashableHashSet<ObjHashable>>)
Trait Implementations§
source§impl Clone for ObjHashable
impl Clone for ObjHashable
source§fn clone(&self) -> ObjHashable
fn clone(&self) -> ObjHashable
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 ObjHashable
impl Debug for ObjHashable
source§impl From<&ObjHashable> for Obj
impl From<&ObjHashable> for Obj
source§fn from(orig: &ObjHashable) -> Self
fn from(orig: &ObjHashable) -> Self
Converts to this type from the input type.
source§impl Hash for ObjHashable
impl Hash for ObjHashable
source§impl PartialEq<ObjHashable> for ObjHashable
impl PartialEq<ObjHashable> for ObjHashable
source§fn eq(&self, other: &ObjHashable) -> bool
fn eq(&self, other: &ObjHashable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.