Skip to main content

CustomSearchPhase

Trait CustomSearchPhase 

Source
pub trait CustomSearchPhase<S>: Debug + Send{
    // Required method
    fn solve<D, ProgressCb>(
        &mut self,
        solver_scope: &mut SolverScope<'_, S, D, ProgressCb>,
    )
       where D: Director<S>,
             ProgressCb: ProgressCallback<S>;

    // Provided method
    fn phase_type_name(&self) -> &'static str { ... }
}

Required Methods§

Source

fn solve<D, ProgressCb>( &mut self, solver_scope: &mut SolverScope<'_, S, D, ProgressCb>, )
where D: Director<S>, ProgressCb: ProgressCallback<S>,

Provided Methods§

Source

fn phase_type_name(&self) -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S> CustomSearchPhase<S> for NoCustomPhase

Source§

impl<S, M, MS, A, Fo> CustomSearchPhase<S> for LocalSearchPhase<S, M, MS, A, Fo>
where S: PlanningSolution, M: Move<S>, MS: MoveSelector<S, M> + Debug, A: Acceptor<S> + Debug, Fo: LocalSearchForager<S, M> + Debug,

Source§

impl<S, PD, Part, SDF, PF, CP> CustomSearchPhase<S> for PartitionedSearchPhase<S, PD, Part, SDF, PF, CP>
where S: PlanningSolution + 'static, PD: Director<S> + 'static, Part: SolutionPartitioner<S>, SDF: Fn(S) -> PD + Send + Sync, PF: Fn() -> CP + Send + Sync, CP: ChildPhases<S, PD> + Send,