pub struct LeanLexer;Expand description
Lean 词法分析器
Implementations§
Trait Implementations§
Source§impl Lexer<LeanLanguage> for LeanLexer
impl Lexer<LeanLanguage> for LeanLexer
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
impl Copy for LeanLexer
Auto Trait Implementations§
impl Freeze for LeanLexer
impl RefUnwindSafe for LeanLexer
impl Send for LeanLexer
impl Sync for LeanLexer
impl Unpin for LeanLexer
impl UnwindSafe for LeanLexer
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