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