pub struct Reader<T> { /* private fields */ }Implementations§
Source§impl<T> Reader<T>
impl<T> Reader<T>
pub fn new(data: T) -> Self
pub fn reset(&mut self)
pub fn remaining(&self) -> usize
pub fn skip(&mut self, n: usize) -> Result<()>
pub fn is_end(&self) -> bool
pub fn read_byte(&mut self) -> Result<u8>
pub fn read_bytes(&mut self, n: usize) -> Result<&[u8]>
pub fn read_all_bytes(&mut self) -> Result<&[u8]>
pub fn read_bytes_into(&mut self, dst: &mut [u8]) -> Result<()>
Auto Trait Implementations§
impl<T> Freeze for Reader<T>where
T: Freeze,
impl<T> RefUnwindSafe for Reader<T>where
T: RefUnwindSafe,
impl<T> Send for Reader<T>where
T: Send,
impl<T> Sync for Reader<T>where
T: Sync,
impl<T> Unpin for Reader<T>where
T: Unpin,
impl<T> UnwindSafe for Reader<T>where
T: 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