pub fn read_hash<P>(cache: P, sri: &Integrity) -> Result<Vec<u8>, Error>
where
    P: AsRef<Path>,
{
    Ok(read::read(cache.as_ref(), sri)?)
}
/// Reads the entire contents of a cache file into a bytes vector, looking the
/// data up by its content address.
Reads the entire contents of a cache file into a bytes vector, looking the
data up by its content address.
Reads the entire contents of a cache file into a bytes vector looking the data up by its content address .
pub fn read_hash<P>(cache: P, sri: &Integrity) -> Result<Vec<u8>, Error>
where
    P: AsRef<Path>,
{
    Ok(read::read(cache.as_ref(), sri)?)
}
pub fn read_hash < P > ( cache : P , sri : & Integrity ) -> Result < Vec < u8 > , Error > where P : AsRef < Path > , { Ok ( read :: read ( cache . as_ref ( ) , sri ) ? ) }
Reads the entire contents of a cache file into a bytes vector, looking the
data up by its content address.
Reads the entire contents of a cache file into a bytes vector looking the data up by its content address .
cache
P
sri
&Integrity
cache
P
sri
&Integrity