pub struct Remainder<'a> { /* private fields */ }Expand description
Contains information about unread data remaining in a bit reader.
Implementations§
Source§impl<'a> Remainder<'a>
impl<'a> Remainder<'a>
Sourcepub fn partial_byte(&self) -> u8
pub fn partial_byte(&self) -> u8
Returns the partially consumed byte containing unread bits.
When byte-aligned, this will be 0. When not byte-aligned, this contains the remaining bits from the current byte being processed, right-aligned.
Sourcepub fn partial_bits(&self) -> u8
pub fn partial_bits(&self) -> u8
Returns the number of valid bits in the partial byte.
This is always in the range [0, 7]. When 0, the reader is byte-aligned and partial_byte() will return 0.
Trait Implementations§
impl<'a> Eq for Remainder<'a>
impl<'a> StructuralPartialEq for Remainder<'a>
Auto Trait Implementations§
impl<'a> Freeze for Remainder<'a>
impl<'a> RefUnwindSafe for Remainder<'a>
impl<'a> Send for Remainder<'a>
impl<'a> Sync for Remainder<'a>
impl<'a> Unpin for Remainder<'a>
impl<'a> UnwindSafe for Remainder<'a>
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