docs: clarify data returned by QueryCaptures during iteration
This commit is contained in:
parent
867433afd7
commit
767b5486c6
1 changed files with 3 additions and 0 deletions
|
|
@ -304,6 +304,9 @@ pub struct QueryMatches<'query, 'tree: 'query, T: TextProvider<I>, I: AsRef<[u8]
|
|||
}
|
||||
|
||||
/// A sequence of [`QueryCapture`]s associated with a given [`QueryCursor`].
|
||||
///
|
||||
/// During iteration, each element contains a [`QueryMatch`] and index. The index can
|
||||
/// be used to access the new capture inside of the [`QueryMatch::captures`]'s [`captures`].
|
||||
pub struct QueryCaptures<'query, 'tree: 'query, T: TextProvider<I>, I: AsRef<[u8]>> {
|
||||
ptr: *mut ffi::TSQueryCursor,
|
||||
query: &'query Query,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue