pub trait BitWrite: Write {
// Required method
fn write_bits<O: BitStore>(&mut self, source: &BitSlice<O>) -> Result<usize>;
// Provided method
fn write_all_bits<O: BitStore>(
&mut self,
source: &BitSlice<O>,
) -> Result<()> { ... }
}Expand description
A trait for objects which are bit-oriented sinks.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".