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