fn tmpfile_from_file(path: &str) -> TmpFile {
        let file        = File::open(&path).unwrap();
        let mut reader  = BufReader::new(file);
        let mut tmpfile = TmpFile::new(&path).unwrap();
        let mut handle  = tmpfile.handle().unwrap();

        io::copy(&mut reader, &mut handle).unwrap();

        tmpfile
    }
// Copies the given content into the tmpfile handle.
Copies the given content into the tmpfile handle.
Copies the given content into the tmpfile handle .
fn tmpfile_from_file(path: &str) -> TmpFile {
        let file        = File::open(&path).unwrap();
        let mut reader  = BufReader::new(file);
        let mut tmpfile = TmpFile::new(&path).unwrap();
        let mut handle  = tmpfile.handle().unwrap();
        io::copy(&mut reader, &mut handle).unwrap();
        tmpfile
    }
fn tmpfile_from_file ( path : & str ) -> TmpFile { let file = File :: open ( & path ) . unwrap ( ) ; let mut reader = BufReader :: new ( file ) ; let mut tmpfile = TmpFile :: new ( & path ) . unwrap ( ) ; let mut handle = tmpfile . handle ( ) . unwrap ( ) ; io :: copy ( & mut reader , & mut handle ) . unwrap ( ) ; tmpfile }
Copies the given content into the tmpfile handle.
Copies the given content into the tmpfile handle .
path
&str
path
&str