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,

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for StreamFindIter<'a, A, R> 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 StreamFindIter<'a, A, R> where U: Into<T>,

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

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

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