pub trait BitRead: Read {
// Required method
fn read_bits<O: BitStore>(
&mut self,
dest: &mut BitSlice<O>,
) -> Result<usize>;
// Provided method
fn read_bits_exact<O: BitStore>(
&mut self,
dest: &mut BitSlice<O>,
) -> Result<()> { ... }
}
Expand description
The BitRead trait allows for reading bits from a source.
Required Methods§
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.