pub struct BufBitReader<E: Endianness, WR: WordRead, RP: ReadParams = DefaultReadParams>
where WR::Word: DoubleType,
{ /* private fields */ }
Expand description

An implementation of BitRead and BitSeek for a WordRead and a WordSeek.

This implementation uses a bit buffer to store bits that are not yet read. The buffer is sized as twice the word size of the underlying WordRead. Typically, the best choice is to have a buffer that is sized as usize, which means that the word of the underlying WordRead should be half of that (i.e., u32 for a 64-bit architecture). However, results will vary depending on the CPU.

The peek word is equal to the bit buffer. The value returned by peek_bits contains at least as many bits as the word size plus one (extended with zeros beyond end of stream).

This implementation is usually faster than BitReader.

The additional type parameter RP is used to select the parameters for the instantanous codes, but the casual user should be happy with the default value. See ReadParams for more details.

Implementations§

source§

impl<E: Endianness, WR: WordRead, RP: ReadParams> BufBitReader<E, WR, RP>
where WR::Word: DoubleType,

source

pub fn new(backend: WR) -> Self

Create a new BufBitReader around a WordRead.

§Example
use dsi_bitstream::prelude::*;
let words: [u32; 2] = [0x0043b59f, 0xccf16077];
let word_reader = MemWordReader::new(&words);
let mut buf_bit_reader = <BufBitReader<BE, _>>::new(word_reader);
source

pub fn into_inner(self) -> Result<WR, Infallible>

Return the backend, consuming this reader.

Trait Implementations§

source§

impl<WR: WordRead, RP: ReadParams> BitRead<BigEndian> for BufBitReader<BE, WR, RP>

§

type Error = <WR as WordRead>::Error

§

type PeekWord = <<WR as WordRead>::Word as DoubleType>::DoubleType

The type we can read from the stream without advancing.
source§

fn peek_bits(&mut self, n_bits: usize) -> Result<Self::PeekWord, Self::Error>

Peeks at n bits without advancing the stream position. n must be nonzero, and at most PeekWord::BITS.
source§

fn read_bits(&mut self, n_bits: usize) -> Result<u64, Self::Error>

Read n bits and return them in the lowest bits. Read more
source§

fn read_unary(&mut self) -> Result<u64, Self::Error>

Read a unary code.
source§

fn skip_bits(&mut self, n_bits: usize) -> Result<(), Self::Error>

Skip n bits from the stream. Read more
source§

fn copy_to<F: Endianness, W: BitWrite<F>>( &mut self, bit_write: &mut W, n: u64 ) -> Result<(), CopyError<Self::Error, W::Error>>

source§

impl<WR: WordRead, RP: ReadParams> BitRead<LittleEndian> for BufBitReader<LE, WR, RP>

§

type Error = <WR as WordRead>::Error

§

type PeekWord = <<WR as WordRead>::Word as DoubleType>::DoubleType

The type we can read from the stream without advancing.
source§

fn peek_bits(&mut self, n_bits: usize) -> Result<Self::PeekWord, Self::Error>

Peeks at n bits without advancing the stream position. n must be nonzero, and at most PeekWord::BITS.
source§

fn read_bits(&mut self, n_bits: usize) -> Result<u64, Self::Error>

Read n bits and return them in the lowest bits. Read more
source§

fn read_unary(&mut self) -> Result<u64, Self::Error>

Read a unary code.
source§

fn skip_bits(&mut self, n_bits: usize) -> Result<(), Self::Error>

Skip n bits from the stream. Read more
source§

fn copy_to<F: Endianness, W: BitWrite<F>>( &mut self, bit_write: &mut W, n: u64 ) -> Result<(), CopyError<Self::Error, W::Error>>

source§

impl<E: Error + Send + Sync + 'static, WR: WordRead<Error = E> + WordSeek<Error = E>, RP: ReadParams> BitSeek for BufBitReader<BE, WR, RP>
where WR::Word: DoubleType,

§

type Error = <WR as WordSeek>::Error

source§

fn bit_pos(&mut self) -> Result<u64, Self::Error>

Get the current position in bits from the start of the stream.
source§

fn set_bit_pos(&mut self, bit_index: u64) -> Result<(), Self::Error>

Set the current position in bits from the start of the stream to bit_pos. Read more
source§

impl<E: Error + Send + Sync + 'static, WR: WordRead<Error = E> + WordSeek<Error = E>, RP: ReadParams> BitSeek for BufBitReader<LE, WR, RP>
where WR::Word: DoubleType,

§

type Error = <WR as WordSeek>::Error

source§

fn bit_pos(&mut self) -> Result<u64, Self::Error>

Get the current position in bits from the start of the stream.
source§

fn set_bit_pos(&mut self, bit_index: u64) -> Result<(), Self::Error>

