pub trait ToDigest {
// Required method
fn update_hasher(&self, hasher: &mut CoreWrapper<Keccak256Core>);
// Provided method
fn to_digest(&self) -> Digest { ... }
}Expand description
Trait for hashing types into a Digest using Keccak256.
Required Methods§
fn update_hasher(&self, hasher: &mut CoreWrapper<Keccak256Core>)
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".