Struct FindOverlappingIter

pub struct FindOverlappingIter<'a, 'h, A> { /* private fields */ }

An iterator of overlapping matches in a particular haystack.

This iterator will report all possible matches in a particular haystack, even when the matches overlap.

This iterator is constructed via the Automaton::try_find_overlapping_iter method.

The type variable A refers to the implementation of the Automaton trait used to execute the search.

The lifetime 'a refers to the lifetime of the Automaton implementation.

The lifetime 'h refers to the lifetime of the haystack being searched.

Trait Implementations

impl<'a, 'h, A: Automaton> Iterator for FindOverlappingIter<'a, 'h, A>

type Item = Match;
fn next(&mut self) -> Option<Match>

impl<'a, 'h, A: Debug> Debug for FindOverlappingIter<'a, 'h, A>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a, 'h, A> Freeze for FindOverlappingIter<'a, 'h, A> where &'a A: Freeze,

impl<'a, 'h, A> RefUnwindSafe for FindOverlappingIter<'a, 'h, A> where &'a A: RefUnwindSafe,

impl<'a, 'h, A> Send for FindOverlappingIter<'a, 'h, A> where &'a A: Send,

impl<'a, 'h, A> Sync for FindOverlappingIter<'a, 'h, A> where &'a A: Sync,

impl<'a, 'h, A> Unpin for FindOverlappingIter<'a, 'h, A> where &'a A: Unpin,

impl<'a, 'h, A> UnsafeUnpin for FindOverlappingIter<'a, 'h, A> where &'a A: UnsafeUnpin,

impl<'a, 'h, A> UnwindSafe for FindOverlappingIter<'a, 'h, A> where &'a A: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for FindOverlappingIter<'a, 'h, A> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for FindOverlappingIter<'a, 'h, A> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FindOverlappingIter<'a, 'h, A> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FindOverlappingIter<'a, 'h, A> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FindOverlappingIter<'a, 'h, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for FindOverlappingIter<'a, 'h, A> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FindOverlappingIter<'a, 'h, A> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FindOverlappingIter<'a, 'h, A> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>