Struct vrp_core::models::solution::CommuteInfo
source · pub struct CommuteInfo {
pub location: Location,
pub distance: Distance,
pub duration: Duration,
}Expand description
Commute information.
Fields§
§location: LocationA previous or next location.
distance: DistanceTravelled distance.
duration: DurationTravelled duration.
Implementations§
source§impl CommuteInfo
impl CommuteInfo
sourcepub fn is_zero_distance(&self) -> bool
pub fn is_zero_distance(&self) -> bool
Checks whether there is no distance costs for part of commute.
Trait Implementations§
source§impl Clone for CommuteInfo
impl Clone for CommuteInfo
source§fn clone(&self) -> CommuteInfo
fn clone(&self) -> CommuteInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CommuteInfo
impl Send for CommuteInfo
impl Sync for CommuteInfo
impl Unpin for CommuteInfo
impl UnwindSafe for CommuteInfo
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