[][src]Struct aho_corasick::StreamFindIter

pub struct StreamFindIter<'a, R, S: 'a + StateID> { /* fields omitted */ }

An iterator that reports Aho-Corasick 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 AhoCorasick::stream_find_iter method.

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

The type variable S refers to the representation used for state identifiers. (By default, this is usize.)

The lifetime 'a refers to the lifetime of the AhoCorasick automaton.

Trait Implementations

impl<'a, R: Debug, S: Debug + 'a + StateID> Debug for StreamFindIter<'a, R, S>[src]

impl<'a, R: Read, S: StateID> Iterator for StreamFindIter<'a, R, S>[src]

type Item = Result<Match>

The type of the elements being iterated over.

Auto Trait Implementations

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

impl<'a, R, S> Send for StreamFindIter<'a, R, S> where
    R: Send,
    S: Send + Sync

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

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

impl<'a, R, S> UnwindSafe for StreamFindIter<'a, R, S> where
    R: UnwindSafe,
    S: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.