pub struct FirstFitForager<S, M> { /* private fields */ }Expand description
First Fit forager - picks the first feasible move.
This is the fastest forager but may not produce optimal results. It simply takes the first move that can be executed.
Implementations§
Source§impl<S, M> FirstFitForager<S, M>
impl<S, M> FirstFitForager<S, M>
Trait Implementations§
Source§impl<S: Clone, M: Clone> Clone for FirstFitForager<S, M>
impl<S: Clone, M: Clone> Clone for FirstFitForager<S, M>
Source§fn clone(&self) -> FirstFitForager<S, M>
fn clone(&self) -> FirstFitForager<S, M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, M> ConstructionForager<S, M> for FirstFitForager<S, M>where
S: PlanningSolution,
M: Move<S>,
impl<S, M> ConstructionForager<S, M> for FirstFitForager<S, M>where
S: PlanningSolution,
M: Move<S>,
Source§impl<S, M> Debug for FirstFitForager<S, M>
impl<S, M> Debug for FirstFitForager<S, M>
Auto Trait Implementations§
impl<S, M> Freeze for FirstFitForager<S, M>
impl<S, M> RefUnwindSafe for FirstFitForager<S, M>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, M> Send for FirstFitForager<S, M>
impl<S, M> Sync for FirstFitForager<S, M>
impl<S, M> Unpin for FirstFitForager<S, M>
impl<S, M> UnwindSafe for FirstFitForager<S, M>where
S: UnwindSafe,
M: 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