pub fn sample_md5(hash: impl TryInto<SampleHash>) -> GenericResult<SampleHash> {
    let hash = unwrap_try_into(hash)?;
    if let SampleHash::Md5(_) = hash {
        Ok(hash)
    } else {
        Err(std::io::Error::from(std::io::ErrorKind::InvalidInput).into())
    }
}
/// get sample if it is md5
get sample if it is md5
get sample if it is md5
pub fn sample_md5(hash: impl TryInto<SampleHash>) -> GenericResult<SampleHash> {
    let hash = unwrap_try_into(hash)?;
    if let SampleHash::Md5(_) = hash {
        Ok(hash)
    } else {
        Err(std::io::Error::from(std::io::ErrorKind::InvalidInput).into())
    }
}
pub fn sample_md5 ( hash : impl TryInto < SampleHash > ) -> GenericResult < SampleHash > { let hash = unwrap_try_into ( hash ) ? ; if let SampleHash :: Md5 ( _ ) = hash { Ok ( hash ) } else { Err ( std :: io :: Error :: from ( std :: io :: ErrorKind :: InvalidInput ) . into ( ) ) } }
get sample if it is md5
get sample if it is md5
hash
impl TryInto<SampleHash>