pub struct Reader<'a>(pub &'a [u8]);Tuple Fields§
§0: &'a [u8]Implementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn take(&mut self, n: usize) -> Result<&'a [u8]>
pub fn array<const N: usize>(&mut self) -> Result<[u8; N]>
pub fn byte(&mut self) -> Result<u8>
pub fn flag(&mut self) -> Result<bool>
pub fn u64(&mut self) -> Result<u64>
pub fn bytes(&mut self, maximum: u64) -> Result<&'a [u8]>
pub fn text(&mut self) -> Result<String>
pub fn end(self) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
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> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'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