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 duplicate 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 Freeze for MultiContentDigest
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