Trait faithe::pattern::PatternSearcher
source · [−]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
Required Methods
Provided Methods
sourcefn find_first(&self, pat: Pattern) -> Result<Option<Self::Output>, FaitheError>
fn find_first(&self, pat: Pattern) -> Result<Option<Self::Output>, FaitheError>
Returns first occurence of the pattern if present.