pub struct BitsReader { /* private fields */ }Implementations§
Source§impl BitsReader
impl BitsReader
pub fn new(reader: BytesReader) -> Self
pub fn extend_data(&mut self, bytes: BytesMut)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn read_byte(&mut self) -> Result<u8, BitError>
pub fn read_bit(&mut self) -> Result<u8, BitError>
pub fn read_n_bits(&mut self, n: usize) -> Result<u64, BitError>
pub fn bits_aligment_8(&mut self)
Auto Trait Implementations§
impl Freeze for BitsReader
impl RefUnwindSafe for BitsReader
impl Send for BitsReader
impl Sync for BitsReader
impl Unpin for BitsReader
impl UnwindSafe for BitsReader
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