pub struct BytesIn<'a> { /* private fields */ }Implementations§
Source§impl<'a> BytesIn<'a>
impl<'a> BytesIn<'a>
pub const fn new(data: &'a [u8]) -> Self
pub fn is_empty(&self) -> bool
pub fn offset(&self) -> usize
pub fn byte(&mut self) -> Result<u8, Error>
pub fn slice(&mut self, len: usize) -> Result<&'a [u8], Error>
pub fn arr<const N: usize>(&mut self) -> Result<[u8; N], Error>
pub fn remaining(&mut self) -> &'a [u8]
pub fn remaining_byte(&mut self) -> Result<u8, Error>
pub fn remaining_arr<const N: usize>(&mut self) -> Result<[u8; N], Error>
Auto Trait Implementations§
impl<'a> Freeze for BytesIn<'a>
impl<'a> RefUnwindSafe for BytesIn<'a>
impl<'a> Send for BytesIn<'a>
impl<'a> Sync for BytesIn<'a>
impl<'a> Unpin for BytesIn<'a>
impl<'a> UnwindSafe for BytesIn<'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