pub struct DhtOp;
Expand description
The $name PrimitiveHashType
Trait Implementations§
source§impl<'de> Deserialize<'de> for DhtOp
impl<'de> Deserialize<'de> for DhtOp
source§fn deserialize<D>(deserializer: D) -> Result<DhtOp, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DhtOp, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for DhtOp
impl Ord for DhtOp
source§impl PartialEq<DhtOp> for DhtOp
impl PartialEq<DhtOp> for DhtOp
source§impl PartialOrd<DhtOp> for DhtOp
impl PartialOrd<DhtOp> for DhtOp
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PrimitiveHashType for DhtOp
impl PrimitiveHashType for DhtOp
impl Copy for DhtOp
impl Eq for DhtOp
impl HashTypeSync for DhtOp
impl StructuralEq for DhtOp
impl StructuralPartialEq for DhtOp
Auto Trait Implementations§
impl RefUnwindSafe for DhtOp
impl Send for DhtOp
impl Sync for DhtOp
impl Unpin for DhtOp
impl UnwindSafe for DhtOp
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<P> HashType for Pwhere
P: PrimitiveHashType,
impl<P> HashType for Pwhere
P: PrimitiveHashType,
source§fn get_prefix(self) -> &'static [u8] ⓘ
fn get_prefix(self) -> &'static [u8] ⓘ
Get the 3-byte prefix for the underlying primitive hash type
source§fn try_from_prefix(prefix: &[u8]) -> Result<P, HoloHashError>
fn try_from_prefix(prefix: &[u8]) -> Result<P, HoloHashError>
Given a 3-byte prefix, return the corresponding HashType, or error if mismatched.
Trivial for PrimitiveHashType, but useful for composite types