pub struct FirstAcceptedForager<S: PlanningSolution, M> { /* private fields */ }Expand description
A forager that picks the first accepted move.
This is the simplest forager - it quits after the first accepted move.
Implementations§
Source§impl<S: PlanningSolution, M> FirstAcceptedForager<S, M>
impl<S: PlanningSolution, M> FirstAcceptedForager<S, M>
Trait Implementations§
Source§impl<S: PlanningSolution, M> Debug for FirstAcceptedForager<S, M>
impl<S: PlanningSolution, M> Debug for FirstAcceptedForager<S, M>
Source§impl<S: PlanningSolution, M> Default for FirstAcceptedForager<S, M>
impl<S: PlanningSolution, M> Default for FirstAcceptedForager<S, M>
Source§impl<S: PlanningSolution, M: Move<S>> LocalSearchForager<S, M> for FirstAcceptedForager<S, M>
impl<S: PlanningSolution, M: Move<S>> LocalSearchForager<S, M> for FirstAcceptedForager<S, M>
Source§fn step_started(&mut self)
fn step_started(&mut self)
Called at the start of each step to reset state.
Source§fn is_quit_early(&self) -> bool
fn is_quit_early(&self) -> bool
Returns true if the forager has collected enough moves and
wants to stop evaluating more.
Auto Trait Implementations§
impl<S, M> Freeze for FirstAcceptedForager<S, M>
impl<S, M> RefUnwindSafe for FirstAcceptedForager<S, M>
impl<S, M> Send for FirstAcceptedForager<S, M>where
M: Send,
impl<S, M> Sync for FirstAcceptedForager<S, M>where
M: Sync,
impl<S, M> Unpin for FirstAcceptedForager<S, M>
impl<S, M> UnwindSafe for FirstAcceptedForager<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