pub struct LuaLanguage;Expand description
Lua 语言定义
Implementations§
Source§impl LuaLanguage
impl LuaLanguage
Trait Implementations§
Source§impl Clone for LuaLanguage
impl Clone for LuaLanguage
Source§fn clone(&self) -> LuaLanguage
fn clone(&self) -> LuaLanguage
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 Debug for LuaLanguage
impl Debug for LuaLanguage
Source§impl Default for LuaLanguage
impl Default for LuaLanguage
Source§impl Language for LuaLanguage
impl Language for LuaLanguage
Source§type SyntaxKind = LuaSyntaxKind
type SyntaxKind = LuaSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<LuaLanguage> for LuaLexer<'config>
impl<'config> Lexer<LuaLanguage> for LuaLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
_offset: usize,
_cache: IncrementalCache<'_, LuaLanguage>,
) -> LexOutput<LuaLanguage>
fn lex_incremental( &self, source: impl Source, _offset: usize, _cache: IncrementalCache<'_, LuaLanguage>, ) -> LexOutput<LuaLanguage>
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 Freeze for LuaLanguage
impl RefUnwindSafe for LuaLanguage
impl Send for LuaLanguage
impl Sync for LuaLanguage
impl Unpin for LuaLanguage
impl UnwindSafe for LuaLanguage
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