@@ -28,7 +28,7 @@ use std::os::fd::AsRawFd;
2828#[ cfg( all( windows, feature = "std" ) ) ]
2929use std:: os:: windows:: io:: AsRawHandle ;
3030
31- use streaming_iterator:: { StreamingIterator , StreamingIteratorMut } ;
31+ pub use streaming_iterator:: { StreamingIterator , StreamingIteratorMut } ;
3232use tree_sitter_language:: LanguageFn ;
3333
3434#[ cfg( feature = "wasm" ) ]
@@ -2962,6 +2962,10 @@ impl QueryCursor {
29622962 /// captures. Because multiple patterns can match the same set of nodes,
29632963 /// one match may contain captures that appear *before* some of the
29642964 /// captures from a previous match.
2965+ ///
2966+ /// Iterating over a `QueryMatches` object requires the `StreamingIterator`
2967+ /// or `StreamingIteratorMut` trait to be in scope. This can be done via
2968+ /// `use tree_sitter::StreamingIterator` or `use tree_sitter::StreamingIteratorMut`
29652969 #[ doc( alias = "ts_query_cursor_exec" ) ]
29662970 pub fn matches < ' query , ' cursor : ' query , ' tree , T : TextProvider < I > , I : AsRef < [ u8 ] > > (
29672971 & ' cursor mut self ,
@@ -3045,6 +3049,10 @@ impl QueryCursor {
30453049 ///
30463050 /// This is useful if you don't care about which pattern matched, and just
30473051 /// want a single, ordered sequence of captures.
3052+ ///
3053+ /// Iterating over a `QueryCaptures` object requires the `StreamingIterator`
3054+ /// or `StreamingIteratorMut` trait to be in scope. This can be done via
3055+ /// `use tree_sitter::StreamingIterator` or `use tree_sitter::StreamingIteratorMut`
30483056 #[ doc( alias = "ts_query_cursor_exec" ) ]
30493057 pub fn captures < ' query , ' cursor : ' query , ' tree , T : TextProvider < I > , I : AsRef < [ u8 ] > > (
30503058 & ' cursor mut self ,
0 commit comments