Struct StreamFindIter

pub struct StreamFindIter<'a, R>(/* private field */);

An iterator that reports Aho-Corasick matches in a stream.

This iterator yields elements of type Result<Match, std::io::Error>, 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 AhoCorasick::stream_find_iter and AhoCorasick::try_stream_find_iter methods.

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

The lifetime 'a refers to the lifetime of the corresponding AhoCorasick searcher.

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a, R> Freeze for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: Freeze,

impl<'a, R> RefUnwindSafe for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: RefUnwindSafe,

impl<'a, R> Send for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: Send,

impl<'a, R> Sync for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: Sync,

impl<'a, R> Unpin for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: Unpin,

impl<'a, R> UnsafeUnpin for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: UnsafeUnpin,

impl<'a, R> UnwindSafe for StreamFindIter<'a, R> where StreamFindIter<'a, Arc<dyn AcAutomaton>, R>: UnwindSafe,

Blanket Implementations

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

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

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

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

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

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

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

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