Struct regex::SetMatches [−][src]
pub struct SetMatches { /* fields omitted */ }
A set of matches returned by a regex set.
Implementations
impl SetMatches
[src]
impl SetMatches
[src]pub fn matched_any(&self) -> bool
[src]
pub fn matched_any(&self) -> bool
[src]Whether this set contains any matches.
pub fn matched(&self, regex_index: usize) -> bool
[src]
pub fn matched(&self, regex_index: usize) -> bool
[src]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;
[src]
pub fn iter(&self) -> SetMatchesIter<'_>ⓘNotable traits for SetMatchesIter<'a>
impl<'a> Iterator for SetMatchesIter<'a> type Item = usize;
[src]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
[src]
impl Clone for SetMatches
[src]fn clone(&self) -> SetMatches
[src]
fn clone(&self) -> SetMatches
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SetMatches
[src]
impl Debug for SetMatches
[src]impl IntoIterator for SetMatches
[src]
impl IntoIterator for SetMatches
[src]impl<'a> IntoIterator for &'a SetMatches
[src]
impl<'a> IntoIterator for &'a SetMatches
[src]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,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more