Struct tree_sitter::QueryProperty
source · pub struct QueryProperty {
pub key: Box<str>,
pub value: Option<Box<str>>,
pub capture_id: Option<usize>,
}
Expand description
A key-value pair associated with a particular pattern in a Query
.
Fields§
§key: Box<str>
§value: Option<Box<str>>
§capture_id: Option<usize>
Implementations§
Trait Implementations§
source§impl Debug for QueryProperty
impl Debug for QueryProperty
source§impl PartialEq<QueryProperty> for QueryProperty
impl PartialEq<QueryProperty> for QueryProperty
source§fn eq(&self, other: &QueryProperty) -> bool
fn eq(&self, other: &QueryProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.