Struct libp2p::core::multiaddr::multihash::IdentityHasher [−]
pub struct IdentityHasher<S> where
S: Size, { /* fields omitted */ }Expand description
Trait Implementations
impl<S> Debug for IdentityHasher<S> where
S: Debug + Size,
impl<S> Debug for IdentityHasher<S> where
S: Debug + Size, impl<S> Default for IdentityHasher<S> where
S: Default + Size,
impl<S> Default for IdentityHasher<S> where
S: Default + Size, pub fn default() -> IdentityHasher<S>
pub fn default() -> IdentityHasher<S>Returns the “default value” for a type. Read more
impl<S> StatefulHasher for IdentityHasher<S> where
S: Size,
impl<S> StatefulHasher for IdentityHasher<S> where
S: Size, type Size = S
type Size = SThe maximum Digest size for that hasher (it is stack allocated).
type Digest = IdentityDigest<<IdentityHasher<S> as StatefulHasher>::Size>
type Digest = IdentityDigest<<IdentityHasher<S> as StatefulHasher>::Size>The Digest type to distinguish the output of different Hasher implementations.
pub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::Digest
pub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::DigestReturns the final digest.
pub fn reset(&mut self)
pub fn reset(&mut self)Reset the internal hasher state.
Auto Trait Implementations
impl<S> RefUnwindSafe for IdentityHasher<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe, impl<S> Send for IdentityHasher<S>impl<S> Sync for IdentityHasher<S>impl<S> Unpin for IdentityHasher<S> where
<S as ArrayLength<u8>>::ArrayType: Unpin, impl<S> UnwindSafe for IdentityHasher<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Hasher for T where
T: StatefulHasher,
impl<T> Hasher for T where
T: StatefulHasher, type Size = <T as StatefulHasher>::Size
type Size = <T as StatefulHasher>::SizeThe maximum Digest size for that hasher (it is stack allocated).
type Digest = <T as StatefulHasher>::Digest
type Digest = <T as StatefulHasher>::DigestThe Digest type to distinguish the output of different Hasher implementations.
Hashes the given input data and returns its hash digest.
pub fn vzip(self) -> V