trait BufferedReaderSpec {
    // Required methods
    fn buffer_size(&self) -> usize;
    fn copy_to(&mut self, to: &mut impl Write + ?Sized) -> Result<u64>;
}
Expand description

Specialization of the read-write loop that reuses the internal buffer of a BufReader. If there’s no buffer then the writer side should be used instead.

Required Methods§

source

fn buffer_size(&self) -> usize

source

fn copy_to(&mut self, to: &mut impl Write + ?Sized) -> Result<u64>

Implementors§