Trait BufRead
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§
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.