pub struct Link {
pub from_node: String,
pub to_node: String,
pub route_id: String,
pub travel_cost: f64,
pub headway: f64,
}Expand description
Link is an edge in the transit network graph.
Fields§
§from_node: StringSource node of the link
to_node: StringTarget node of the link
route_id: StringCorresponding route
travel_cost: f64Travel time along the link (in minutes or any consistent unit)
headway: f64Service headway. Boarding links have headway > 0 (frequency = 1/headway). On-board (riding) links have headway = 0 (no waiting).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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