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 Freeze for AllRouteSelector
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
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