pub trait BestSolutionCallback<S>: Send + Sync {
// Required method
fn invoke(&self, solution: &S);
}Expand description
Sealed trait for invoking an optional best-solution callback.
Implemented for () (no-op) and for any F: Fn(&S) + Send + Sync.