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