logo
pub struct Keccak256 { /* private fields */ }
Expand description

Multihash hasher.

Trait Implementations

Formats the value using the given formatter. Read more

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

The maximum Digest size for that hasher (it is stack allocated).

The Digest type to distinguish the output of different Hasher implementations.

Consume input and update internal state.

Returns the final digest.

Reset the internal hasher state.

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.

The maximum Digest size for that hasher (it is stack allocated).

The Digest type to distinguish the output of different Hasher implementations.

Hashes the given input data and returns its hash digest.

Returns the allocated size of the digest.

Calls U::from(self).

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

Should always be Self

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.