pub struct LangConfig {
pub lang: &'static [&'static str],
pub grammar: fn() -> Language,
pub file_extensions: &'static [&'static str],
pub query: &'static str,
}Expand description
the language config
Fields§
§lang: &'static [&'static str]e.g.: [“Typescript”, “TSX”], [“Rust”]
grammar: fn() -> Languagetree-sitter grammar for this language
file_extensions: &'static [&'static str]file_extensions for this language
query: &'static strthe query used to extract the class, function definition
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LangConfig
impl RefUnwindSafe for LangConfig
impl Send for LangConfig
impl Sync for LangConfig
impl Unpin for LangConfig
impl UnwindSafe for LangConfig
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