pub struct RustLanguage;Expand description
Rust language support
Trait Implementations§
Source§impl LanguageSupport for RustLanguage
impl LanguageSupport for RustLanguage
Source§fn language_id(&self) -> &'static str
fn language_id(&self) -> &'static str
Unique identifier for this language (e.g., “rust”, “python”)
Source§fn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
File extensions that map to this language (e.g., [“rs”] for Rust)
Source§fn tree_sitter_language(&self) -> Language
fn tree_sitter_language(&self) -> Language
The tree-sitter Language for this grammar
Source§fn highlights_query(&self) -> &'static str
fn highlights_query(&self) -> &'static str
Highlight query (required)
Source§fn folds_query(&self) -> Option<&'static str>
fn folds_query(&self) -> Option<&'static str>
Fold query (optional)
Source§fn textobjects_query(&self) -> Option<&'static str>
fn textobjects_query(&self) -> Option<&'static str>
Text objects query (optional)
Source§fn injections_query(&self) -> Option<&'static str>
fn injections_query(&self) -> Option<&'static str>
Injections query for embedded languages (optional)
Source§fn context_query(&self) -> Option<&'static str>
fn context_query(&self) -> Option<&'static str>
Context query for scope detection (optional) Read more
Source§fn decorations_query(&self) -> Option<&'static str>
fn decorations_query(&self) -> Option<&'static str>
Decorations query (optional, used by markdown)
Auto Trait Implementations§
impl Freeze for RustLanguage
impl RefUnwindSafe for RustLanguage
impl Send for RustLanguage
impl Sync for RustLanguage
impl Unpin for RustLanguage
impl UnwindSafe for RustLanguage
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