pub trait PatternSearcher {
    type Output;
    type Iter: Iterator<Item = Self::Output>;

    fn find_all(&self, pat: Pattern) -> Result<Self::Iter, FaitheError>;

    fn find_first(
        &self,
        pat: Pattern
    ) -> Result<Option<Self::Output>, FaitheError> { ... } }
Expand description

Trait implemented for types that can do pattern search.

Required Associated Types

Pattern search output.

Iterator over all occurences.

Required Methods

Finds an iterator over all occurences of the pattern.

Provided Methods

Returns first occurence of the pattern if present.

Implementors