pub trait Fingerprint {
// Required method
fn fingerprint<U: Update>(&self, hasher: &mut U);
}
Expand description
A data structure whose cryptographic hash can be computed by a hasher.
Implementations are provided for common std
types, such as primitives, strings, collections
and smart pointers. Custom implementations can be easily written manually, or derived
automatically using #[derive(Fingerprint)]
.
Required Methods§
Sourcefn fingerprint<U: Update>(&self, hasher: &mut U)
fn fingerprint<U: Update>(&self, hasher: &mut U)
Use this value to update a hasher.
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.