Set the current position in bits from the start of the stream to bit_pos. Read more
source§

impl<E: Endianness, WR: WordRead + Clone, RP: ReadParams> Clone for BufBitReader<E, WR, RP>
where WR::Word: DoubleType,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<E: Endianness, WR, RP: ReadParams> CopyType for BufBitReader<E, WR, RP>

§

type Copy = False

source§

impl<E: Debug + Endianness, WR: Debug + WordRead, RP: Debug + ReadParams> Debug for BufBitReader<E, WR, RP>
where WR::Word: DoubleType,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<WR: WordRead> DeltaRead<BigEndian> for BufBitReader<BigEndian, WR, DefaultReadParams>

source§

fn read_delta(&mut self) -> Result<u64, Self::Error>

source§

impl<WR: WordRead> DeltaRead<LittleEndian> for BufBitReader<LittleEndian, WR, DefaultReadParams>

source§

fn read_delta(&mut self) -> Result<u64, Self::Error>

source§

impl<WR: WordRead> GammaRead<BigEndian> for BufBitReader<BigEndian, WR, DefaultReadParams>

source§

fn read_gamma(&mut self) -> Result<u64, Self::Error>

source§

impl<WR: WordRead> GammaRead<LittleEndian> for BufBitReader<LittleEndian, WR, DefaultReadParams>

source§

fn read_gamma(&mut self) -> Result<u64, Self::Error>

source§

impl<E: Endianness, WR, RP: ReadParams> MemDbgImpl for BufBitReader<E, WR, RP>

source§

fn _mem_dbg_rec_on( &self, _memdbg_writer: &mut impl Write, _memdbg_total_size: usize, _memdbg_max_depth: usize, _memdbg_prefix: &mut String, _memdbg_is_last: bool, _memdbg_flags: DbgFlags ) -> Result

source§

impl<E: Endianness, WR, RP: ReadParams> MemSize for BufBitReader<E, WR, RP>

source§

fn mem_size(&self, _memsize_flags: SizeFlags) -> usize

Return the (recursively computed) overall memory size of the structure in bytes.
source§

impl<WR: WordRead> ZetaRead<BigEndian> for BufBitReader<BigEndian, WR, DefaultReadParams>

source§

fn read_zeta(&mut self, k: u64) -> Result<u64, Self::Error>

source§

fn read_zeta3(&mut self) -> Result<u64, Self::Error>

source§

impl<WR: WordRead> ZetaRead<LittleEndian> for BufBitReader<LittleEndian, WR, DefaultReadParams>

source§

fn read_zeta(&mut self, k: u64) -> Result<u64, Self::Error>

source§

fn read_zeta3(&mut self) -> Result<u64, Self::Error>

Auto Trait Implementations§

§

impl<E, WR, RP> Freeze for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static, WR: Freeze, <<WR as WordRead>::Word as DoubleType>::DoubleType: Freeze,

§

impl<E, WR, RP> RefUnwindSafe for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static + RefUnwindSafe, WR: RefUnwindSafe, <<WR as WordRead>::Word as DoubleType>::DoubleType: RefUnwindSafe, RP: RefUnwindSafe,

§

impl<E, WR, RP> Send for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static + Send, WR: Send, RP: Send,

§

impl<E, WR, RP> Sync for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static + Sync, WR: Sync, RP: Sync,

§

impl<E, WR, RP> Unpin for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static + Unpin, WR: Unpin, <<WR as WordRead>::Word as DoubleType>::DoubleType: Unpin, RP: Unpin,

§

impl<E, WR, RP> UnwindSafe for BufBitReader<E, WR, RP>
where <WR as WordRead>::Word: DowncastableFrom<<<WR as WordRead>::Word as DoubleType>::DoubleType> + Sized + FromBytes + AsBytes + Default + Sync + Send + ToBytes + FiniteRangeNumber<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Atomic = False> + Number + SubAssign + Sub + RemAssign + Rem + MulAssign + Mul + DivAssign + Div + AddAssign + Add + PartialEq + PartialOrd + Debug + Display + Clone + Copy + IsAtomic + Integer<Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word, Output = <WR as WordRead>::Word> + ShrAssign<isize> + Shr<isize> + ShlAssign<isize> + Shl<isize> + ShrAssign<i128> + Shr<i128> + ShlAssign<i128> + Shl<i128> + ShrAssign<i64> + Shr<i64> + ShlAssign<i64> + Shl<i64> + ShrAssign<i32> + Shr<i32> + ShlAssign<i32> + Shl<i32> + ShrAssign<i16> + Shr<i16> + ShlAssign<i16> + Shl<i16> + ShrAssign<i8> + Shr<i8> + ShlAssign<i8> + Shl<i8> + ShrAssign<usize> + Shr<usize> + ShlAssign<usize> + Shl<usize> + ShrAssign<u128> + Shr<u128> + ShlAssign<u128> + Shl<u128> + ShrAssign<u64> + Shr<u64> + ShlAssign<u64> + Shl<u64> + ShrAssign<u32> + Shr<u32> + ShlAssign<u32> + Shl<u32> + ShrAssign<u16> + Shr<u16> + ShlAssign<u16> + Shl<u16> + ShrAssign<u8> + Shr<u8> + ShlAssign<u8> + Shl<u8> + ShrAssign + Shr + ShlAssign + Shl + Not + BitXorAssign + BitXor + BitOrAssign + BitOr + BitAndAssign + BitAnd + Binary + Eq + Ord + LowerHex + IsSigned, E: Endianness + 'static + UnwindSafe, WR: UnwindSafe, <<WR as WordRead>::Word as DoubleType>::DoubleType: UnwindSafe, RP: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CastableFrom<T> for T

