Struct SubCaptureMatches
pub struct SubCaptureMatches<'c, 'h> { /* private fields */ }
An iterator over all group matches in a Captures value.
This iterator yields values of type Option<Match<'h>>, where 'h is the
lifetime of the haystack that the matches are for. The order of elements
yielded corresponds to the order of the opening parenthesis for the group
in the regex pattern. None is yielded for groups that did not participate
in the match.
The first element always corresponds to the implicit group for the overall
match. Since this iterator is created by a Captures value, and a
Captures value is only created when a match occurs, it follows that the
first element yielded by this iterator is guaranteed to be non-None.
The lifetime 'c corresponds to the lifetime of the Captures value that
created this iterator, and the lifetime 'h corresponds to the originally
matched haystack.
Trait Implementations
impl<'c, 'h> Clone for SubCaptureMatches<'c, 'h>
fn clone(&self) -> Self
impl<'c, 'h> Debug for SubCaptureMatches<'c, 'h>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'c, 'h> ExactSizeIterator for SubCaptureMatches<'c, 'h>
impl<'c, 'h> FusedIterator for SubCaptureMatches<'c, 'h>
impl<'c, 'h> Iterator for SubCaptureMatches<'c, 'h>
type Item = Option<Match<'h>>;fn next(&mut self) -> Option<Option<Match<'h>>>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usize