pub struct Route {
pub segments: Vec<RouteSegment>,
pub total_distance: f64,
pub total_time: f64,
pub total_monetary_cost: f64,
pub node_sequence: Vec<NodeId>,
pub coordinates: Vec<Coordinate>,
pub is_primary: bool,
pub quality_score: f64,
}Expand description
A complete route
Fields§
§segments: Vec<RouteSegment>Sequence of segments
total_distance: f64Total distance (meters)
total_time: f64Total travel time (seconds)
total_monetary_cost: f64Total monetary cost
node_sequence: Vec<NodeId>Sequence of node IDs
coordinates: Vec<Coordinate>Sequence of coordinates
is_primary: boolWhether this is the primary route
quality_score: f64Route quality score (lower is better for the given criteria)
Implementations§
Trait Implementations§
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