pub trait AssertionStrategy<R> {
// Required methods
fn do_fail(self) -> R;
fn do_ok(self) -> R;
}Expand description
A behavior for assertion pass and failure. AssertionResult implements this traits.
Behavior for assertion pass and failure is different between assert_that and [check_that].
assert_that panics when assertion fails, but [check_that] results a struct in both cases.
Those assertion behavior is switched by [Subject.return_type] and AssertionStrategy.