macro_rules! match_algo {
    ($algo_str:expr) => { ... };
}
Expand description

This macro matches the hash algorithm strings to their corresponding enum variants.

Example

extern crate hsh;
use hsh::{ match_algo, models::hash_algorithm::HashAlgorithm };

let algo = match_algo!("bcrypt");