Hashed

Trait Hashed 

Source
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§

Source

fn hashes(&self) -> &[HashDigest]

Return the HashDigests for the archive.

Provided Methods§

Source

fn satisfies(&self, hashes: HashPolicy<'_>) -> bool

Returns true if the archive satisfies the given hash policy.

Source

fn has_digests(&self, hashes: HashPolicy<'_>) -> bool

Returns true if the archive includes a hash for at least one of the given algorithms.

Implementors§