pub trait MatcherTuple<T>where
T: ?Sized,{
// Required methods
fn check_all(&self, actual: &T) -> MatchResult;
fn check_any(&self, actual: &T) -> MatchResult;
fn describe_all(&self) -> Description;
fn describe_any(&self) -> Description;
}Expand description
Required Methods§
Sourcefn check_all(&self, actual: &T) -> MatchResult
fn check_all(&self, actual: &T) -> MatchResult
Every matcher in the tuple must match. Returns the first sub-matcher’s failure, so the error pinpoints which expectation broke.
Sourcefn check_any(&self, actual: &T) -> MatchResult
fn check_any(&self, actual: &T) -> MatchResult
At least one matcher in the tuple must match. When none do, the failure describes the whole disjunction.
Sourcefn describe_all(&self) -> Description
fn describe_all(&self) -> Description
The conjunction (a and b and ...) of the tuple’s descriptions.
Sourcefn describe_any(&self) -> Description
fn describe_any(&self) -> Description
The disjunction (a or b or ...) of the tuple’s descriptions.