Struct CaptureMatches
pub struct CaptureMatches<'r, 'h> { /* private fields */ }
An iterator over all non-overlapping capture matches in a haystack.
This iterator yields Captures values. The iterator stops when no more
matches can be found.
'r is the lifetime of the compiled regular expression and 'h is the
lifetime of the matched string.
This iterator is created by Regex::captures_iter.
Time complexity
Note that since an iterator runs potentially many searches on the haystack
and since each search has worst case O(m * n) time complexity, the
overall worst case time complexity for iteration is O(m * n^2).
Trait Implementations
impl<'r, 'h> Debug for CaptureMatches<'r, 'h>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'r, 'h> FusedIterator for CaptureMatches<'r, 'h>
impl<'r, 'h> Iterator for CaptureMatches<'r, 'h>
type Item = Captures<'h>;fn next(&mut self) -> Option<Captures<'h>>fn count(self) -> usize