pub struct FirstFeasibleForager<S, M> { /* private fields */ }Expand description
First Feasible forager - picks the first move that results in a feasible score.
This forager evaluates moves until it finds one that produces a feasible (non-negative hard score) solution.
Implementations§
Source§impl<S, M> FirstFeasibleForager<S, M>
impl<S, M> FirstFeasibleForager<S, M>
Trait Implementations§
Source§impl<S, M> Clone for FirstFeasibleForager<S, M>
impl<S, M> Clone for FirstFeasibleForager<S, M>
Source§impl<S, M> ConstructionForager<S, M> for FirstFeasibleForager<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> ConstructionForager<S, M> for FirstFeasibleForager<S, M>where
S: PlanningSolution,
M: Move<S>,
Source§fn pick_move_index<D: ScoreDirector<S>>(
&self,
placement: &Placement<S, M>,
score_director: &mut D,
) -> Option<usize>
fn pick_move_index<D: ScoreDirector<S>>( &self, placement: &Placement<S, M>, score_director: &mut D, ) -> Option<usize>
Picks a move index from the placement’s candidates. Read more
Source§impl<S, M> Debug for FirstFeasibleForager<S, M>
impl<S, M> Debug for FirstFeasibleForager<S, M>
Source§impl<S, M> Default for FirstFeasibleForager<S, M>
impl<S, M> Default for FirstFeasibleForager<S, M>
impl<S, M> Copy for FirstFeasibleForager<S, M>
Auto Trait Implementations§
impl<S, M> Freeze for FirstFeasibleForager<S, M>
impl<S, M> RefUnwindSafe for FirstFeasibleForager<S, M>
impl<S, M> Send for FirstFeasibleForager<S, M>
impl<S, M> Sync for FirstFeasibleForager<S, M>
impl<S, M> Unpin for FirstFeasibleForager<S, M>
impl<S, M> UnwindSafe for FirstFeasibleForager<S, M>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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