#[non_exhaustive]pub enum Algorithm {
Sha256,
Sha384,
Sha512,
Sha3_256,
Sha3_384,
Sha3_512,
Blake3,
}Expand description
Supported general-purpose hash algorithms.
Variants are gated by feature flag — see crate-level docs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sha256
SHA-256 (FIPS 180-4). 32-byte output.
Sha384
SHA-384 (FIPS 180-4). 48-byte output.
Sha512
SHA-512 (FIPS 180-4). 64-byte output.
Sha3_256
SHA3-256 (FIPS 202). 32-byte output.
Sha3_384
SHA3-384 (FIPS 202). 48-byte output.
Sha3_512
SHA3-512 (FIPS 202). 64-byte output.
Blake3
BLAKE3, 32-byte output.
Implementations§
Trait Implementations§
Source§impl Ord for Algorithm
impl Ord for Algorithm
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
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