Struct libp2p::multiaddr::multihash::IdentityHasher [−]
pub struct IdentityHasher<S> where
S: Size, { /* fields omitted */ }
Expand description
Trait Implementations
impl<S> Debug for IdentityHasher<S> where
S: Debug + Size,
impl<S> Debug for IdentityHasher<S> where
S: Debug + Size,
impl<S> Default for IdentityHasher<S> where
S: Default + Size,
impl<S> Default for IdentityHasher<S> where
S: Default + Size,
pub fn default() -> IdentityHasher<S>ⓘNotable traits for IdentityHasher<S>impl<S> Write for IdentityHasher<S> where
S: Size,
pub fn default() -> IdentityHasher<S>ⓘNotable traits for IdentityHasher<S>impl<S> Write for IdentityHasher<S> where
S: Size,
impl<S> Write for IdentityHasher<S> where
S: Size,
Returns the “default value” for a type. Read more
impl<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.
pub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::DigestⓘNotable traits for IdentityHasher<S>impl<S> Write for IdentityHasher<S> where
S: Size,
pub fn finalize(&self) -> <IdentityHasher<S> as StatefulHasher>::DigestⓘNotable traits for IdentityHasher<S>impl<S> Write for IdentityHasher<S> where
S: Size,
impl<S> Write for IdentityHasher<S> where
S: Size,
Returns the final digest.
pub fn reset(&mut self)
pub fn reset(&mut self)
Reset the internal hasher state.
impl<S> Write for IdentityHasher<S> where
S: Size,
impl<S> Write for IdentityHasher<S> where
S: Size,
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
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
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>::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.
Hashes the given input
data and returns its hash digest.
pub fn vzip(self) -> V
Writes an unsigned 8 bit integer to the underlying writer. Read more
Writes a signed 8 bit integer to the underlying writer. Read more
Writes an unsigned 16 bit integer to the underlying writer. Read more
Writes a signed 16 bit integer to the underlying writer. Read more
Writes an unsigned 24 bit integer to the underlying writer. Read more
Writes a signed 24 bit integer to the underlying writer. Read more
Writes an unsigned 32 bit integer to the underlying writer. Read more
Writes a signed 32 bit integer to the underlying writer. Read more
Writes an unsigned 48 bit integer to the underlying writer. Read more
Writes a signed 48 bit integer to the underlying writer. Read more
Writes an unsigned 64 bit integer to the underlying writer. Read more
Writes a signed 64 bit integer to the underlying writer. Read more
fn write_u128<T>(&mut self, n: u128) -> Result<(), Error> where
T: ByteOrder,
fn write_u128<T>(&mut self, n: u128) -> Result<(), Error> where
T: ByteOrder,
Writes an unsigned 128 bit integer to the underlying writer.
fn write_i128<T>(&mut self, n: i128) -> Result<(), Error> where
T: ByteOrder,
fn write_i128<T>(&mut self, n: i128) -> Result<(), Error> where
T: ByteOrder,
Writes a signed 128 bit integer to the underlying writer.
Writes an unsigned n-bytes integer to the underlying writer. Read more
Writes a signed n-bytes integer to the underlying writer. Read more
Writes an unsigned n-bytes integer to the underlying writer. Read more
Writes a signed n-bytes integer to the underlying writer. Read more
Writes a IEEE754 single-precision (4 bytes) floating point number to the underlying writer. Read more