pub trait TestFixture<'param, P, R>: Dropwhere
P: Debug + 'static,{
// Required methods
fn new(curried_params: &'param P) -> Self;
fn parameters() -> Option<Box<dyn Iterator<Item = P>>>;
fn setup(&mut self) -> FixtureBinding<'_, Self, R>
where Self: Sized;
// Provided method
fn tear_down(&self) { ... }
}
Required Methods§
fn new(curried_params: &'param P) -> Self
fn parameters() -> Option<Box<dyn Iterator<Item = P>>>
fn setup(&mut self) -> FixtureBinding<'_, Self, R>where
Self: Sized,
Provided 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.