pub struct Lexer { /* private fields */ }
Expand description
The Texlang lexer
Implementations§
source§impl Lexer
impl Lexer
sourcepub fn next<C: Config>(
&mut self,
config: &C,
cs_name_interner: &mut CsNameInterner,
report_end_of_line: bool
) -> Result
pub fn next<C: Config>( &mut self, config: &C, cs_name_interner: &mut CsNameInterner, report_end_of_line: bool ) -> Result
Get the next token.
sourcepub fn end(&mut self)
pub fn end(&mut self)
Marks the input as ended.
Subsequent invocations of Lexer::next
will return Result::EndOfInput
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lexer
impl<'de> Deserialize<'de> for Lexer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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