pub type EarlyStopCondition = dyn Fn() -> bool + Send;
A functor that returns whether the planner must do an early stop.