Struct map_model::BusRoute[][src]

pub struct BusRoute {
    pub id: BusRouteID,
    pub full_name: String,
    pub short_name: String,
    pub gtfs_trip_marker: Option<String>,
    pub osm_rel_id: RelationID,
    pub stops: Vec<BusStopID>,
    pub start: LaneID,
    pub end_border: Option<LaneID>,
    pub route_type: PathConstraints,
    pub spawn_times: Vec<Time>,
    pub orig_spawn_times: Vec<Time>,
}

Fields

id: BusRouteIDfull_name: Stringshort_name: Stringgtfs_trip_marker: Option<String>osm_rel_id: RelationIDstops: Vec<BusStopID>start: LaneID

May be a border or not. If not, is long enough for buses to spawn fully.

end_border: Option<LaneID>route_type: PathConstraintsspawn_times: Vec<Time>

Non-empty, times in order for one day when a vehicle should begin at start.

orig_spawn_times: Vec<Time>

Explicitly store whatever the original was, since this can’t be reconstructed without side input.

Implementations

impl BusRoute[src]

pub fn all_steps(&self, map: &Map) -> Vec<PathRequest>[src]

pub fn plural_noun(&self) -> &'static str[src]

Trait Implementations

impl Clone for BusRoute[src]

impl Debug for BusRoute[src]

impl<'de> Deserialize<'de> for BusRoute[src]

impl Serialize for BusRoute[src]

Auto Trait Implementations

impl RefUnwindSafe for BusRoute

impl Send for BusRoute

impl Sync for BusRoute

impl Unpin for BusRoute

impl UnwindSafe for BusRoute

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]