Trait mockers::MatchArg [] [src]

pub trait MatchArg<T> {
    fn matches(&self, arg: &T) -> Result<(), String>;
fn describe(&self) -> String; }

Argument matcher

Basically it is predicate telling whether argument value satisfies to some criteria. However, in case of mismatch it explains what and why doesn't match.

Required Methods

Implementors