[−][src]Struct tiny_multihash::IdentityHasher
Identity hasher.
Trait Implementations
impl<S: Default + Size> Default for IdentityHasher<S>
[src]
fn default() -> IdentityHasher<S>
[src]
impl<S: Size> Hasher for IdentityHasher<S>
[src]
type Size = S
The maximum Digest size for that hasher (it is stack allocated).
type Digest = IdentityDigest<Self::Size>
The Digest type to distinguish the output of different Hasher
implementations.
fn update(&mut self, input: &[u8])
[src]
fn finalize(&self) -> Self::Digest
[src]
fn reset(&mut self)
[src]
fn size() -> u8
[src]
fn digest(input: &[u8]) -> Self::Digest where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<S> RefUnwindSafe for IdentityHasher<S> where
<S as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<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,
<S as ArrayLength<u8>>::ArrayType: Unpin,
impl<S> UnwindSafe for IdentityHasher<S> where
<S as ArrayLength<u8>>::ArrayType: UnwindSafe,
<S as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,