pub fn hash_read<R: Read>(input: &mut R) -> Result<String, Failure> {
    let mut hasher = Sha256::new();
    io::copy(input, &mut hasher).map_err(failure::system("Unable to compute hash."))?;
    Ok(hex::encode(hasher.result()))
}
// Compute a cryptographic hash of a readable object (e.g., a file). This function does not need to
// load all the data in memory at the same time. The guarantees are the same as those of
// `crypto_hash`.
Compute a cryptographic hash of a readable object . This function does not need to
load all the data in memory at the same time. The guarantees are the same as those of
`crypto_hash`.
Compute a cryptographic hash of a readable object . This function does not need to load all the data in memory at the same time . The guarantees are the same as those of ` crypto_hash ` .
pub fn hash_read<R: Read>(input: &mut R) -> Result<String, Failure> {
    let mut hasher = Sha256::new();
    io::copy(input, &mut hasher).map_err(failure::system("Unable to compute hash."))?;
    Ok(hex::encode(hasher.result()))
}
pub fn hash_read < R : Read > ( input : & mut R ) -> Result < String , Failure > { let mut hasher = Sha256 :: new ( ) ; io :: copy ( input , & mut hasher ) . map_err ( failure :: system ( " " ) ) ? ; Ok ( hex :: encode ( hasher . result ( ) ) ) }
Compute a cryptographic hash of a readable object (e.g., a file).
Compute a cryptographic hash of a readable object ( e . g . a file ) .
input
&mut R