source§

fn cast_from(value: T) -> T

Call Self as W
source§

impl<T, U> CastableInto<U> for T
where U: CastableFrom<T>,

source§

fn cast(self) -> U

Call W::cast_from(self)
source§

impl<B> DeltaReadParam<BigEndian> for B

source§

fn read_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<BigEndian>>::Error>

source§

impl<B> DeltaReadParam<LittleEndian> for B

source§

fn read_delta_param<const USE_DELTA_TABLE: bool, const USE_GAMMA_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<LittleEndian>>::Error>

source§

impl<T> DowncastableFrom<T> for T

source§

fn downcast_from(value: T) -> T

Truncate the current UnsignedInt to a possibly smaller size
source§

impl<T, U> DowncastableInto<U> for T
where U: DowncastableFrom<T>,

source§

fn downcast(self) -> U

Call W::downcast_from(self)
source§

impl<E, B> ExpGolombRead<E> for B
where E: Endianness, B: BitRead<E> + GammaRead<E>,

source§

fn read_exp_golomb(&mut self, k: usize) -> Result<u64, Self::Error>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<B> GammaReadParam<BigEndian> for B
where B: BitRead<BigEndian>,

source§

fn read_gamma_param<const USE_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<BigEndian>>::Error>

source§

impl<B> GammaReadParam<LittleEndian> for B

source§

fn read_gamma_param<const USE_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<LittleEndian>>::Error>

source§

impl<E, B> GolombRead<E> for B
where E: Endianness, B: BitRead<E>,

source§

fn read_golomb(&mut self, b: u64) -> Result<u64, Self::Error>

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> MemDbg for T
where T: MemDbgImpl,

source§

fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>

Write to stdout debug infos about the structure memory usage, expanding all levels of nested structures.
source§

fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags ) -> Result<(), Error>

Write to a core::fmt::Write debug infos about the structure memory usage, expanding all levels of nested structures.
source§

fn mem_dbg_depth( &self, total_size: usize, max_depth: usize, flags: DbgFlags ) -> Result<(), Error>

Write to stdout debug infos about the structure memory usage, but expanding only up to max_depth levels of nested structures.
source§

fn mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, flags: DbgFlags ) -> Result<(), Error>

Write to a core::fmt::Write debug infos about the structure memory usage, but expanding only up to max_depth levels of nested structures.
source§

impl<E, B> MinimalBinaryRead<E> for B
where E: Endianness, B: BitRead<E>,

source§

fn read_minimal_binary(&mut self, max: u64) -> Result<u64, Self::Error>

source§

impl<E, B> RiceRead<E> for B
where E: Endianness, B: BitRead<E>,

source§

fn read_rice(&mut self, log2_b: usize) -> Result<u64, Self::Error>

source§

impl<T> Splat<T> for T

source§

fn splat(value: T) -> T

source§

impl<T> To<T> for T

source§

fn to(self) -> T

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UpcastableFrom<T> for T

source§

fn upcast_from(value: T) -> T

Extend the current UnsignedInt to a possibly bigger size.
source§

impl<T, U> UpcastableInto<U> for T
where U: UpcastableFrom<T>,

source§

fn upcast(self) -> U

Call W::upcast_from(self)
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<B> ZetaReadParam<BigEndian> for B
where B: BitRead<BigEndian>,

source§

fn read_zeta_param( &mut self, k: u64 ) -> Result<u64, <B as BitRead<BigEndian>>::Error>

source§

fn read_zeta3_param<const USE_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<BigEndian>>::Error>

source§

impl<B> ZetaReadParam<LittleEndian> for B

source§

fn read_zeta_param( &mut self, k: u64 ) -> Result<u64, <B as BitRead<LittleEndian>>::Error>

source§

fn read_zeta3_param<const USE_TABLE: bool>( &mut self ) -> Result<u64, <B as BitRead<LittleEndian>>::Error>