Struct galvanic_assert::matchers::All
[−]
[src]
pub struct All<'a, T: 'a> { pub matcher: Box<Matcher<'a, T> + 'a>, pub next: Option<Box<All<'a, T>>>, }
A Matcher
struct which joins multiple Matcher
s conjunctively.
Use of()
to create a new Matcher
and and()
to add further Matcher
s.
Fields
matcher: Box<Matcher<'a, T> + 'a>
next: Option<Box<All<'a, T>>>
Methods
impl<'a, T: 'a> All<'a, T>
[src]
fn of(matcher: Box<Matcher<'a, T> + 'a>) -> All<'a, T>
Creates a new conjunctive Matcher
starting with the given Matcher
.
fn and(self, matcher: Box<Matcher<'a, T> + 'a>) -> All<'a, T>
Adds the given Matcher
conjunctively.
Trait Implementations
impl<'a, T: 'a> Matcher<'a, T> for All<'a, T>
[src]
fn check(&self, actual: &'a T) -> MatchResult
Checks the passed value if it satisfies the Matcher
. Read more