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 Matchers conjunctively.

Use of() to create a new Matcher and and() to add further Matchers.

Examples

use galvanic_assert::matchers::*;
assert_that!(&(1+1), All::of(gt(0)).and(lt(5)).and(not(eq(3))));

Fields

Methods

impl<'a, T: 'a> All<'a, T>
[src]

[src]

Creates a new conjunctive Matcher starting with the given Matcher.

[src]

Adds the given Matcher conjunctively.

Trait Implementations

impl<'a, T: 'a> Matcher<'a, T> for All<'a, T>
[src]

[src]

Checks the passed value if it satisfies the Matcher. Read more