Trait pact_matching::matchers::Matches[][src]

pub trait Matches<A: Clone> {
    fn matches_with(
        &self,
        actual: A,
        matcher: &MatchingRule,
        cascaded: bool
    ) -> Result<()>; fn matches(&self, actual: &A, matcher: &MatchingRule) -> Result<()> { ... } }
Expand description

Trait for matching rule implementation

Required methods

If the actual value matches self given the matching rule

Provided methods

👎 Deprecated since 0.9.2:

Use matches_with instead

If the actual value matches self given the matching rule

Implementations on Foreign Types

Implementors