Struct StreamFindIter

pub struct StreamFindIter<'a, A, R> { /* private fields */ }

An iterator that reports matches in a stream.

This iterator yields elements of type io::Result<Match>, where an error is reported if there was a problem reading from the underlying stream. The iterator terminates only when the underlying stream reaches EOF.

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

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

The type variable R refers to the io::Read stream that is being read from.

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

Trait Implementations

impl<'a, A: Automaton, R: Read> Iterator for StreamFindIter<'a, A, R>

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

impl<'a, A: Debug, R: Debug> Debug for StreamFindIter<'a, A, R>

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

Auto Trait Implementations

impl<'a, A, R> Freeze for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: Freeze,

impl<'a, A, R> RefUnwindSafe for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: RefUnwindSafe,

impl<'a, A, R> Send for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: Send,

impl<'a, A, R> Sync for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: Sync,

impl<'a, A, R> Unpin for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: Unpin,

impl<'a, A, R> UnsafeUnpin for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: UnsafeUnpin,

impl<'a, A, R> UnwindSafe for StreamFindIter<'a, A, R> where StreamChunkIter<'a, A, R>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for StreamFindIter<'a, A, R> where I: Iterator,

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

impl<T> Borrow<T> for StreamFindIter<'a, A, R> where T: ?Sized,

impl<T> BorrowMut<T> for StreamFindIter<'a, A, R> where T: ?Sized,

impl<T> From<T> for StreamFindIter<'a, A, R>

impl<T, U> Into<U> for StreamFindIter<'a, A, R> where U: From<T>,

impl<T, U> TryFrom<U> for StreamFindIter<'a, A, R> where U: Into<T>,

impl<T, U> TryInto<U> for StreamFindIter<'a, A, R> where U: TryFrom<T>,