Struct MatchIndices
pub struct MatchIndices<'a, P: Pattern>(pub(in ::str) MatchIndicesInternal<'a, P>);
Created with the method match_indices.
Fields
0: MatchIndicesInternal<'a, P>
Trait Implementations
impl<'a, P> Clone for MatchIndices<'a, P>
where
P: Pattern<Searcher<'a>: Clone>,
fn clone(&self) -> Self
impl<'a, P> Debug for MatchIndices<'a, P>
where
P: Pattern<Searcher<'a>: Debug>,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, P> DoubleEndedIterator for MatchIndices<'a, P>
where
P: Pattern<Searcher<'a>: DoubleEndedSearcher<'a>>,
fn next_back(&mut self) -> Option<(usize, &'a str)>
impl<'a, P: Pattern> FusedIterator for MatchIndices<'a, P>
impl<'a, P: Pattern> Iterator for MatchIndices<'a, P>
type Item = (usize, &'a str);fn next(&mut self) -> Option<(usize, &'a str)>
Auto Trait Implementations
impl<'a, P> Freeze for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: Freeze,
impl<'a, P> RefUnwindSafe for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: RefUnwindSafe,
impl<'a, P> Send for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: Send,
impl<'a, P> Sync for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: Sync,
impl<'a, P> Unpin for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: Unpin,
impl<'a, P> UnsafeUnpin for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: UnsafeUnpin,
impl<'a, P> UnwindSafe for MatchIndices<'a, P>
where
MatchIndicesInternal<'a, P>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for MatchIndices<'a, P>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for MatchIndices<'a, P>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MatchIndices<'a, P>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MatchIndices<'a, P>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for MatchIndices<'a, P>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for MatchIndices<'a, P>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for MatchIndices<'a, P>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for MatchIndices<'a, P>
impl<T, U> Into<U> for MatchIndices<'a, P>
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 MatchIndices<'a, P>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for MatchIndices<'a, P>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>