Struct libp2p::multihash::IdentityHasher
source · [−]pub struct IdentityHasher<S> where
S: Size, { /* private fields */ }
Expand description
Trait Implementations
sourceimpl<S> Debug for IdentityHasher<S> where
S: Debug + Size,
impl<S> Debug for IdentityHasher<S> where
S: Debug + Size,
sourceimpl<S> Default for IdentityHasher<S> where
S: Default + Size,
impl<S> Default for IdentityHasher<S> where
S: Default + Size,
sourcepub fn default() -> IdentityHasher<S>
pub fn default() -> IdentityHasher<S>
Returns the “default value” for a type. Read more
sourceimpl<S> StatefulHasher for IdentityHasher<S> where
S: Size,
impl<S> StatefulHasher for IdentityHasher<S> where
S: Size,
type Size = S
type Size = S
The 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.
sourcepub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::Digest
pub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::Digest
Returns the final digest.
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
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.