pub trait ExpectationBuilder<'e> {
type Value: Debug + 'e;
// Required method
fn to_pass(self, expectation: impl Expectation<Self::Value> + 'e) -> Self;
}Expand description
Trait to enable fluent building of expectations
Required Associated Types§
Required Methods§
Sourcefn to_pass(self, expectation: impl Expectation<Self::Value> + 'e) -> Self
fn to_pass(self, expectation: impl Expectation<Self::Value> + 'e) -> Self
Expect the value to pass an expectation This is intended to be used in extension methods to add expectations to the builder
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.