Struct libp2p::multihash::Blake3Hasher
source · [−]pub struct Blake3Hasher<S> where
S: Size, { /* private fields */ }
Expand description
Multihash hasher.
Trait Implementations
sourceimpl<S> Debug for Blake3Hasher<S> where
S: Debug + Size,
impl<S> Debug for Blake3Hasher<S> where
S: Debug + Size,
sourceimpl<S> Default for Blake3Hasher<S> where
S: Size,
impl<S> Default for Blake3Hasher<S> where
S: Size,
sourcepub fn default() -> Blake3Hasher<S>
pub fn default() -> Blake3Hasher<S>
Returns the “default value” for a type. Read more
sourceimpl<S> StatefulHasher for Blake3Hasher<S> where
S: Size,
impl<S> StatefulHasher for Blake3Hasher<S> where
S: Size,
type Size = S
type Size = S
The maximum Digest size for that hasher (it is stack allocated).
type Digest = Blake3Digest<<Blake3Hasher<S> as StatefulHasher>::Size>
type Digest = Blake3Digest<<Blake3Hasher<S> as StatefulHasher>::Size>
The Digest type to distinguish the output of different Hasher
implementations.
sourcepub fn finalize(&self) -> <Blake3Hasher<S> as StatefulHasher>::Digest
pub fn finalize(&self) -> <Blake3Hasher<S> as StatefulHasher>::Digest
Returns the final digest.
Auto Trait Implementations
impl<S> RefUnwindSafe for Blake3Hasher<S> where
S: RefUnwindSafe,
impl<S> Send for Blake3Hasher<S>
impl<S> Sync for Blake3Hasher<S>
impl<S> Unpin for Blake3Hasher<S> where
S: Unpin,
impl<S> UnwindSafe for Blake3Hasher<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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>::Size
The maximum Digest size for that hasher (it is stack allocated).
type Digest = <T as StatefulHasher>::Digest
type Digest = <T as StatefulHasher>::Digest
The Digest type to distinguish the output of different Hasher
implementations.