pub struct Route {
pub vehicle_id: VehicleId,
pub stop_ids: Vec<StopId>,
pub load: u32,
pub distance: f64,
pub time: f64,
}Expand description
One vehicle’s tour: the ordered stops it serves and its rolled-up metrics.
The depot is implicit at both ends (depot → stop_ids → depot); it is not
listed in stop_ids.
Fields§
§vehicle_id: VehicleId§stop_ids: Vec<StopId>§load: u32Total demand carried; never exceeds the vehicle capacity.
distance: f64§time: f64Trait Implementations§
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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