pub struct DotLexer<'config> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'config> Lexer<DotLanguage> for DotLexer<'config>
impl<'config> Lexer<DotLanguage> for DotLexer<'config>
Source§fn lex(&self, source: impl Source) -> LexOutput<DotLanguage>
fn lex(&self, source: impl Source) -> LexOutput<DotLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, DotLanguage>,
) -> LexOutput<DotLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, DotLanguage>, ) -> LexOutput<DotLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Auto Trait Implementations§
impl<'config> Freeze for DotLexer<'config>
impl<'config> RefUnwindSafe for DotLexer<'config>
impl<'config> Send for DotLexer<'config>
impl<'config> Sync for DotLexer<'config>
impl<'config> Unpin for DotLexer<'config>
impl<'config> UnwindSafe for DotLexer<'config>
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