fn stream_write(writer: &mut dyn Write, data: &[u8], path: &Path) -> Result<usize> {
    writer
        .write(data)
        .with_context(|| format!("Error writing to file: \"{}\"", path.display(),))
}
// Writes data to a file/stream.
Writes data to a file/stream.
Writes data to a file / stream .
fn stream_write(writer: &mut dyn Write, data: &[u8], path: &Path) -> Result<usize> {
    writer
        .write(data)
        .with_context(|| format!("Error writing to file: \"{}\"", path.display(),))
}
fn stream_write ( writer : & mut dyn Write , data : & [ u8 ] , path : & Path ) -> Result < usize > { writer . write ( data ) . with_context ( | | format ! ( " \" \" " path display ( ) ) ) }
Writes data to a file/stream.
Writes data to a file / stream .
writer
&mut dyn Write
data
&[u8]
path
&Path