Skip to main content

Module iter

Module iter 

Source
Expand description

A collection of Iterators used in return types for Regex methods. Although also usually inferred, these may be needed to name types in some cases.

Unfortunately, all of these types have many type parameters. To make code more concise, try elliding them where possible with _. Regex::Pattern should be used to obtain the Matcher type if required.

Structsยง

FindAllCaptures
An Iterator over each capture in the haystack, as an R::Capture. See Regex::find_all_captures.
RangeOfAllMatches
An Iterator over each match in the haystack, as a Range<usize>. See Regex::range_of_all_matches.
SliceAllMatches
An Iterator over each match in the haystack, as an H::Slice. See Regex::slice_all_matches.