pub fn copy_to_file(&mut self, file: &mut File) -> Result<u64> {
        let mut n = 0;
        while let Some(buf) = self.next() {
            n += file.write(&buf?)?;
        }
        file.flush()?;
        Ok(n as u64)
    }
/// Copys bytes to a File.
Copys bytes to a File.
Copys bytes to a File .
pub fn copy_to_file(&mut self, file: &mut File) -> Result<u64> {
        let mut n = 0;
        while let Some(buf) = self.next() {
            n += file.write(&buf?)?;
        }
        file.flush()?;
        Ok(n as u64)
    }
pub fn copy_to_file ( & mut self , file : & mut File ) -> Result < u64 > { let mut n = 0 ; while let Some ( buf ) = self . next ( ) { n += file . write ( & buf ? ) ? ; } file . flush ( ) ? ; Ok ( n as u64 ) }
Copys bytes to a File.
Copys bytes to a File .
&mut self
file
&mut File
&mut self
file
&mut File