pub struct Lexer<'json> { /* private fields */ }
Implementations§
Source§impl<'json> Lexer<'json>
impl<'json> Lexer<'json>
pub fn new(input: &'json [u8]) -> Self
pub fn consume_string_until_end_of_array( &mut self, array_start_index: usize, nested_array: bool, ) -> Option<&'json str>
pub fn reader_index(&self) -> usize
pub fn reader(&mut self) -> &SliceRead<'json>
pub fn set_reader_index(&mut self, index: usize)
pub fn consume_string_until_end_of_object( &mut self, should_return: bool, ) -> Option<&'json str>
pub fn next_token(&mut self) -> Option<Token<'json>>
Auto Trait Implementations§
impl<'json> Freeze for Lexer<'json>
impl<'json> RefUnwindSafe for Lexer<'json>
impl<'json> Send for Lexer<'json>
impl<'json> Sync for Lexer<'json>
impl<'json> Unpin for Lexer<'json>
impl<'json> UnwindSafe for Lexer<'json>
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