Struct galvanic_assert::matchers::collection::HasValue [] [src]

pub struct HasValue<V> { /* fields omitted */ }

Matches if the map-like collection contains the given value.

The Matcher tests for this by converting the map-like data structure into a key/value pair iterator.

Trait Implementations

impl<'a, K, V, M> Matcher<'a, M> for HasValue<V> where
    V: PartialEq + Debug + 'a,
    K: PartialEq + Debug + 'a,
    &'a M: IntoIterator<Item = (&'a K, &'a V)> + 'a, 
[src]

[src]

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