[][src]Struct map_model::Map

pub struct Map { /* fields omitted */ }

Implementations

impl Map[src]

pub fn get_edits(&self) -> &MapEdits[src]

pub fn get_i_edit(&self, i: IntersectionID) -> EditIntersection[src]

pub fn save_edits(&self)[src]

pub fn must_apply_edits(
    &mut self,
    new_edits: MapEdits,
    timer: &mut Timer
) -> (BTreeSet<RoadID>, BTreeSet<TurnID>, BTreeSet<TurnID>, BTreeSet<IntersectionID>)
[src]

pub fn try_apply_edits(&mut self, new_edits: MapEdits, timer: &mut Timer)[src]

pub fn recalculate_pathfinding_after_edits(&mut self, timer: &mut Timer)[src]

pub fn incremental_edit_traffic_signal(&mut self, signal: ControlTrafficSignal)[src]

impl Map[src]

pub fn create_from_raw(raw: RawMap, build_ch: bool, timer: &mut Timer) -> Map[src]

impl Map[src]

pub fn new(path: String, timer: &mut Timer) -> Map[src]

pub fn corrupt_err(path: String, err: Error)[src]

pub fn blank() -> Map[src]

pub fn all_roads(&self) -> &Vec<Road>[src]

pub fn all_lanes(&self) -> &Vec<Lane>[src]

pub fn all_intersections(&self) -> &Vec<Intersection>[src]

pub fn all_turns(&self) -> &BTreeMap<TurnID, Turn>[src]

pub fn all_buildings(&self) -> &Vec<Building>[src]

pub fn all_areas(&self) -> &Vec<Area>[src]

pub fn all_parking_lots(&self) -> &Vec<ParkingLot>[src]

pub fn maybe_get_r(&self, id: RoadID) -> Option<&Road>[src]

pub fn maybe_get_l(&self, id: LaneID) -> Option<&Lane>[src]

pub fn maybe_get_i(&self, id: IntersectionID) -> Option<&Intersection>[src]

pub fn maybe_get_t(&self, id: TurnID) -> Option<&Turn>[src]

pub fn maybe_get_b(&self, id: BuildingID) -> Option<&Building>[src]

pub fn maybe_get_pl(&self, id: ParkingLotID) -> Option<&ParkingLot>[src]

pub fn maybe_get_a(&self, id: AreaID) -> Option<&Area>[src]

pub fn maybe_get_bs(&self, id: BusStopID) -> Option<&BusStop>[src]

pub fn maybe_get_stop_sign(
    &self,
    id: IntersectionID
) -> Option<&ControlStopSign>
[src]

pub fn maybe_get_traffic_signal(
    &self,
    id: IntersectionID
) -> Option<&ControlTrafficSignal>
[src]

pub fn maybe_get_br(&self, route: BusRouteID) -> Option<&BusRoute>[src]

pub fn get_r(&self, id: RoadID) -> &Road[src]

pub fn get_l(&self, id: LaneID) -> &Lane[src]

pub fn get_i(&self, id: IntersectionID) -> &Intersection[src]

pub fn get_t(&self, id: TurnID) -> &Turn[src]

pub fn get_b(&self, id: BuildingID) -> &Building[src]

pub fn get_a(&self, id: AreaID) -> &Area[src]

pub fn get_pl(&self, id: ParkingLotID) -> &ParkingLot[src]

pub fn get_stop_sign(&self, id: IntersectionID) -> &ControlStopSign[src]

pub fn get_traffic_signal(&self, id: IntersectionID) -> &ControlTrafficSignal[src]

pub fn get_turns_in_intersection<'a>(
    &'a self,
    id: IntersectionID
) -> impl Iterator<Item = &'a Turn> + 'a
[src]

pub fn get_turns_from_lane(&self, l: LaneID) -> Vec<&Turn>[src]

pub fn get_turns_to_lane(&self, l: LaneID) -> Vec<&Turn>[src]

pub fn get_turn_between(
    &self,
    from: LaneID,
    to: LaneID,
    parent: IntersectionID
) -> Option<TurnID>
[src]

