pub enum HashFunction {
Crc32 = 1,
Sha1 = 2,
Sha256 = 3,
Sha384 = 4,
Sha512 = 5,
}Expand description
Wraps AppleArchive hash function identifiers.
Variants§
Crc32 = 1
Wraps the Crc32 variant of HashFunction.
Sha1 = 2
Wraps the Sha1 variant of HashFunction.
Sha256 = 3
Wraps the Sha256 variant of HashFunction.
Sha384 = 4
Wraps the Sha384 variant of HashFunction.
Sha512 = 5
Wraps the Sha512 variant of HashFunction.
Implementations§
Source§impl HashFunction
impl HashFunction
Sourcepub const fn digest_len(self) -> usize
pub const fn digest_len(self) -> usize
Wraps the digest sizes produced by AAHeaderGetFieldHash.
Trait Implementations§
Source§impl Clone for HashFunction
impl Clone for HashFunction
Source§fn clone(&self) -> HashFunction
fn clone(&self) -> HashFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashFunction
Source§impl Debug for HashFunction
impl Debug for HashFunction
impl Eq for HashFunction
Source§impl Hash for HashFunction
impl Hash for HashFunction
Source§impl PartialEq for HashFunction
impl PartialEq for HashFunction
Source§fn eq(&self, other: &HashFunction) -> bool
fn eq(&self, other: &HashFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HashFunction
Auto Trait Implementations§
impl Freeze for HashFunction
impl RefUnwindSafe for HashFunction
impl Send for HashFunction
impl Sync for HashFunction
impl Unpin for HashFunction
impl UnsafeUnpin for HashFunction
impl UnwindSafe for HashFunction
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