Trait dsi_bitstream::codes::delta::DeltaWriteParam
source · pub trait DeltaWriteParam<E: Endianness>: GammaWriteParam<E> {
// Required method
fn write_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>(
&mut self,
n: u64
) -> Result<usize, Self::Error>;
}
Expand description
Parametric trait for writing δ codes.
This trait is is more general than DeltaWrite
, 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 DeltaWrite
using default values is usually provided exploiting the
crate::codes::params::WriteParams
mechanism.
Required Methods§
fn write_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>( &mut self, n: u64 ) -> Result<usize, Self::Error>
Object Safety§
This trait is not object safe.