pub trait BitRead: Read {
// Required method
fn read_bits<O>(
&mut self,
dest: &mut BitSlice<O, Msb0>,
) -> Result<usize, Error>
where O: BitStore;
// Provided method
fn read_bits_exact<O>(
&mut self,
dest: &mut BitSlice<O, Msb0>,
) -> Result<(), Error>
where O: BitStore { ... }
}
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.