Struct debian_packaging::io::MultiContentDigest
source · pub struct MultiContentDigest {
pub md5: ContentDigest,
pub sha1: ContentDigest,
pub sha256: ContentDigest,
}Expand description
Holds multiple flavors of content digests.
Fields§
§md5: ContentDigest§sha1: ContentDigest§sha256: ContentDigestImplementations§
source§impl MultiContentDigest
impl MultiContentDigest
sourcepub fn matches_digest(&self, other: &ContentDigest) -> bool
pub fn matches_digest(&self, other: &ContentDigest) -> bool
Whether this digest matches another one.
sourcepub fn digest_from_checksum(&self, checksum: ChecksumType) -> &ContentDigest
pub fn digest_from_checksum(&self, checksum: ChecksumType) -> &ContentDigest
Obtain the ContentDigest for a given ChecksumType.
sourcepub fn iter_digests(&self) -> impl Iterator<Item = &ContentDigest> + '_
pub fn iter_digests(&self) -> impl Iterator<Item = &ContentDigest> + '_
Obtain an iterator of ContentDigest in this instance.
Trait Implementations§
source§impl Clone for MultiContentDigest
impl Clone for MultiContentDigest
source§fn clone(&self) -> MultiContentDigest
fn clone(&self) -> MultiContentDigest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MultiContentDigest
impl Send for MultiContentDigest
impl Sync for MultiContentDigest
impl Unpin for MultiContentDigest
impl UnwindSafe for MultiContentDigest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more