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]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more