pub trait BitCollector: Sized {
// Required method
fn collect_bits(self) -> (Vec<u8>, usize);
// Provided method
fn try_collect_bytes(self) -> Result<Vec<u8>, &'static str> { ... }
}
Expand description
Functionality for Boolean iterators to collect their bits or bytes.
Required Methods§
Sourcefn collect_bits(self) -> (Vec<u8>, usize)
fn collect_bits(self) -> (Vec<u8>, usize)
Collect the bits of the iterator into a byte vector and a bit length.
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.