pub struct Lexer<'a> {
pub pos: usize,
/* private fields */
}Fields§
§pos: usizeImplementations§
Source§impl<'a> Lexer<'a>
impl<'a> Lexer<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn with_pos(data: &'a [u8], pos: usize) -> Self
pub fn pos(&self) -> usize
pub fn set_pos(&mut self, pos: usize)
pub fn peek_byte(&self) -> Option<u8>
pub fn next_byte(&mut self) -> Option<u8>
pub fn skip_whitespace_and_comments(&mut self)
pub fn next_token(&mut self) -> PdfResult<Token>
Auto Trait Implementations§
impl<'a> Freeze for Lexer<'a>
impl<'a> RefUnwindSafe for Lexer<'a>
impl<'a> Send for Lexer<'a>
impl<'a> Sync for Lexer<'a>
impl<'a> Unpin for Lexer<'a>
impl<'a> UnsafeUnpin for Lexer<'a>
impl<'a> UnwindSafe for Lexer<'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