pub struct Lexer { /* private fields */ }
Expand description
Jsonnet lexer
Implementations§
Source§impl Lexer
impl Lexer
Sourcepub fn tokenize(&mut self) -> Result<Vec<TokenWithPos>>
pub fn tokenize(&mut self) -> Result<Vec<TokenWithPos>>
Tokenize the entire input
Sourcepub fn next_token(&mut self) -> Result<TokenWithPos>
pub fn next_token(&mut self) -> Result<TokenWithPos>
Get the next token
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnwindSafe for Lexer
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