pub struct ConstructionPhaseFactory<S, M, P, Fo>{ /* private fields */ }Expand description
Zero-erasure factory for construction heuristic phases.
All types flow through generics - Placer P and Forager Fo are concrete.
§Type Parameters
S- The planning solution typeM- The move typeP- The entity placer type (concrete)Fo- The forager type (concrete)
Implementations§
Source§impl<S, M, P, Fo> ConstructionPhaseFactory<S, M, P, Fo>
impl<S, M, P, Fo> ConstructionPhaseFactory<S, M, P, Fo>
Source§impl<S, M, P> ConstructionPhaseFactory<S, M, P, FirstFitForager<S, M>>
impl<S, M, P> ConstructionPhaseFactory<S, M, P, FirstFitForager<S, M>>
Source§impl<S, M, P> ConstructionPhaseFactory<S, M, P, BestFitForager<S, M>>
impl<S, M, P> ConstructionPhaseFactory<S, M, P, BestFitForager<S, M>>
Trait Implementations§
Source§impl<S, D, M, P, Fo> PhaseFactory<S, D> for ConstructionPhaseFactory<S, M, P, Fo>where
S: PlanningSolution,
D: ScoreDirector<S>,
M: Move<S> + Clone + Send + Sync + 'static,
P: EntityPlacer<S, M> + Clone + Send + Sync + 'static,
Fo: ConstructionForager<S, M> + Clone + Send + Sync + 'static,
impl<S, D, M, P, Fo> PhaseFactory<S, D> for ConstructionPhaseFactory<S, M, P, Fo>where
S: PlanningSolution,
D: ScoreDirector<S>,
M: Move<S> + Clone + Send + Sync + 'static,
P: EntityPlacer<S, M> + Clone + Send + Sync + 'static,
Fo: ConstructionForager<S, M> + Clone + Send + Sync + 'static,
Auto Trait Implementations§
impl<S, M, P, Fo> Freeze for ConstructionPhaseFactory<S, M, P, Fo>
impl<S, M, P, Fo> RefUnwindSafe for ConstructionPhaseFactory<S, M, P, Fo>where
P: RefUnwindSafe,
Fo: RefUnwindSafe,
impl<S, M, P, Fo> Send for ConstructionPhaseFactory<S, M, P, Fo>
impl<S, M, P, Fo> Sync for ConstructionPhaseFactory<S, M, P, Fo>
impl<S, M, P, Fo> Unpin for ConstructionPhaseFactory<S, M, P, Fo>
impl<S, M, P, Fo> UnwindSafe for ConstructionPhaseFactory<S, M, P, Fo>where
P: UnwindSafe,
Fo: UnwindSafe,
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