Struct CapturesMatches
struct CapturesMatches<'r, 'h> { ... }
An iterator over all non-overlapping leftmost matches with their capturing groups.
The iterator yields a Captures value until no more matches could be
found.
The lifetime parameters are as follows:
'rrepresents the lifetime of theRegexthat produced this iterator.'hrepresents the lifetime of the haystack being searched.
This iterator can be created with the Regex::captures_iter method.
Implementations
impl<'r, 'h> CapturesMatches<'r, 'h>
fn regex(self: &Self) -> &'r RegexReturns the
Regexvalue that created this iterator.fn input<'s>(self: &'s Self) -> &'s Input<'h>Returns the current
Inputassociated with this iterator.The
startposition on the givenInputmay change during iteration, but all other values are guaranteed to remain invariant.
impl<'r, 'h> Debug for CapturesMatches<'r, 'h>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<'r, 'h> Freeze for CapturesMatches<'r, 'h>
impl<'r, 'h> FusedIterator for CapturesMatches<'r, 'h>
impl<'r, 'h> Iterator for CapturesMatches<'r, 'h>
fn next(self: &mut Self) -> Option<Captures>fn count(self: Self) -> usize
impl<'r, 'h> RefUnwindSafe for CapturesMatches<'r, 'h>
impl<'r, 'h> Send for CapturesMatches<'r, 'h>
impl<'r, 'h> Sync for CapturesMatches<'r, 'h>
impl<'r, 'h> Unpin for CapturesMatches<'r, 'h>
impl<'r, 'h> UnsafeUnpin for CapturesMatches<'r, 'h>
impl<'r, 'h> UnwindSafe for CapturesMatches<'r, 'h>
impl<I> IntoIterator for CapturesMatches<'r, 'h>
fn into_iter(self: Self) -> I
impl<T> Any for CapturesMatches<'r, 'h>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for CapturesMatches<'r, 'h>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for CapturesMatches<'r, 'h>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for CapturesMatches<'r, 'h>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for CapturesMatches<'r, 'h>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for CapturesMatches<'r, 'h>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for CapturesMatches<'r, 'h>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>