pub struct LeanLexer<'config> { /* private fields */ }Expand description
Lean 词法分析器
Implementations§
Trait Implementations§
Source§impl<'config> Lexer<LeanLanguage> for LeanLexer<'config>
impl<'config> Lexer<LeanLanguage> for LeanLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<LeanLanguage>,
) -> LexOutput<LeanLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<LeanLanguage>, ) -> LexOutput<LeanLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for LeanLexer<'config>
impl<'config> RefUnwindSafe for LeanLexer<'config>
impl<'config> Send for LeanLexer<'config>
impl<'config> Sync for LeanLexer<'config>
impl<'config> Unpin for LeanLexer<'config>
impl<'config> UnwindSafe for LeanLexer<'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