pub fn get_next_turns_and_lanes<'a>(
    &'a self,
    from: LaneID,
    parent: IntersectionID
) -> impl Iterator<Item = (&'a Turn, &'a Lane)> + 'a
[src]

pub fn get_turns_for(
    &self,
    from: LaneID,
    constraints: PathConstraints
) -> Vec<&Turn>
[src]

pub fn get_next_roads(&self, from: RoadID) -> impl Iterator<Item = RoadID>[src]

pub fn get_parent(&self, id: LaneID) -> &Road[src]

pub fn get_gps_bounds(&self) -> &GPSBounds[src]

pub fn get_bounds(&self) -> &Bounds[src]

pub fn get_city_name(&self) -> &String[src]

pub fn get_name(&self) -> &String[src]

pub fn all_bus_stops(&self) -> &BTreeMap<BusStopID, BusStop>[src]

pub fn get_bs(&self, stop: BusStopID) -> &BusStop[src]

pub fn get_br(&self, route: BusRouteID) -> &BusRoute[src]

pub fn all_bus_routes(&self) -> &Vec<BusRoute>[src]

pub fn get_bus_route(&self, name: &str) -> Option<&BusRoute>[src]

pub fn get_routes_serving_stop(&self, stop: BusStopID) -> Vec<&BusRoute>[src]

pub fn building_to_road(&self, id: BuildingID) -> &Road[src]

pub fn all_incoming_borders(&self) -> Vec<&Intersection>[src]

pub fn all_outgoing_borders(&self) -> Vec<&Intersection>[src]

pub fn unsaved_edits(&self) -> bool[src]

pub fn save(&self)[src]

pub fn find_driving_lane_near_building(&self, b: BuildingID) -> LaneID[src]

pub fn get_boundary_polygon(&self) -> &Polygon[src]

pub fn pathfind(&self, req: PathRequest) -> Option<Path>[src]

pub fn should_use_transit(
    &self,
    start: Position,
    end: Position
) -> Option<(BusStopID, Option<BusStopID>, BusRouteID)>
[src]

pub fn get_turn_group(&self, t: TurnID) -> Option<TurnGroupID>[src]

pub fn find_r_by_osm_id(&self, id: OriginalRoad) -> Result<RoadID, String>[src]

pub fn find_i_by_osm_id(&self, id: NodeID) -> Result<IntersectionID, String>[src]

pub fn find_b_by_osm_id(&self, id: OsmID) -> Option<BuildingID>[src]

pub fn find_br(&self, id: RelationID) -> Option<BusRouteID>[src]

pub fn right_shift(
    &self,
    pl: PolyLine,
    width: Distance
) -> Result<PolyLine, String>
[src]

pub fn must_right_shift(&self, pl: PolyLine, width: Distance) -> PolyLine[src]

pub fn left_shift(
    &self,
    pl: PolyLine,
    width: Distance
) -> Result<PolyLine, String>
[src]

pub fn must_left_shift(&self, pl: PolyLine, width: Distance) -> PolyLine[src]

pub fn right_shift_line(&self, line: Line, width: Distance) -> Line[src]

pub fn left_shift_line(&self, line: Line, width: Distance) -> Line[src]

pub fn driving_side_angle(&self, a: Angle) -> Angle[src]

pub fn get_driving_side(&self) -> DrivingSide[src]

pub fn hack_override_offstreet_spots(&mut self, spots_per_bldg: usize)[src]

pub fn hack_override_offstreet_spots_individ(
    &mut self,
    b: BuildingID,
    spots: usize
)
[src]

pub fn hack_override_bldg_type(
    &mut self,
    b: BuildingID,
    bldg_type: BuildingType
)
[src]

pub fn hack_override_orig_spawn_times(
    &mut self,
    br: BusRouteID,
    times: Vec<Time>
)
[src]

pub fn get_languages(&self) -> BTreeSet<&str>[src]

Trait Implementations

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

impl Serialize for Map[src]

Auto Trait Implementations

impl RefUnwindSafe for Map

impl Send for Map

impl Sync for Map

impl Unpin for Map

impl UnwindSafe for Map

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, 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>,