pub struct SliceBytes<'a> { /* private fields */ }Implementations§
Source§impl<'a> SliceBytes<'a>
impl<'a> SliceBytes<'a>
pub fn new(bytes: &'a [u8]) -> SliceBytes<'_>
Trait Implementations§
Source§impl<'a> Stream<u8> for SliceBytes<'a>
impl<'a> Stream<u8> for SliceBytes<'a>
fn peek(&mut self) -> Option<&u8>
fn next(&mut self) -> Option<&u8>
fn while_if<F>(&mut self, cond: F)
fn next_if<F>(&mut self, cond: F) -> bool
fn expect(&mut self, it: &[u8]) -> bool
fn position(&self) -> usize
fn finish(&self) -> bool
fn skip(&mut self)
fn skip_by(&mut self, size: usize)
fn anchor(&mut self)
fn read(&mut self) -> &[u8] ⓘ
Auto Trait Implementations§
impl<'a> Freeze for SliceBytes<'a>
impl<'a> RefUnwindSafe for SliceBytes<'a>
impl<'a> Send for SliceBytes<'a>
impl<'a> Sync for SliceBytes<'a>
impl<'a> Unpin for SliceBytes<'a>
impl<'a> UnwindSafe for SliceBytes<'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