Struct vrp_core::construction::enablers::NoRouteIntervals
source · pub struct NoRouteIntervals {}
Expand description
A no-op implementation of RouteIntervals
.
Trait Implementations§
source§impl Default for NoRouteIntervals
impl Default for NoRouteIntervals
source§fn default() -> NoRouteIntervals
fn default() -> NoRouteIntervals
Returns the “default value” for a type. Read more
source§impl RouteIntervals for NoRouteIntervals
impl RouteIntervals for NoRouteIntervals
source§fn is_marker_job(&self, _: &Job) -> bool
fn is_marker_job(&self, _: &Job) -> bool
Returns true if job is considered as a route interval marker.
source§fn is_marker_assignable(&self, _: &Route, _: &Job) -> bool
fn is_marker_assignable(&self, _: &Route, _: &Job) -> bool
Returns true if given job is a marker job and can be used with given route.
source§fn is_new_interval_needed(&self, _: &RouteContext) -> bool
fn is_new_interval_needed(&self, _: &RouteContext) -> bool
Checks whether vehicle can do a new route interval.
source§fn get_marker_intervals<'a>(
&self,
_: &'a RouteContext
) -> Option<&'a Vec<(usize, usize)>>
fn get_marker_intervals<'a>( &self, _: &'a RouteContext ) -> Option<&'a Vec<(usize, usize)>>
Gets route intervals split by marker jobs.
source§fn get_interval_key(&self) -> Option<StateKey>
fn get_interval_key(&self) -> Option<StateKey>
Gets interval state key if present.
source§fn update_solution_intervals(&self, _: &mut SolutionContext)
fn update_solution_intervals(&self, _: &mut SolutionContext)
Update route intervals on solution level.
Auto Trait Implementations§
impl RefUnwindSafe for NoRouteIntervals
impl Send for NoRouteIntervals
impl Sync for NoRouteIntervals
impl Unpin for NoRouteIntervals
impl UnwindSafe for NoRouteIntervals
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