pub struct Route {
pub id: RouteId,
pub name: String,
pub stops: Vec<StopId>,
pub inter_stop_times: Vec<f64>,
pub schedule: Schedule,
}Expand description
An ordered list of stops served by one transit line.
Fields§
§id: RouteIdUnique identifier.
name: StringLine name (e.g. “N17”, “Central”).
stops: Vec<StopId>Ordered stop IDs.
inter_stop_times: Vec<f64>Typical inter-stop travel times (s). Length == stops.len() - 1.
schedule: ScheduleDeparture pattern from the first stop.
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