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§
fn buffer_size(&self) -> usize
fn copy_to(&mut self, to: &mut (impl Write + ?Sized)) -> Result<u64>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.