pub struct SearchBuilder<S, V, DM, IDM, CustomPhases>where
S: PlanningSolution,{ /* private fields */ }Implementations§
Source§impl<S, V, DM, IDM, CustomPhases> SearchBuilder<S, V, DM, IDM, CustomPhases>where
S: PlanningSolution + 'static,
S::Score: Score + ParseableScore,
V: Clone + Copy + PartialEq + Eq + Hash + Into<usize> + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
CustomPhases: CustomPhaseRegistry<S, V, DM, IDM>,
impl<S, V, DM, IDM, CustomPhases> SearchBuilder<S, V, DM, IDM, CustomPhases>where
S: PlanningSolution + 'static,
S::Score: Score + ParseableScore,
V: Clone + Copy + PartialEq + Eq + Hash + Into<usize> + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
CustomPhases: CustomPhaseRegistry<S, V, DM, IDM>,
pub fn phase<P, F>(
self,
name: &'static str,
builder: F,
) -> SearchBuilder<S, V, DM, IDM, CustomPhaseNode<CustomPhases, F, P>>where
F: Fn(&SearchContext<S, V, DM, IDM>) -> P + Send + Sync + 'static,
P: CustomSearchPhase<S> + 'static,
pub fn partitioned_phase<P, F>(
self,
name: &'static str,
builder: F,
) -> SearchBuilder<S, V, DM, IDM, PartitionedPhaseNode<CustomPhases, F, P>>where
F: Fn(&SearchContext<S, V, DM, IDM>, &PartitionedSearchConfig) -> P + Send + Sync + 'static,
P: CustomSearchPhase<S> + 'static,
Trait Implementations§
Source§impl<S, V, DM, IDM, CustomPhases> Search<S, V, DM, IDM> for SearchBuilder<S, V, DM, IDM, CustomPhases>where
S: PlanningSolution + 'static,
S::Score: Score + ParseableScore,
V: Clone + Copy + PartialEq + Eq + Hash + Into<usize> + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
CustomPhases: CustomPhaseRegistry<S, V, DM, IDM>,
impl<S, V, DM, IDM, CustomPhases> Search<S, V, DM, IDM> for SearchBuilder<S, V, DM, IDM, CustomPhases>where
S: PlanningSolution + 'static,
S::Score: Score + ParseableScore,
V: Clone + Copy + PartialEq + Eq + Hash + Into<usize> + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + Send + 'static,
CustomPhases: CustomPhaseRegistry<S, V, DM, IDM>,
type Phase<D, ProgressCb> = SearchRuntimePhase<RuntimePhase<Construction<S, V, DM, IDM>, LocalSearchStrategy<S, V, DM, IDM>>, <CustomPhases as CustomPhaseRegistry<S, V, DM, IDM>>::Phase> where D: Director<S>, ProgressCb: ProgressCallback<S>
fn build<D, ProgressCb>(
self,
config: &SolverConfig,
) -> PhaseSequence<Self::Phase<D, ProgressCb>>where
D: Director<S>,
ProgressCb: ProgressCallback<S>,
Auto Trait Implementations§
impl<S, V, DM, IDM, CustomPhases> Freeze for SearchBuilder<S, V, DM, IDM, CustomPhases>where
CustomPhases: Freeze,
impl<S, V, DM, IDM, CustomPhases> !RefUnwindSafe for SearchBuilder<S, V, DM, IDM, CustomPhases>
impl<S, V, DM, IDM, CustomPhases> Send for SearchBuilder<S, V, DM, IDM, CustomPhases>
impl<S, V, DM, IDM, CustomPhases> Sync for SearchBuilder<S, V, DM, IDM, CustomPhases>
impl<S, V, DM, IDM, CustomPhases> Unpin for SearchBuilder<S, V, DM, IDM, CustomPhases>
impl<S, V, DM, IDM, CustomPhases> UnsafeUnpin for SearchBuilder<S, V, DM, IDM, CustomPhases>where
CustomPhases: UnsafeUnpin,
impl<S, V, DM, IDM, CustomPhases> !UnwindSafe for SearchBuilder<S, V, DM, IDM, CustomPhases>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more