pub struct GetBitContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> GetBitContext<'a>
impl<'a> GetBitContext<'a>
pub fn new(buf: &'a [u8]) -> Self
pub fn bits_left(&self) -> isize
pub fn bits_read(&self) -> usize
pub fn align_to_byte(&mut self)
pub fn skip_bits(&mut self, n: usize) -> Result<()>
pub fn get_bits1(&mut self) -> Result<u32>
pub fn show_bits(&self, n: usize) -> Result<u32>
pub fn get_bits_long(&mut self, n: usize) -> Result<u32>
Trait Implementations§
Source§impl<'a> Clone for GetBitContext<'a>
impl<'a> Clone for GetBitContext<'a>
Source§fn clone(&self) -> GetBitContext<'a>
fn clone(&self) -> GetBitContext<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GetBitContext<'a>
impl<'a> RefUnwindSafe for GetBitContext<'a>
impl<'a> Send for GetBitContext<'a>
impl<'a> Sync for GetBitContext<'a>
impl<'a> Unpin for GetBitContext<'a>
impl<'a> UnwindSafe for GetBitContext<'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