<linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../map_model/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass="location">Struct Map</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#fields">Fields</a><divclass="sidebar-links"><ahref="#structfield.areas">areas</a><ahref="#structfield.boundary_polygon">boundary_polygon</a><ahref="#structfield.bounds">bounds</a><ahref="#structfield.buildings">buildings</a><ahref="#structfield.bus_routes">bus_routes</a><ahref="#structfield.bus_stops">bus_stops</a><ahref="#structfield.config">config</a><ahref="#structfield.edits">edits</a><ahref="#structfield.gps_bounds">gps_bounds</a><ahref="#structfield.intersections">intersections</a><ahref="#structfield.lanes">lanes</a><ahref="#structfield.name">name</a><ahref="#structfield.parking_lots">parking_lots</a><ahref="#structfield.pathfinder">pathfinder</a><ahref="#structfield.pathfinder_dirty">pathfinder_dirty</a><ahref="#structfield.roads">roads</a><ahref="#structfield.routing_params">routing_params</a><ahref="#structfield.stop_signs">stop_signs</a><ahref="#structfield.traffic_signals">traffic_signals</a><ahref="#structfield.turns">turns</a><ahref="#structfield.zones">zones</a></div><aclass="sidebar-title"href="#implementations">Methods</a><divclass="sidebar-links"><ahref="#method.all_areas">all_areas</a><ahref="#method.all_buildings">all_buildings</a><ahref="#method.all_bus_routes">all_bus_routes</a><ahref="#method.all_bus_stops">all_bus_stops</a><ahref="#method.all_incoming_borders">all_incoming_borders</a><ahref="#method.all_intersections">all_intersections</a><ahref="#method.all_lanes">all_lanes</a><ahref="#method.all_outgoing_borders">all_outgoing_borders</a><ahref="#method.all_parking_lots">all_parking_lots</a><ahref="#method.all_roads">all_roads</a><ahref="#method.all_turns">all_turns</a><ahref="#method.all_zones">all_zones</a><ahref="#method.apply_edits">apply_edits</a><ahref="#method.blank">blank</a><ahref="#method.building_to_road">building_to_road</a><ahref="#method.create_from_raw">create_from_raw</a><ahref="#method.edit_road_cmd">edit_road_cmd</a><ahref="#method.find_b_by_osm_id">find_b_by_osm_id</a><ahref="#method.find_br">find_br</a><ahref="#method.find_driving_lane_near_building">find_driving_lane_near_building</a><ahref="#method.find_i_by_osm_id">find_i_by_osm_id</a><ahref="#method.find_r_by_osm_id">find_r_by_osm_id</a><ahref="#method.get_a">get_a</a><ahref="#method.get_b">get_b</a><ahref="#method.get_boundary_polygon">get_boundary_polygon</a><ahref="#method.get_bounds">get_bounds</a><ahref="#method.get_br">get_br</a><ahref="#method.get_bs">get_bs</a><ahref="#method.get_bus_route">get_bus_route</a><ahref="#method.get_city_name">get_city_name</a><ahref="#method.get_config">get_config</a><ahref="#method.get_edits">get_edits</a><ahref="#method.get_gps_bounds">get_gps_bounds</a><ahref="#method.get_i">get_i</a><ahref="#method.get_i_edit">get_i_edit</a><ahref="#method.get_l">get_l</a><ahref="#method.get_languages">get_languages</a><ahref="#method.get_movement">get_movement</a><ahref="#method.get_name">get_name</a><ahref="#method.get_next_roads">get_next_roads</a><ahref="#method.get_next_turns_and_lanes">get_next_turns_and_lanes</a><ahref="#method.get_parent">get_parent</a><ahref="#method.get_pl">get_pl</a><ahref="#method.get_r">get_r</a><ahref="#method.get_r_edit">get_r_edit</a><ahref="#method.get_routes_serving_stop">get_routes_serving_stop</a><ahref="#method.get_stop_sign">get_stop_sign</a><ahref="#method.get_t">get_t</a><ahref="#method.get_traffic_signal">get_traffic_signal</a><ahref="#method.get_turn_between">get_turn_
</div><h4id="method.incremental_edit_traffic_signal"class="method"><code>pub fn <ahref="#method.incremental_edit_traffic_signal"class="fnname">incremental_edit_traffic_signal</a>(&mut self, signal: <aclass="struct"href="../map_model/objects/traffic_signals/struct.ControlTrafficSignal.html"title="struct map_model::objects::traffic_signals::ControlTrafficSignal">ControlTrafficSignal</a>)</code><aclass="srclink"href="../src/map_model/edits/mod.rs.html#665-671"title="goto source code">[src]</a></h4><divclass="docblock"><p>Since the player is in the middle of editing, the signal may not be valid. Don't go through
</div><h4id="method.all_outgoing_borders"class="method"><code>pub fn <ahref="#method.all_outgoing_borders"class="fnname">all_outgoing_borders</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><&<aclass="struct"href="../map_model/objects/intersection/struct.Intersection.html"title="struct map_model::objects::intersection::Intersection">Intersection</a>></code><aclass="srclink"href="../src/map_model/map.rs.html#472-480"title="goto source code">[src]</a></h4><h4id="method.save"class="method"><code>pub fn <ahref="#method.save"class="fnname">save</a>(&self)</code><aclass="srclink"href="../src/map_model/map.rs.html#482-487"title="goto source code">[src]</a></h4><h4id="method.find_driving_lane_near_building"class="method"><code>pub fn <ahref="#method.find_driving_lane_near_building"class="fnname">find_driving_lane_near_building</a>(&self, b: <aclass="struct"href="../map_model/objects/building/struct.BuildingID.html"title="struct map_model::objects::building::BuildingID">BuildingID</a>) -><aclass="struct"href="../map_model/objects/lane/struct.LaneID.html"title="struct map_model::objects::lane::LaneID">LaneID</a></code><aclass="srclink"href="../src/map_model/map.rs.html#494-544"title="goto source code">[src]</a></h4><divclass="docblock"><p>Cars trying to park near this building should head for the driving lane returned here, then
</div><h4id="method.routing_params"class="method"><code>pub fn <ahref="#method.routing_params"class="fnname">routing_params</a>(&self) ->&<aclass="struct"href="../map_model/pathfind/struct.RoutingParams.html"title="struct map_model::pathfind::RoutingParams">RoutingParams</a></code><aclass="srclink"href="../src/map_model/map.rs.html#725-727"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the routing params baked into the map.</p>
</div></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><h3id="impl-Deserialize%3C%27de%3E"class="impl"><codeclass="in-band">impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.123/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="../map_model/struct.Map.html"title="struct map_model::Map">Map</a></code><ahref="#impl-Deserialize%3C%27de%3E"class="anchor"></a><aclass="srclink"href="../src/map_model/lib.rs.html#81"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.deserialize"class="method hidden"><code>fn <ahref="https://docs.rs/serde/1.0.123/serde/de/trait.Deserialize.html#tymethod.deserialize"class="fnname">deserialize</a><__D>(__deserializer: __D) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, __D::<aclass="type"href="https://docs.rs/serde/1.0.123/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> __D: <aclass="trait"href="https://docs.rs/serde/1.0.123/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><aclass="srclink"href="../src/map_model/lib.rs.html#81"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.123/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3id="impl-Serialize"class="impl"><codeclass="in-band">impl <aclass="trait"href="https://docs.rs/serde/1.0.123/serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a> for <aclass="struct"href="../map_model/struct.Map.html"title="struct map_model::Map">Map</a></code><ahref="#impl-Serialize"class="anchor"></a><aclass="srclink"href="../src/map_model/lib.rs.html#81"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.serialize"class="method hidden"><code>fn <ahref="https://docs.rs/serde/1.0.123/serde/ser/trait.Serialize.html#tymethod.serialize"class="fnname">serialize</a><__S>(&self, __serializer: __S) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><__S::<aclass="type"href="https://docs.rs/serde/1.0.123/serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, __S::<aclass="type"href="https://docs.rs/serde/1.0.123/serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><spanclass="where fmt-newline">where<br> __S: <aclass="trait"href="https://docs.rs/serde/1.0.123/serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>, </span></code><aclass="srclink"href="../src/map_model/lib.rs.html#81"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Serialize this value into the given Serde serializer. <ahref="https://docs.rs/serde/1.0.123/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
</div></div><h3id="impl-Into%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref="#impl-Into%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#541-548"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into"class="fnname">into</a>(self) -> U</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-547"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-Same%3CT%3E"class="impl"><codeclass="in-band">impl<T> Same<T> for T</code><ahref="#impl-Same%3CT%3E"class="anchor"></a></h3><divclass="impl-items"><h4id="associatedtype.Output"class="type"><code>type <ahref="#associatedtype.Output"class="type">Output</a> = T</code></h4><divclass='docblock'><p>Should always be <code>Self</code></p>
</div></div><h3id="impl-TryFrom%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589-598"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#595-597"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-TryInto%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#575-584"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error-1"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#581-583"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-VZip%3CV%3E"class="impl"><codeclass="in-band">impl<V, T> VZip<V> for T <spanclass="where fmt-newline">where<br> V: MultiLane<T>, </span></code><ahref="#impl-VZip%3CV%3E"class="anchor"></a></h3><divclass="impl-items"><h4id="method.vzip"class="method hidden"><code>pub fn <ahref="#method.vzip"class="fnname">vzip</a>(self) -> V</code></h4></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><script>window.rootPath="../";window.currentCrate="map_model";</script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>