Enum quickdash::Algorithm[][src]

pub enum Algorithm {
Show 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

Length, in bytes, of the algorithm’s output hex string

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.