Enum clap_digest::Digest
source · #[non_exhaustive]
pub enum Digest {
Show 43 variants
BLAKE2b512,
BLAKE2s256,
BLAKE3,
FSB160,
FSB224,
FSB256,
FSB384,
FSB512,
GOST94CryptoPro,
GOST94UA,
GOST94s2015,
Groestl224,
Groestl256,
Groestl384,
Groestl512,
MD2,
MD4,
MD5,
RIPEMD160,
RIPEMD256,
RIPEMD320,
SHA1,
SHA224,
SHA256,
SHA384,
SHA512,
SHA512_224,
SHA512_256,
SHA3_224,
SHA3_256,
SHA3_384,
SHA3_512,
SHABAL192,
SHABAL224,
SHABAL256,
SHABAL384,
SHABAL512,
SM3,
Streebog256,
Streebog512,
Tiger,
Tiger2,
Whirlpool,
}
Expand description
Supported digest algorithms.
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.
BLAKE2b512
BLAKE2s256
BLAKE3
FSB160
FSB224
FSB256
FSB384
FSB512
GOST94CryptoPro
GOST94UA
GOST94s2015
Groestl224
Groestl256
Groestl384
Groestl512
MD2
MD4
MD5
RIPEMD160
RIPEMD256
RIPEMD320
SHA1
SHA224
SHA256
SHA384
SHA512
SHA512_224
SHA512_256
SHA3_224
SHA3_256
SHA3_384
SHA3_512
SHABAL192
SHABAL224
SHABAL256
SHABAL384
SHABAL512
SM3
Streebog256
Streebog512
Tiger
Tiger2
Whirlpool
Implementations§
source§impl Digest
impl Digest
sourcepub const fn name(&self) -> &'static str
pub const fn name(&self) -> &'static str
Returns the digest algorithm name.
This is used for both std::fmt::Display
as well as
clap::ValueEnum::to_possible_value
.
Trait Implementations§
source§impl Ord for Digest
impl Ord for Digest
source§impl PartialEq<Digest> for Digest
impl PartialEq<Digest> for Digest
source§impl PartialOrd<Digest> for Digest
impl PartialOrd<Digest> for Digest
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more