pub fn write_hashes(out: &mut Write, out_file: &str, algo: Algorithm, mut hashes: BTreeMap<String, String>) {
    let mut out = TabWriter::new(out);

    hashes.insert(out_file.to_string(), mul_str("-", algo.hexlen()));
    for (fname, hash) in hashes {
        writeln!(&mut out, "{}\t{}", fname, hash).unwrap();
    }

    out.flush().unwrap();
}
/// Serialise the specified hashes to the specified output file.
Serialise the specified hashes to the specified output file.
Serialise the specified hashes to the specified output file .
pub fn write_hashes(out: &mut Write, out_file: &str, algo: Algorithm, mut hashes: BTreeMap<String, String>) {
    let mut out = TabWriter::new(out);
    hashes.insert(out_file.to_string(), mul_str("-", algo.hexlen()));
    for (fname, hash) in hashes {
        writeln!(&mut out, "{}\t{}", fname, hash).unwrap();
    }
    out.flush().unwrap();
}
pub fn write_hashes ( out : & mut Write , out_file : & str , algo : Algorithm , mut hashes : BTreeMap < String , String > ) { let mut out = TabWriter :: new ( out ) ; hashes . insert ( out_file . to_string ( ) , mul_str ( " " , algo . hexlen ( ) ) ) ; for ( fname , hash ) in hashes { writeln ! ( mut out " \t " fname hash ) . unwrap ( ) ; } out . flush ( ) . unwrap ( ) ; }
Serialise the specified hashes to the specified output file.
Serialise the specified hashes to the specified output file .
out
&mut Write
out_file
&str
algo
Algorithm
hashes
BTreeMap<String, String>