A Match represents a portion of a string which was found to match a Regex.
The total range of the match. Note this may be empty, if the regex matched an empty string.
The list of captures. This has length equal to the number of capturing groups in the regex. For each capture, if the value is None, that group did not match (for example, it was in a not-taken branch of an alternation). If the value is Some, the group did match with the enclosed range.
Access a group by index, using the convention of Python's group() function. Index 0 is the total match, index 1 is the first capture group.
Returns the range over the starting and ending byte offsets of the match in the haystack.
This is a convenience function to work around the fact that Range does not support Copy.
Returns the starting byte offset of the match in the haystack.
Returns the ending byte offset of the match in the haystack.
Return an iterator over a Match. The first returned value is the total match, and subsequent values represent the capture groups.
impl RefUnwindSafe for Match
impl UnwindSafe for Match
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.