pub struct SearchBuilder<S, V, DM, IDM, Extensions>where
S: PlanningSolution,{ /* private fields */ }Implementations§
Source§impl<S, V, DM, IDM, Extensions> SearchBuilder<S, V, DM, IDM, Extensions>where
S: PlanningSolution,
impl<S, V, DM, IDM, Extensions> SearchBuilder<S, V, DM, IDM, Extensions>where
S: PlanningSolution,
Sourcepub fn into_runtime_parts(self) -> (SearchContext<S, V, DM, IDM>, Extensions)
pub fn into_runtime_parts(self) -> (SearchContext<S, V, DM, IDM>, Extensions)
Transfers this typed authoring declaration without building phases.
Source§impl<S, V, DM, IDM, Extensions> SearchBuilder<S, V, DM, IDM, Extensions>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,
Extensions: RuntimeExtensionRegistry<S, V, DM, IDM>,
impl<S, V, DM, IDM, Extensions> SearchBuilder<S, V, DM, IDM, Extensions>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,
Extensions: RuntimeExtensionRegistry<S, V, DM, IDM>,
pub fn phase<P, F>(
self,
name: &'static str,
builder: F,
) -> SearchBuilder<S, V, DM, IDM, CustomPhaseNode<Extensions, 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<Extensions, 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, Extensions> Search<S, V, DM, IDM> for SearchBuilder<S, V, DM, IDM, Extensions>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,
Extensions: RuntimeExtensionRegistry<S, V, DM, IDM>,
impl<S, V, DM, IDM, Extensions> Search<S, V, DM, IDM> for SearchBuilder<S, V, DM, IDM, Extensions>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,
Extensions: RuntimeExtensionRegistry<S, V, DM, IDM>,
Source§type Extensions = Extensions
type Extensions = Extensions
Concrete typed extension registry transferred with this declaration.
Auto Trait Implementations§
impl<S, V, DM, IDM, Extensions> !RefUnwindSafe for SearchBuilder<S, V, DM, IDM, Extensions>
impl<S, V, DM, IDM, Extensions> !UnwindSafe for SearchBuilder<S, V, DM, IDM, Extensions>
impl<S, V, DM, IDM, Extensions> Freeze for SearchBuilder<S, V, DM, IDM, Extensions>where
Extensions: Freeze,
impl<S, V, DM, IDM, Extensions> Send for SearchBuilder<S, V, DM, IDM, Extensions>
impl<S, V, DM, IDM, Extensions> Sync for SearchBuilder<S, V, DM, IDM, Extensions>
impl<S, V, DM, IDM, Extensions> Unpin for SearchBuilder<S, V, DM, IDM, Extensions>
impl<S, V, DM, IDM, Extensions> UnsafeUnpin for SearchBuilder<S, V, DM, IDM, Extensions>where
Extensions: UnsafeUnpin,
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