pub struct StreamReader<'a, R>where
R: Read + 'a,{ /* private fields */ }Implementations§
Source§impl<'a, R> StreamReader<'a, R>where
R: Read + 'a,
impl<'a, R> StreamReader<'a, R>where
R: Read + 'a,
pub fn new(reader: &'a mut R) -> StreamReader<'a, R>
pub fn get_bit_from_lsb(&mut self) -> Result<u8, ReadError>
pub fn get_bits_from_lsb(&mut self, size: usize) -> Result<u8, ReadError>
pub fn read_once(&mut self) -> Result<Option<u8>, ReadError>
pub fn read_u8(&mut self) -> Result<u8, ReadError>
pub fn read_u16(&mut self) -> Result<u16, ReadError>
pub fn read_u32(&mut self) -> Result<u32, ReadError>
pub fn read_u64(&mut self) -> Result<u64, ReadError>
pub fn read_until(&mut self, size: usize) -> Result<Vec<u8>, ReadError>
pub fn skip_bits(&mut self, count: usize) -> Result<(), ReadError>
pub fn skip_surplus_bits(&mut self)
Auto Trait Implementations§
impl<'a, R> Freeze for StreamReader<'a, R>
impl<'a, R> RefUnwindSafe for StreamReader<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for StreamReader<'a, R>where
R: Send,
impl<'a, R> Sync for StreamReader<'a, R>where
R: Sync,
impl<'a, R> Unpin for StreamReader<'a, R>
impl<'a, R> !UnwindSafe for StreamReader<'a, R>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more