galvanic_assert::matchers

Function has

Source
pub fn has<'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::*;
let vs = vec![1, 2];
assert_that!(&vs.len(), has(lt(3)));