pub trait BufBits: Bits {
// Required methods
fn fill_buf(&mut self) -> Result<&[u8], Error>;
fn consume(&mut self, amt: usize);
// Provided method
fn has_data_left(&mut self) -> Result<bool, Error> { ... }
}
Expand description
Buffered bits - semantically equivalent to BufRead
Required Methods§
Provided Methods§
fn has_data_left(&mut self) -> Result<bool, Error>
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.