Struct dsi_bitstream::utils::DbgBitWriter
source · pub struct DbgBitWriter<E: Endianness, W> { /* private fields */ }
Expand description
A wrapper over a BitWrite
that report on standard error all operations performed,
including all code writes.
Implementations§
source§impl<E: Endianness, W> DbgBitWriter<E, W>
impl<E: Endianness, W> DbgBitWriter<E, W>
Trait Implementations§
source§impl<E: Endianness, W: BitWrite<E>> BitWrite<E> for DbgBitWriter<E, W>
impl<E: Endianness, W: BitWrite<E>> BitWrite<E> for DbgBitWriter<E, W>
type Error = <W as BitWrite<E>>::Error
source§fn write_bits(
&mut self,
value: u64,
n_bits: usize
) -> Result<usize, Self::Error>
fn write_bits( &mut self, value: u64, n_bits: usize ) -> Result<usize, Self::Error>
Write the lowest
n
bits of value
to the stream and return the number
of bits written, that is, n
. Read moresource§fn write_unary_param<const USE_TABLE: bool>(
&mut self,
value: u64
) -> Result<usize, Self::Error>
fn write_unary_param<const USE_TABLE: bool>( &mut self, value: u64 ) -> Result<usize, Self::Error>
Write
value
as a unary code to the stream and return the number of
bits written, that is, value
plus one. Read moresource§impl<E: Endianness, W: DeltaWrite<E>> DeltaWrite<E> for DbgBitWriter<E, W>
impl<E: Endianness, W: DeltaWrite<E>> DeltaWrite<E> for DbgBitWriter<E, W>
source§impl<E: Endianness, W: GammaWrite<E>> GammaWrite<E> for DbgBitWriter<E, W>
impl<E: Endianness, W: GammaWrite<E>> GammaWrite<E> for DbgBitWriter<E, W>
Auto Trait Implementations§
impl<E, W> RefUnwindSafe for DbgBitWriter<E, W>where
E: RefUnwindSafe,
W: RefUnwindSafe,
impl<E, W> Send for DbgBitWriter<E, W>
impl<E, W> Sync for DbgBitWriter<E, W>
impl<E, W> Unpin for DbgBitWriter<E, W>
impl<E, W> UnwindSafe for DbgBitWriter<E, W>where
E: UnwindSafe,
W: UnwindSafe,
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<B> DeltaWriteParam<BigEndian> for Bwhere
B: GammaWriteParam<BigEndian>,
impl<B> DeltaWriteParam<BigEndian> for Bwhere
B: GammaWriteParam<BigEndian>,
source§impl<B> DeltaWriteParam<LittleEndian> for Bwhere
B: GammaWriteParam<LittleEndian>,
impl<B> DeltaWriteParam<LittleEndian> for Bwhere
B: GammaWriteParam<LittleEndian>,
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<B> GammaWriteParam<BigEndian> for B
impl<B> GammaWriteParam<BigEndian> for B
source§impl<B> GammaWriteParam<LittleEndian> for Bwhere
B: BitWrite<LittleEndian>,
impl<B> GammaWriteParam<LittleEndian> for Bwhere
B: BitWrite<LittleEndian>,
fn write_gamma_param<const USE_TABLE: bool>( &mut self, n: u64 ) -> Result<usize, <B as BitWrite<LittleEndian>>::Error>
source§impl<BO, B> MinimalBinaryWrite<BO> for Bwhere
BO: Endianness,
B: BitWrite<BO>,
impl<BO, B> MinimalBinaryWrite<BO> for Bwhere
BO: Endianness,
B: BitWrite<BO>,
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.