pub enum Algorithm {
Show 18 variants
SHA1,
SHA2224,
SHA2256,
SHA2384,
SHA2512,
SHA3224,
SHA3256,
SHA3384,
SHA3512,
XXH32,
XXH64,
XXH3,
CRC32,
MD5,
WhirlPool,
BLAKE2B,
BLAKE2S,
BLAKE3,
}
Expand description
A hashing algorithm.
§Examples
assert_eq!(
quickdash::Algorithm::from_str("BLAKE3"),
Ok(quickdash::Algorithm::BLAKE3)
);
assert_eq!(
quickdash::Algorithm::from_str("MD5"),
Ok(quickdash::Algorithm::MD5)
);
Variants§
SHA1
SHA2224
SHA2256
SHA2384
SHA2512
SHA3224
SHA3256
SHA3384
SHA3512
XXH32
XXH64
XXH3
CRC32
MD5
WhirlPool
BLAKE2B
BLAKE2S
BLAKE3
Implementations§
Trait Implementations§
Source§impl Ord for Algorithm
impl Ord for Algorithm
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more