pub fn new(file: &File) -> Self {
		let mut owned_file = file.try_clone().unwrap();
		let pos = owned_file.seek(SeekFrom::Current(0)).unwrap();
		Self {
			buf: BufWriter::new(owned_file),
			pos,
		}
	}
/// Creates new file sink.
/// Position is set to whatever position file has.
Creates new file sink.
Position is set to whatever position file has.
Creates new file sink . Position is set to whatever position file has .
pub fn new(file: &File) -> Self {
		let mut owned_file = file.try_clone().unwrap();
		let pos = owned_file.seek(SeekFrom::Current(0)).unwrap();
		Self {
			buf: BufWriter::new(owned_file),
			pos,
		}
	}
pub fn new ( file : & File ) -> Self { let mut owned_file = file . try_clone ( ) . unwrap ( ) ; let pos = owned_file . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) ; Self { buf : BufWriter :: new ( owned_file ) , pos , } }
Creates new file sink.
Creates new file sink .
file
&File