pub enum MoveContext<'a> {
Route {
solution_ctx: &'a SolutionContext,
route_ctx: &'a RouteContext,
job: &'a Job,
},
Activity {
route_ctx: &'a RouteContext,
activity_ctx: &'a ActivityContext<'a>,
},
}Expand description
A local move context.
Variants§
Route
Evaluation of job insertion into the given route.
Fields
§
solution_ctx: &'a SolutionContextA solution context.
§
route_ctx: &'a RouteContextA route context where job supposed to be inserted.
Activity
Evaluation of activity insertion into the given position.
Fields
§
route_ctx: &'a RouteContextA route context where activity supposed to be inserted.
§
activity_ctx: &'a ActivityContext<'a>An activity context.
Implementations§
Source§impl<'a> MoveContext<'a>
impl<'a> MoveContext<'a>
Sourcepub fn route(
solution_ctx: &'a SolutionContext,
route_ctx: &'a RouteContext,
job: &'a Job,
) -> MoveContext<'a>
pub fn route( solution_ctx: &'a SolutionContext, route_ctx: &'a RouteContext, job: &'a Job, ) -> MoveContext<'a>
Creates a route variant for MoveContext.
Sourcepub fn activity(
route_ctx: &'a RouteContext,
activity_ctx: &'a ActivityContext<'_>,
) -> MoveContext<'a>
pub fn activity( route_ctx: &'a RouteContext, activity_ctx: &'a ActivityContext<'_>, ) -> MoveContext<'a>
Creates a route variant for MoveContext.
Auto Trait Implementations§
impl<'a> Freeze for MoveContext<'a>
impl<'a> !RefUnwindSafe for MoveContext<'a>
impl<'a> Send for MoveContext<'a>
impl<'a> Sync for MoveContext<'a>
impl<'a> Unpin for MoveContext<'a>
impl<'a> UnsafeUnpin for MoveContext<'a>
impl<'a> !UnwindSafe for MoveContext<'a>
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