Struct regex::SubCaptureMatches[][src]

pub struct SubCaptureMatches<'c, 't: 'c> { /* fields omitted */ }

An iterator that yields all capturing matches in the order in which they appear in the regex.

If a particular capture group didn’t participate in the match, then None is yielded for that capture. The first match always corresponds to the overall match of the regex.

The lifetime 'c corresponds to the lifetime of the Captures value, and the lifetime 't corresponds to the originally matched text.

Trait Implementations

impl<'c, 't: 'c> Clone for SubCaptureMatches<'c, 't>[src]

impl<'c, 't: 'c> Debug for SubCaptureMatches<'c, 't>[src]

impl<'c, 't> FusedIterator for SubCaptureMatches<'c, 't>[src]

impl<'c, 't> Iterator for SubCaptureMatches<'c, 't>[src]

type Item = Option<Match<'t>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'c, 't> RefUnwindSafe for SubCaptureMatches<'c, 't>

impl<'c, 't> Send for SubCaptureMatches<'c, 't>

impl<'c, 't> Sync for SubCaptureMatches<'c, 't>

impl<'c, 't> Unpin for SubCaptureMatches<'c, 't> where
    't: 'c, 

impl<'c, 't> UnwindSafe for SubCaptureMatches<'c, 't>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.