pub struct Reader<'a> { /* private fields */ }
Expand description
Read from a byte slice.
Implementations
sourceimpl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn init(bytes: &[u8]) -> Reader<'_>
pub fn rest(&mut self) -> &[u8]
pub fn take(&mut self, len: usize) -> Option<&[u8]>
pub fn any_left(&self) -> bool
pub fn left(&self) -> usize
pub fn used(&self) -> usize
pub fn sub(&mut self, len: usize) -> Option<Reader<'_>>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'a>
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more