Skip to main content

IteratorMatcherExt

Trait IteratorMatcherExt 

pub trait IteratorMatcherExt<'a, M, Input>: Iterator<Item = &'a M> + 'a
where M: Matcher<Input>,
{ // Required methods fn matches_and(self, ext: Option<&Extensions>, input: &Input) -> bool; fn matches_or(self, ext: Option<&Extensions>, input: &Input) -> bool; }
Expand description

Extension to apply matcher operations to an Iterator of Matchers.

Required Methods§

fn matches_and(self, ext: Option<&Extensions>, input: &Input) -> bool

Matches in case all Matcher elements match for the given Input within the specified Extensions.

fn matches_or(self, ext: Option<&Extensions>, input: &Input) -> bool

Matches in case any of the Matcher elements match for the given Input within the specified Extensions.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<'a, I, M, Input> IteratorMatcherExt<'a, M, Input> for I
where I: Iterator<Item = &'a M> + 'a, M: Matcher<Input>,