pub struct AcceptedCountForager<S: PlanningSolution, M> { /* private fields */ }Expand description
A forager that collects a limited number of accepted moves.
Once the limit is reached, it quits early. It picks the best move among those collected.
Implementations§
Source§impl<S: PlanningSolution, M> AcceptedCountForager<S, M>
impl<S: PlanningSolution, M> AcceptedCountForager<S, M>
Trait Implementations§
Source§impl<S: PlanningSolution, M> Debug for AcceptedCountForager<S, M>
impl<S: PlanningSolution, M> Debug for AcceptedCountForager<S, M>
Source§impl<S: PlanningSolution, M: Move<S>> LocalSearchForager<S, M> for AcceptedCountForager<S, M>
impl<S: PlanningSolution, M: Move<S>> LocalSearchForager<S, M> for AcceptedCountForager<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 AcceptedCountForager<S, M>
impl<S, M> RefUnwindSafe for AcceptedCountForager<S, M>
impl<S, M> Send for AcceptedCountForager<S, M>where
M: Send,
impl<S, M> Sync for AcceptedCountForager<S, M>where
M: Sync,
impl<S, M> Unpin for AcceptedCountForager<S, M>
impl<S, M> UnwindSafe for AcceptedCountForager<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