pub struct DjangoLexer<'config> { /* private fields */ }Implementations§
Source§impl<'config> DjangoLexer<'config>
impl<'config> DjangoLexer<'config>
pub fn new(config: &'config DjangoLanguage) -> Self
Trait Implementations§
Source§impl<'config> Clone for DjangoLexer<'config>
impl<'config> Clone for DjangoLexer<'config>
Source§fn clone(&self) -> DjangoLexer<'config>
fn clone(&self) -> DjangoLexer<'config>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'config> Lexer<DjangoLanguage> for DjangoLexer<'config>
impl<'config> Lexer<DjangoLanguage> for DjangoLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
_changed: usize,
_cache: IncrementalCache<'_, DjangoLanguage>,
) -> LexOutput<DjangoLanguage>
fn lex_incremental( &self, source: impl Source, _changed: usize, _cache: IncrementalCache<'_, DjangoLanguage>, ) -> LexOutput<DjangoLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for DjangoLexer<'config>
impl<'config> RefUnwindSafe for DjangoLexer<'config>
impl<'config> Send for DjangoLexer<'config>
impl<'config> Sync for DjangoLexer<'config>
impl<'config> Unpin for DjangoLexer<'config>
impl<'config> UnwindSafe for DjangoLexer<'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