pub trait Encoder<T: PartialEq + Default + Copy> {
// Required methods
fn bitpacked_encode<W: Write, I: Iterator<Item = T>>(
writer: &mut W,
iterator: I,
num_bits: usize,
) -> Result<()>;
fn run_length_encode<W: Write>(
writer: &mut W,
run_length: usize,
value: T,
bit_width: u32,
) -> Result<()>;
}
Required Methods§
fn bitpacked_encode<W: Write, I: Iterator<Item = T>>( writer: &mut W, iterator: I, num_bits: usize, ) -> Result<()>
fn run_length_encode<W: Write>( writer: &mut W, run_length: usize, value: T, bit_width: u32, ) -> Result<()>
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.