pub enum Algorithm {
Show 25 variants
Blake3,
Sha256,
Sha512,
Sha3_256,
Sha1,
Md5,
Tiger,
Whirlpool,
Ssdeep,
Tlsh,
Crc32c,
Xxh3,
Shake128,
Shake256,
Blake2b,
Blake2s,
Sm3,
Streebog256,
Streebog512,
Ripemd160,
Sha512_256,
Sha512_224,
K12,
Adler32,
Crc64,
}Variants§
Blake3
Sha256
Sha512
Sha3_256
Sha1
Md5
Tiger
Whirlpool
Ssdeep
Tlsh
Crc32c
Xxh3
Shake128
Shake256
Blake2b
Blake2s
Sm3
Streebog256
Streebog512
Ripemd160
Sha512_256
Sha512_224
K12
Adler32
Crc64
Implementations§
Source§impl Algorithm
impl Algorithm
pub fn all() -> &'static [Algorithm]
pub fn hashdeep_name(&self) -> &'static str
pub fn is_fuzzy(&self) -> bool
pub fn is_non_cryptographic(&self) -> bool
Sourcepub fn needs_full_read(&self) -> bool
pub fn needs_full_read(&self) -> bool
Returns true for algorithms that require reading the full file into memory
before hashing — either because they are non-cryptographic (CRC32C, XXH3)
or because they are XOFs (SHAKE-128, SHAKE-256) that cannot stream via
the DynHasher trait, or because they use non-standard APIs.
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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