pub struct IdentityHasher<const S: usize> { /* private fields */ }
Expand description

Identity hasher with a maximum size.

Panics

Panics if the input is bigger than the maximum size.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Consume input and update internal state.

Returns the final digest.

Reset the internal hasher state.

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

Attempts to write an entire buffer into this writer. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a “by reference” adaptor for this instance of Write. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.