pub trait QueryMatch<'query, 'tree: 'query>: Debug {
type Query: Query<Match<'query, 'tree> = Self>;
// Required methods
fn query(&self) -> &'query Self::Query;
fn raw(&self) -> &QueryMatch<'query, 'tree>;
fn into_raw(self) -> QueryMatch<'query, 'tree>;
// Provided methods
fn captures(&self) -> QueryMatchCaptures<'query, 'tree, Self::Query> { ... }
fn remove(self)
where Self: Sized,
'tree: 'query { ... }
}Expand description
A match from a Query with typed nodes
Required Associated Types§
Required Methods§
Sourcefn raw(&self) -> &QueryMatch<'query, 'tree>
fn raw(&self) -> &QueryMatch<'query, 'tree>
The underlying tree-sitter QueryMatch
Sourcefn into_raw(self) -> QueryMatch<'query, 'tree>
fn into_raw(self) -> QueryMatch<'query, 'tree>
Destruct into the underlying tree-sitter QueryMatch