pub struct SimpleStreamingLexer { /* private fields */ }Expand description
A simple streaming lexer for vexy_json
Implementations§
Source§impl SimpleStreamingLexer
impl SimpleStreamingLexer
Sourcepub fn new() -> SimpleStreamingLexer
pub fn new() -> SimpleStreamingLexer
Create a new streaming lexer with default options
Sourcepub fn with_options(options: ParserOptions) -> SimpleStreamingLexer
pub fn with_options(options: ParserOptions) -> SimpleStreamingLexer
Create a new streaming lexer with custom options
Sourcepub fn next_token(&mut self) -> Option<(Token, Span)>
pub fn next_token(&mut self) -> Option<(Token, Span)>
Get the next token if available
Sourcepub fn has_tokens(&self) -> bool
pub fn has_tokens(&self) -> bool
Check if there are pending tokens
Trait Implementations§
Source§impl Clone for SimpleStreamingLexer
impl Clone for SimpleStreamingLexer
Source§fn clone(&self) -> SimpleStreamingLexer
fn clone(&self) -> SimpleStreamingLexer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleStreamingLexer
impl Debug for SimpleStreamingLexer
Source§impl Default for SimpleStreamingLexer
impl Default for SimpleStreamingLexer
Source§fn default() -> SimpleStreamingLexer
fn default() -> SimpleStreamingLexer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleStreamingLexer
impl RefUnwindSafe for SimpleStreamingLexer
impl Send for SimpleStreamingLexer
impl Sync for SimpleStreamingLexer
impl Unpin for SimpleStreamingLexer
impl UnsafeUnpin for SimpleStreamingLexer
impl UnwindSafe for SimpleStreamingLexer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more