Struct libp2p::core::multiaddr::multihash::Sha2_512 [−]
pub struct Sha2_512 { /* fields omitted */ }Expand description
Multihash hasher.
Trait Implementations
impl StatefulHasher for Sha2_512
impl StatefulHasher for Sha2_512The maximum Digest size for that hasher (it is stack allocated).
type Digest = Sha2Digest<<Sha2_512 as StatefulHasher>::Size>
type Digest = Sha2Digest<<Sha2_512 as StatefulHasher>::Size>The Digest type to distinguish the output of different Hasher implementations.
pub fn finalize(&self) -> <Sha2_512 as StatefulHasher>::Digest
pub fn finalize(&self) -> <Sha2_512 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 RefUnwindSafe for Sha2_512impl UnwindSafe for Sha2_512Blanket 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