pub trait OrFail<T> {
// Required methods
fn or_fail(self) -> Result<T, TestError>;
fn or_fail_with(
self,
message: impl Into<Cow<'static, str>>,
) -> Result<T, TestError>;
}Expand description
Converts a fallible value into a TestResult, producing a TestError
on the failure path.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.