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

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

Yields at most N substrings delimited by a regular expression match.

The last substring will be whatever remains after splitting.

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

Trait Implementations

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

type Item = &'t str

fn next(&mut self) -> Option<&'t str>

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