pub struct Blake2bHasher<S> where
S: Size, { /* private fields */ }
Expand description
Multihash hasher.
Trait Implementations
sourceimpl<S> Debug for Blake2bHasher<S> where
S: Debug + Size,
impl<S> Debug for Blake2bHasher<S> where
S: Debug + Size,
sourceimpl<S> Default for Blake2bHasher<S> where
S: Size,
impl<S> Default for Blake2bHasher<S> where
S: Size,
sourcepub fn default() -> Blake2bHasher<S>
pub fn default() -> Blake2bHasher<S>
Returns the “default value” for a type. Read more
sourceimpl<S> StatefulHasher for Blake2bHasher<S> where
S: Size,
impl<S> StatefulHasher for Blake2bHasher<S> where
S: Size,
type Size = S
type Size = S
The maximum Digest size for that hasher (it is stack allocated).
type Digest = Blake2bDigest<<Blake2bHasher<S> as StatefulHasher>::Size>
type Digest = Blake2bDigest<<Blake2bHasher<S> as StatefulHasher>::Size>
The Digest type to distinguish the output of different Hasher
implementations.
sourcepub fn finalize(&self) -> <Blake2bHasher<S> as StatefulHasher>::Digest
pub fn finalize(&self) -> <Blake2bHasher<S> as StatefulHasher>::Digest
Returns the final digest.
Auto Trait Implementations
impl<S> RefUnwindSafe for Blake2bHasher<S> where
S: RefUnwindSafe,
impl<S> Send for Blake2bHasher<S>
impl<S> Sync for Blake2bHasher<S>
impl<S> Unpin for Blake2bHasher<S> where
S: Unpin,
impl<S> UnwindSafe for Blake2bHasher<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.