[][src]Struct map_model::BusRoute

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 Debug for BusRoute[src]

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

impl Serialize for BusRoute[src]

Auto Trait Implementations

impl RefUnwindSafe for BusRoute[src]

impl Send for BusRoute[src]

impl Sync for BusRoute[src]

impl Unpin for BusRoute[src]

impl UnwindSafe for BusRoute[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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, 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>,