pub(crate) struct BitReader<R> {
    reader: R,
    buffer: u64,
    nbits: u8,
}Fields§
§reader: R§buffer: u64§nbits: u8Implementations§
Source§impl<R: BufRead> BitReader<R>
 
impl<R: BufRead> BitReader<R>
const fn new(reader: R) -> Self
Sourcepub(crate) fn fill(&mut self) -> Result<(), DecodingError>
 
pub(crate) fn fill(&mut self) -> Result<(), DecodingError>
Fills the buffer with bits from the input stream.
After this function, the internal buffer will contain 64-bits or have reached the end of the input stream.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for BitReader<R>where
    R: Freeze,
impl<R> RefUnwindSafe for BitReader<R>where
    R: RefUnwindSafe,
impl<R> Send for BitReader<R>where
    R: Send,
impl<R> Sync for BitReader<R>where
    R: Sync,
impl<R> Unpin for BitReader<R>where
    R: Unpin,
impl<R> UnwindSafe for BitReader<R>where
    R: 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