pub trait GammaWriteParam<E: Endianness>: BitWrite<E> {
    // Required method
    fn write_gamma_param<const USE_TABLE: bool>(
        &mut self,
        n: u64
    ) -> Result<usize, Self::Error>;
}
Expand description

Parametric trait for writing γ codes.

This trait is is more general than GammaWrite, 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 GammaWrite using default values is usually provided exploiting the crate::codes::params::WriteParams mechanism.

Required Methods§

source

fn write_gamma_param<const USE_TABLE: bool>( &mut self, n: u64 ) -> Result<usize, Self::Error>

Object Safety§

This trait is not object safe.

Implementors§