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>>