pub fn detect(target: &impl AsRef<str>) -> HashType {
    match target {
        _ if is_md5(target) => HashType::MD5,
        _ if is_sha1(target) => HashType::SHA1,
        _ if is_sha256(target) => HashType::SHA256,
        _ => HashType::Unknown,
    }
}
/// detect hash type of specified text
detect hash type of specified text
detect hash type of specified text
pub fn detect(target: &impl AsRef<str>) -> HashType {
    match target {
        _ if is_md5(target) => HashType::MD5,
        _ if is_sha1(target) => HashType::SHA1,
        _ if is_sha256(target) => HashType::SHA256,
        _ => HashType::Unknown,
    }
}
pub fn detect ( target : & impl AsRef < str > ) -> HashType { match target { _ if is_md5 ( target ) => HashType :: MD5 , _ if is_sha1 ( target ) => HashType :: SHA1 , _ if is_sha256 ( target ) => HashType :: SHA256 , _ => HashType :: Unknown , } }
detect hash type of specified text
detect hash type of specified text
target
&impl AsRef<str>