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
fn matches_with(
&self,
actual: A,
matcher: &MatchingRule,
cascaded: bool
) -> Result<()>
fn matches_with(
&self,
actual: A,
matcher: &MatchingRule,
cascaded: bool
) -> Result<()>
If the actual value matches self given the matching rule