pub struct Agent;Expand description
The $name PrimitiveHashType
Trait Implementations§
impl Copy for Agent
Source§impl<'de> Deserialize<'de> for Agent
Available on crate feature serialization only.
impl<'de> Deserialize<'de> for Agent
Available on crate feature
serialization only.Source§fn deserialize<D>(deserializer: D) -> Result<Agent, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Agent, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Agent
Source§impl Ord for Agent
impl Ord for Agent
1.21.0 (const: unstable) · 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 PartialOrd for Agent
impl PartialOrd for Agent
Source§impl PrimitiveHashType for Agent
impl PrimitiveHashType for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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