Struct regex::SubCapturesPos [-]  [+] [src]

pub struct SubCapturesPos<'t> {
    // some fields omitted
}

An iterator over capture group positions for a particular match of a regular expression.

Positions are byte indices in terms of the original string matched.

't is the lifetime of the matched text.

Trait Implementations

impl<'t> Iterator for SubCapturesPos<'t>

type Item = Option<(usize, usize)>

fn next(&mut self) -> Option<Option<(usize, usize)>>

fn size_hint(&self) -> (usize, Option<usize>)