pub struct PythonLanguage;Expand description
Python language support
Trait Implementations§
Source§impl LanguageSupport for PythonLanguage
impl LanguageSupport for PythonLanguage
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 decorations_query(&self) -> Option<&'static str>
fn decorations_query(&self) -> Option<&'static str>
Decorations query (optional, used by markdown)
Source§fn injections_query(&self) -> Option<&'static str>
fn injections_query(&self) -> Option<&'static str>
Injections query for embedded languages (optional)
Auto Trait Implementations§
impl Freeze for PythonLanguage
impl RefUnwindSafe for PythonLanguage
impl Send for PythonLanguage
impl Sync for PythonLanguage
impl Unpin for PythonLanguage
impl UnwindSafe for PythonLanguage
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