Skip to main content

BitRead

Trait BitRead 

Source
pub trait BitRead {
    type Output;

    // Required method
    fn read_bits(&mut self, n: usize) -> Result<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn read_bits(&mut self, n: usize) -> Result<Self::Output>

Reads exactly n bits, consuming them from the stream

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§