Trait dsi_bitstream::codes::delta::DeltaReadParam
source · pub trait DeltaReadParam<E: Endianness>: GammaReadParam<E> {
// Required method
fn read_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>(
&mut self
) -> Result<u64, Self::Error>;
}Expand description
Parametric trait for reading δ codes.
This trait is is more general than DeltaRead, as it makes it possible
to specify how to use tables using const parameters.
We provide an implementation of this trait for BitRead. An implementation
of DeltaRead using default values is usually provided exploiting the
crate::codes::params::ReadParams mechanism.
Required Methods§
fn read_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>( &mut self ) -> Result<u64, Self::Error>
Object Safety§
This trait is not object safe.