pub trait Runner<F, P> {
type Output;
// Required method
fn run_with_param(f: F, param: P) -> Self::Output;
// Provided method
fn run(f: F) -> Self::Output
where P: Default { ... }
}Expand description
Run some code after some complexe initialization
Required Associated Types§
Required Methods§
fn run_with_param(f: F, param: P) -> Self::Output
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.