Struct TryCapturesMatches
pub struct TryCapturesMatches<'r, 'c, 'h> { /* private fields */ }
An iterator over all non-overlapping leftmost matches, with their capturing groups, for a fallible search.
The iterator yields a Result<Captures, MatchError> value until no more
matches could be found.
The lifetime parameters are as follows:
'rrepresents the lifetime of the BoundedBacktracker.'crepresents the lifetime of the BoundedBacktracker's cache.'hrepresents the lifetime of the haystack being searched.
This iterator can be created with the
BoundedBacktracker::try_captures_iter method.
Trait Implementations
impl<'r, 'c, 'h> Debug for TryCapturesMatches<'r, 'c, 'h>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'r, 'c, 'h> Iterator for TryCapturesMatches<'r, 'c, 'h>
type Item = Result<Captures, MatchError>;fn next(&mut self) -> Option<Result<Captures, MatchError>>
Auto Trait Implementations
impl<'r, 'c, 'h> !UnwindSafe for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> Freeze for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> RefUnwindSafe for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> Send for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> Sync for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> Unpin for TryCapturesMatches<'r, 'c, 'h>
impl<'r, 'c, 'h> UnsafeUnpin for TryCapturesMatches<'r, 'c, 'h>
Blanket Implementations
impl<I> IntoIterator for TryCapturesMatches<'r, 'c, 'h>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for TryCapturesMatches<'r, 'c, 'h>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryCapturesMatches<'r, 'c, 'h>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryCapturesMatches<'r, 'c, 'h>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for TryCapturesMatches<'r, 'c, 'h>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for TryCapturesMatches<'r, 'c, 'h>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryCapturesMatches<'r, 'c, 'h>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TryCapturesMatches<'r, 'c, 'h>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>