pub struct ByteStream<'a> { /* private fields */ }Expand description
A cursor over a byte slice for PDF parsing.
Implementations§
Source§impl<'a> ByteStream<'a>
impl<'a> ByteStream<'a>
pub fn of(bytes: &'a [u8]) -> Self
pub fn move_to(&mut self, offset: usize)
pub fn next(&mut self) -> Option<u8>
pub fn peek(&self) -> Option<u8>
pub fn peek_ahead(&self, steps: usize) -> Option<u8>
pub fn done(&self) -> bool
pub fn offset(&self) -> usize
pub fn slice(&self, start: usize, end: usize) -> &'a [u8] ⓘ
pub fn position(&self) -> Position
pub fn remaining(&self) -> &'a [u8] ⓘ
Auto Trait Implementations§
impl<'a> Freeze for ByteStream<'a>
impl<'a> RefUnwindSafe for ByteStream<'a>
impl<'a> Send for ByteStream<'a>
impl<'a> Sync for ByteStream<'a>
impl<'a> Unpin for ByteStream<'a>
impl<'a> UnsafeUnpin for ByteStream<'a>
impl<'a> UnwindSafe for ByteStream<'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