pub struct ParamDeltaCodec<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>;
Expand description
ParamDeltaCodec: uses compile‑time booleans for table usage.
The parameters USE_DELTA_TABLE
and USE_GAMMA_TABLE
are compile‑time flags. For more information refer to the Delta
module.
Implementations§
Source§impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
Sourcepub fn encode<E: Endianness, W: DeltaWriteParam<E>>(
writer: &mut W,
value: u64,
) -> Result<usize, Box<dyn Error>>
pub fn encode<E: Endianness, W: DeltaWriteParam<E>>( writer: &mut W, value: u64, ) -> Result<usize, Box<dyn Error>>
Encodes a value using the parameterized Delta codec.
Sourcepub fn decode<E: Endianness, R>(reader: &mut R) -> Result<u64, Box<dyn Error>>where
R: DeltaReadParam<E>,
pub fn decode<E: Endianness, R>(reader: &mut R) -> Result<u64, Box<dyn Error>>where
R: DeltaReadParam<E>,
Decodes a value using the parameterized Delta codec.
Trait Implementations§
Source§impl<E: Endianness, const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool, W: DeltaWriteParam<E>> Codec<E, W> for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<E: Endianness, const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool, W: DeltaWriteParam<E>> Codec<E, W> for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
Auto Trait Implementations§
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> Freeze for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> RefUnwindSafe for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> Send for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> Sync for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> Unpin for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
impl<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool> UnwindSafe for ParamDeltaCodec<USE_DELTA_TABLE, USE_GAMMA_TABLE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.