Struct vrp_core::construction::heuristics::AllRouteSelector
source · pub struct AllRouteSelector {}
Expand description
Returns a list of all possible routes for insertion.
Trait Implementations§
source§impl Default for AllRouteSelector
impl Default for AllRouteSelector
source§fn default() -> AllRouteSelector
fn default() -> AllRouteSelector
Returns the “default value” for a type. Read more
source§impl RouteSelector for AllRouteSelector
impl RouteSelector for AllRouteSelector
source§fn select<'a>(
&'a self,
insertion_ctx: &'a InsertionContext,
_: &[&'a Job]
) -> Box<dyn Iterator<Item = &'a RouteContext> + 'a>
fn select<'a>( &'a self, insertion_ctx: &'a InsertionContext, _: &[&'a Job] ) -> Box<dyn Iterator<Item = &'a RouteContext> + 'a>
Returns routes for job insertion.
source§fn prepare(&self, insertion_ctx: &mut InsertionContext)
fn prepare(&self, insertion_ctx: &mut InsertionContext)
This method is called before select. It allows to apply some changes on mutable context
before immutable borrowing could happen within select method.
Default implementation simply shuffles existing routes.
Auto Trait Implementations§
impl RefUnwindSafe for AllRouteSelector
impl Send for AllRouteSelector
impl Sync for AllRouteSelector
impl Unpin for AllRouteSelector
impl UnwindSafe for AllRouteSelector
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