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