Struct holo_hash::HoloHashed [−][src]
pub struct HoloHashed<C: HashableContent> { /* fields omitted */ }
Expand description
Represents some piece of content along with its hash representation, so that hashes need not be calculated multiple times. Provides an easy constructor which consumes the content.
Implementations
Combine content with its precalculated hash
Accessor for content
Convert to content
Deconstruct as a tuple
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Get the hash by reference
Convert to the owned hash
Auto Trait Implementations
impl<C> RefUnwindSafe for HoloHashed<C> where
C: RefUnwindSafe,
<C as HashableContent>::HashType: RefUnwindSafe,
impl<C> Send for HoloHashed<C> where
C: Send,
<C as HashableContent>::HashType: Send,
impl<C> Sync for HoloHashed<C> where
C: Sync,
<C as HashableContent>::HashType: Sync,
impl<C> Unpin for HoloHashed<C> where
C: Unpin,
<C as HashableContent>::HashType: Unpin,
impl<C> UnwindSafe for HoloHashed<C> where
C: UnwindSafe,
<C as HashableContent>::HashType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.