Trait BufBits

Source
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§

Source

fn fill_buf(&mut self) -> Result<&[u8], Error>

Source

fn consume(&mut self, amt: usize)

Provided 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.

Implementors§