pub trait Checksum {
// Required method
fn checksum<H: Hasher>(&self, state: &mut H);
}
Expand description
Similar to std::hash::Hash.
Implementations of this trait are expected to update the hasher state in the same way across platforms. #[derive(Checksum)] will do the right thing.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.