galvanic_assert::matchers

Function is

Source
pub fn is<'a, T: 'a>(
    matcher: Box<dyn Matcher<'a, T> + 'a>,
) -> Box<dyn Matcher<'a, T> + 'a>
Expand description

Accepts a matcher and returns it unmodified.

This is just syntactic sugar.

#Examples

use galvanic_assert::matchers::*;
assert_that!(&(1+1), is(eq(2)));