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

pub struct FindMatches<'r, 't> {
    // some fields omitted
}

An iterator over all non-overlapping matches for a particular string.

The iterator yields a tuple of integers corresponding to the start and end of the match. The indices are byte offsets. The iterator stops when no more matches can be found.

'r is the lifetime of the compiled expression and 't is the lifetime of the matched string.

Trait Implementations

impl<'r, 't> Iterator for FindMatches<'r, 't>

type Item = (usize, usize)

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

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