Struct vrp_core::models::problem::Jobs [−][src]
pub struct Jobs { /* fields omitted */ }Expand description
Stores all jobs taking into account their neighborhood.
Implementations
impl Jobs[src]
impl Jobs[src]pub fn new(
fleet: &Fleet,
jobs: Vec<Job>,
transport: &Arc<dyn TransportCost + Send + Sync>
) -> Jobs[src]
pub fn new(
fleet: &Fleet,
jobs: Vec<Job>,
transport: &Arc<dyn TransportCost + Send + Sync>
) -> Jobs[src]Creates a new Jobs.
pub fn all_as_slice(&self) -> &[Job][src]
pub fn all_as_slice(&self) -> &[Job][src]Returns all jobs in original order as slice.
pub fn neighbors(
&self,
profile: &Profile,
job: &Job,
_: Timestamp
) -> impl Iterator<Item = &(Job, Cost)>[src]
pub fn neighbors(
&self,
profile: &Profile,
job: &Job,
_: Timestamp
) -> impl Iterator<Item = &(Job, Cost)>[src]Returns range of jobs “near” to given one. Near is defined by costs with relation transport profile and departure time.
pub fn distance(
&self,
profile: &Profile,
from: &Job,
to: &Job,
_: Timestamp
) -> Cost[src]
pub fn distance(
&self,
profile: &Profile,
from: &Job,
to: &Job,
_: Timestamp
) -> Cost[src]Returns cost distance between two jobs.
Auto Trait Implementations
impl !RefUnwindSafe for Jobs
impl Send for Jobs
impl Sync for Jobs
impl Unpin for Jobs
impl !UnwindSafe for Jobs
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,