pub struct RubyLanguage;Expand description
Ruby 语言实现
Trait Implementations§
Source§impl Default for RubyLanguage
impl Default for RubyLanguage
Source§fn default() -> RubyLanguage
fn default() -> RubyLanguage
Returns the “default value” for a type. Read more
Source§impl Language for RubyLanguage
impl Language for RubyLanguage
Source§type SyntaxKind = RubySyntaxKind
type SyntaxKind = RubySyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<RubyLanguage> for RubyLexer<'config>
impl<'config> Lexer<RubyLanguage> for RubyLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, RubyLanguage>,
) -> LexOutput<RubyLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, RubyLanguage>, ) -> LexOutput<RubyLanguage>
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 RubyLanguage
impl RefUnwindSafe for RubyLanguage
impl Send for RubyLanguage
impl Sync for RubyLanguage
impl Unpin for RubyLanguage
impl UnwindSafe for RubyLanguage
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