Trait fingerprint_struct::Fingerprint
source · [−]pub trait Fingerprint {
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.