pub trait Hashed {
// Required method
fn hashes(&self) -> &[HashDigest];
// Provided methods
fn satisfies(&self, hashes: HashPolicy<'_>) -> bool { ... }
fn has_digests(&self, hashes: HashPolicy<'_>) -> bool { ... }
}Required Methods§
Sourcefn hashes(&self) -> &[HashDigest]
fn hashes(&self) -> &[HashDigest]
Return the HashDigests for the archive.
Provided Methods§
Sourcefn satisfies(&self, hashes: HashPolicy<'_>) -> bool
fn satisfies(&self, hashes: HashPolicy<'_>) -> bool
Returns true if the archive satisfies the given hash policy.
Sourcefn has_digests(&self, hashes: HashPolicy<'_>) -> bool
fn has_digests(&self, hashes: HashPolicy<'_>) -> bool
Returns true if the archive includes a hash for at least one of the given algorithms.