Struct regex::SetMatches
pub struct SetMatches { /* fields hidden */ }
Documentation
A set of matches returned by a regex set.
Implementations
impl SetMatches
pub fn matched_any(&Self) -> bool
Whether this set contains any matches.
pub fn matched(&Self, regex_index: usize) -> bool
pub fn len(&Self) -> usize
The total number of regexes in the set that created these matches.
pub fn iter(&Self) -> SetMatchesIter<'_>
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
impl Clone for SetMatches
fn clone(&Self) -> SetMatches
impl Debug for SetMatches
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl IntoIterator for SetMatches
impl<'a> IntoIterator for &'a SetMatches
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
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T