Function algorithm_type
Source pub fn algorithm_type(method: &str) -> Result<HashAlgorithm, OptionError>
Expand description
Select algorithm type to use for hashing file, based on CLI input
§Examples
use checkasum::hashing::algorithm_type;
let _algorithm = algorithm_type("sha256");
§Errors
Handle unknown algorithm choices
use checkasum::hashing::algorithm_type;
let _algorithm = algorithm_type("shaw256");