pub struct TreeSitterProcessor {
pub split_graphemes: bool,
pub exclude_kinds: Option<HashSet<String>>,
pub include_kinds: Option<HashSet<String>>,
}
Expand description
The configuration options for processing tree-sitter output.
Fields§
§split_graphemes: bool
Whether we should split the nodes graphemes.
If this is disabled, then the direct tree-sitter nodes will be used and diffs will be less granular. This has the advantage of being faster and using less memory.
exclude_kinds: Option<HashSet<String>>
The kinds of nodes to exclude from processing. This takes precedence over include_kinds
.
This is a set of strings that correspond to the tree sitter node types.
include_kinds: Option<HashSet<String>>
The kinds of nodes to explicitly include when processing. The nodes specified here will be overridden by the
nodes specified in exclude_kinds
.
This is a set of strings that correspond to the tree sitter node types.
Implementations§
Trait Implementations§
source§impl Clone for TreeSitterProcessor
impl Clone for TreeSitterProcessor
source§fn clone(&self) -> TreeSitterProcessor
fn clone(&self) -> TreeSitterProcessor
Returns a copy 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 TreeSitterProcessor
impl Debug for TreeSitterProcessor
source§impl Default for TreeSitterProcessor
impl Default for TreeSitterProcessor
source§impl<'de> Deserialize<'de> for TreeSitterProcessor
impl<'de> Deserialize<'de> for TreeSitterProcessor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TreeSitterProcessor> for TreeSitterProcessor
impl PartialEq<TreeSitterProcessor> for TreeSitterProcessor
source§fn eq(&self, other: &TreeSitterProcessor) -> bool
fn eq(&self, other: &TreeSitterProcessor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TreeSitterProcessor
impl Serialize for TreeSitterProcessor
impl Eq for TreeSitterProcessor
impl StructuralEq for TreeSitterProcessor
impl StructuralPartialEq for TreeSitterProcessor
Auto Trait Implementations§
impl RefUnwindSafe for TreeSitterProcessor
impl Send for TreeSitterProcessor
impl Sync for TreeSitterProcessor
impl Unpin for TreeSitterProcessor
impl UnwindSafe for TreeSitterProcessor
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