pub struct TreeSitterLanguageConfig {
pub grammar: String,
pub query_pack_id: String,
pub enabled_by_default: bool,
}Expand description
Tree-sitter configuration for a language.
This crate keeps this as data only:
- It does not depend on tree-sitter libraries.
- Hosts (or integration crates) decide how to resolve
query_pack_idinto actual.scmtext.
Fields§
§grammar: StringTree-sitter grammar name (e.g. "rust").
query_pack_id: StringQuery pack id used to resolve highlights/folds queries (e.g. "rust").
enabled_by_default: boolWhether the host should enable Tree-sitter for this language by default.
Trait Implementations§
Source§impl Clone for TreeSitterLanguageConfig
impl Clone for TreeSitterLanguageConfig
Source§fn clone(&self) -> TreeSitterLanguageConfig
fn clone(&self) -> TreeSitterLanguageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TreeSitterLanguageConfig
impl Debug for TreeSitterLanguageConfig
impl Eq for TreeSitterLanguageConfig
Source§impl PartialEq for TreeSitterLanguageConfig
impl PartialEq for TreeSitterLanguageConfig
Source§fn eq(&self, other: &TreeSitterLanguageConfig) -> bool
fn eq(&self, other: &TreeSitterLanguageConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TreeSitterLanguageConfig
Auto Trait Implementations§
impl Freeze for TreeSitterLanguageConfig
impl RefUnwindSafe for TreeSitterLanguageConfig
impl Send for TreeSitterLanguageConfig
impl Sync for TreeSitterLanguageConfig
impl Unpin for TreeSitterLanguageConfig
impl UnsafeUnpin for TreeSitterLanguageConfig
impl UnwindSafe for TreeSitterLanguageConfig
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