Struct tree_sitter::QueryMatch
source · [−]pub struct QueryMatch<'cursor, 'tree> {
pub pattern_index: usize,
pub captures: &'cursor [QueryCapture<'tree>],
/* private fields */
}
Expand description
A match of a Query
to a particular set of Node
s.
Fields
pattern_index: usize
captures: &'cursor [QueryCapture<'tree>]
Implementations
Trait Implementations
Auto Trait Implementations
impl<'cursor, 'tree> RefUnwindSafe for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> !Send for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> !Sync for QueryMatch<'cursor, 'tree>
impl<'cursor, 'tree> Unpin for QueryMatch<'cursor, 'tree>where
'tree: 'cursor,
impl<'cursor, 'tree> UnwindSafe for QueryMatch<'cursor, 'tree>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more