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