pub fn str_to_hash_algorithm(algorithm_name: &str) -> Result<HashAlgorithm, anyhow::Error> {
        HashAlgorithm::from_str(&algorithm_name.to_uppercase()).with_context(|| {
            format!(
                "{} is not the name of a supported HashAlgorithm.",
                algorithm_name
            )
        })
    }
/// Translate a string that names a hash algorithm to the enum variant.
Translate a string that names a hash algorithm to the enum variant.
Translate a string that names a hash algorithm to the enum variant .
pub fn str_to_hash_algorithm(algorithm_name: &str) -> Result<HashAlgorithm, anyhow::Error> {
        HashAlgorithm::from_str(&algorithm_name.to_uppercase()).with_context(|| {
            format!(
                "{} is not the name of a supported HashAlgorithm.",
                algorithm_name
            )
        })
    }
pub fn str_to_hash_algorithm ( algorithm_name : & str ) -> Result < HashAlgorithm , anyhow :: Error > { HashAlgorithm :: from_str ( & algorithm_name . to_uppercase ( ) ) . with_context ( | | { format ! ( " " algorithm_name ) } ) }
Translate a string that names a hash algorithm to the enum variant.
Translate a string that names a hash algorithm to the enum variant .
algorithm_name
&str
algorithm_name
&str