pub trait BufRead: Read {
// Required methods
fn fill_buf(&mut self) -> Result<&[u8], Error>;
fn consume(&mut self, amount: usize);
}
Expand description
A trait describing an input stream that uses an internal buffer when reading.
Required Methods§
Object Safety§
This trait is not object safe.