pub trait Model<T, P, A, B, C, D>:
Clone
+ Send
+ Syncwhere
P: Problem<T, C, D>,
A: OfflineInput,
B: OnlineInput,
C: ModelOutputSuccess,
D: ModelOutputFailure,{
// Required methods
fn to(&self, input: A) -> P;
fn update(&self, o: &mut Online<P>, input: B);
}
Expand description
Model which is used to generate problem instances and update them online.
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.