pub enum HashAlg {
Blake3,
Sha256,
Sha512,
Sha3_256,
Sha3_512,
Blake2b,
Xxh3_64,
Xxh3_128,
Crc32,
}
Expand description
Supported hash algorithms for general purpose hashing.
Variants§
Blake3
BLAKE3 (32-byte digest). Default.
Sha256
SHA-256 (32-byte digest)
Sha512
SHA-512 (64-byte digest)
Sha3_256
SHA3-256 (32-byte digest)
Sha3_512
SHA3-512 (64-byte digest)
Blake2b
BLAKE2b (64-byte digest; unkeyed mode here)
Xxh3_64
XXH3 64-bit (8-byte digest; NOT cryptographic — integrity only)
Xxh3_128
XXH3 128-bit (16-byte digest; NOT cryptographic — integrity only)
Crc32
CRC32 (4-byte checksum; NOT cryptographic — integrity only)
Trait Implementations§
impl Copy for HashAlg
impl Eq for HashAlg
impl StructuralPartialEq for HashAlg
Auto Trait Implementations§
impl Freeze for HashAlg
impl RefUnwindSafe for HashAlg
impl Send for HashAlg
impl Sync for HashAlg
impl Unpin for HashAlg
impl UnwindSafe for HashAlg
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