pub trait OmegaWriteParam<E: Endianness>: BitWrite<E> {
// Required method
fn write_omega_param<const USE_TABLES: bool>(
&mut self,
n: u64,
) -> Result<usize, Self::Error>;
}Expand description
Parametric trait for writing ω codes.
This trait is is more general than OmegaWrite, as it makes it possible
to specify how to use tables using const parameters.
We provide an implementation of this trait for BitWrite. An implementation
of OmegaWrite using default values is usually provided exploiting the
crate::codes::params::WriteParams mechanism.
Required Methods§
fn write_omega_param<const USE_TABLES: bool>( &mut self, n: u64, ) -> Result<usize, Self::Error>
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.