Struct regex::SetMatches [−][src]
pub struct SetMatches { /* fields omitted */ }
Expand description
A set of matches returned by a regex set.
Implementations
Whether this set contains any matches.
Whether the regex at the given index matched.
The index for a regex is determined by its insertion order upon the
initial construction of a RegexSet
, starting at 0
.
Panics
If regex_index
is greater than or equal to self.len()
.
pub fn iter(&self) -> SetMatchesIter<'_>ⓘNotable traits for SetMatchesIter<'a>impl<'a> Iterator for SetMatchesIter<'a> type Item = usize;
pub fn iter(&self) -> SetMatchesIter<'_>ⓘNotable traits for SetMatchesIter<'a>impl<'a> Iterator for SetMatchesIter<'a> type Item = usize;
Notable traits for SetMatchesIter<'a>
impl<'a> Iterator for SetMatchesIter<'a> type Item = usize;
Returns an iterator over indexes in the regex that matched.
This will always produces matches in ascending order of index, where the index corresponds to the index of the regex that matched with respect to its position when initially building the set.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SetMatches
impl Send for SetMatches
impl Sync for SetMatches
impl Unpin for SetMatches
impl UnwindSafe for SetMatches
Blanket Implementations
Mutably borrows from an owned value. Read more