Trait DefaultGivenProblem

Source
pub trait DefaultGivenProblem<T, P, C, D>
where P: Problem<T, C, D>, C: ModelOutputSuccess, D: ModelOutputFailure,
{ // Required method fn default(p: &P) -> Self; }
Expand description

Gives type a default value which may depend on a problem instance.

Required Methods§

Source

fn default(p: &P) -> Self

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.

Implementors§

Source§

impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U
where P: Problem<T, C, D>, C: ModelOutputSuccess, D: ModelOutputFailure, U: Default,