This commit is contained in:
dabreegster 2021-10-05 19:27:29 +00:00
parent af69a1e666
commit 66cdfbcd2d
17 changed files with 74 additions and 70 deletions

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e9cc52539fe98199/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a> = r&quot;Tue, 05 Oct 2021 18:48:59 +0000&quot;;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-e9cc52539fe98199/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.str.html">str</a> = r&quot;Tue, 05 Oct 2021 19:26:35 +0000&quot;;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
<script src="../../../main.js"></script>
</body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Recalculate the driveways of some buildings after map edits."><meta name="keywords" content="rust, rustlang, rust-lang, fix_building_driveways"><title>fix_building_driveways in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="fix_building_driveways" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">fix_building_driveways</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#676-716" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn fix_building_driveways(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Recalculate the driveways of some buildings after map edits.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Recalculate the driveways of some buildings after map edits."><meta name="keywords" content="rust, rustlang, rust-lang, fix_building_driveways"><title>fix_building_driveways in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="fix_building_driveways" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">fix_building_driveways</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#653-693" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn fix_building_driveways(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;input: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Recalculate the driveways of some buildings after map edits.</p>
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Recalculate the driveways of some parking lots after map edits."><meta name="keywords" content="rust, rustlang, rust-lang, fix_parking_lot_driveways"><title>fix_parking_lot_driveways in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="fix_parking_lot_driveways" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">fix_parking_lot_driveways</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#719-754" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn fix_parking_lot_driveways(map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, input: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>&gt;)</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Recalculate the driveways of some parking lots after map edits.</p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Recalculate the driveways of some parking lots after map edits."><meta name="keywords" content="rust, rustlang, rust-lang, fix_parking_lot_driveways"><title>fix_parking_lot_driveways in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="fix_parking_lot_driveways" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">fix_parking_lot_driveways</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#696-731" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn fix_parking_lot_driveways(map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, input: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/parking_lot/struct.ParkingLotID.html" title="struct map_model::objects::parking_lot::ParkingLotID">ParkingLotID</a>&gt;)</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Recalculate the driveways of some parking lots after map edits.</p>
</div></details></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `modify_lanes` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, modify_lanes"><title>modify_lanes in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="modify_lanes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">modify_lanes</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#525-591" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn modify_lanes(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;r: <a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lanes_ltr: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `modify_lanes` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, modify_lanes"><title>modify_lanes in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="modify_lanes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">modify_lanes</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#526-568" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn modify_lanes(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;r: <a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;lanes_ltr: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `recalculate_intersection_polygon` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, recalculate_intersection_polygon"><title>recalculate_intersection_polygon in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="recalculate_intersection_polygon" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">recalculate_intersection_polygon</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#594-673" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn recalculate_intersection_polygon(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;changed_road: <a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;changed_road_width: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `recalculate_intersection_polygon` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, recalculate_intersection_polygon"><title>recalculate_intersection_polygon in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="recalculate_intersection_polygon" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">recalculate_intersection_polygon</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#571-650" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn recalculate_intersection_polygon(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;changed_road: <a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;changed_road_width: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: <a class="struct" href="../objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `recalculate_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, recalculate_turns"><title>recalculate_turns in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="recalculate_turns" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">recalculate_turns</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#479-523" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn recalculate_turns(<br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="struct" href="../objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `recalculate_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, recalculate_turns"><title>recalculate_turns in map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a></h2><div id="sidebar-vars" data-name="recalculate_turns" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">map_model</a>::<wbr><a href="index.html">edits</a>::<wbr><a class="fn" href="#">recalculate_turns</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#480-524" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn recalculate_turns(<br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="struct" href="../objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;mut <a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;effects: &amp;mut <a class="struct" href="struct.EditEffects.html" title="struct map_model::edits::EditEffects">EditEffects</a><br>)</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="map_model" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https:&#x2F;&#x2F;a-b-street.github.io&#x2F;docs&#x2F;tech&#x2F;map&#x2F;edits.html."><meta name="keywords" content="rust, rustlang, rust-lang, edits"><title>map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module edits</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="edits" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="#">edits</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#1-976" title="goto source code">[src]</a></span></h1><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Once a Map exists, the player can edit it in the UI (producing <code>MapEdits</code> in-memory), then save
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https:&#x2F;&#x2F;a-b-street.github.io&#x2F;docs&#x2F;tech&#x2F;map&#x2F;edits.html."><meta name="keywords" content="rust, rustlang, rust-lang, edits"><title>map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module edits</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="edits" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="#">edits</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#1-977" title="goto source code">[src]</a></span></h1><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Once a Map exists, the player can edit it in the UI (producing <code>MapEdits</code> in-memory), then save
the changes to a file (as <code>PermanentMapEdits</code>). See
<a href="https://a-b-street.github.io/docs/tech/map/edits.html">https://a-b-street.github.io/docs/tech/map/edits.html</a>.</p>
</div></details><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>

File diff suppressed because one or more lines are too long

View File

@ -18,14 +18,14 @@ this is a map-wide setting.</p>
</div><span id="structfield.original_intersections" class="structfield small-section-header"><a href="#structfield.original_intersections" class="anchor field"></a><code>original_intersections: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <a class="enum" href="enum.EditIntersection.html" title="enum map_model::edits::EditIntersection">EditIntersection</a>&gt;</code></span><span id="structfield.changed_routes" class="structfield small-section-header"><a href="#structfield.changed_routes" class="anchor field"></a><code>changed_routes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../objects/bus_stop/struct.BusRouteID.html" title="struct map_model::objects::bus_stop::BusRouteID">BusRouteID</a>&gt;</code></span><span id="structfield.proposal_description" class="structfield small-section-header"><a href="#structfield.proposal_description" class="anchor field"></a><code>proposal_description: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code></span><div class="docblock"><p>Some edits are included in the game by default, in data/system/proposals, as “community
proposals.” They require a description and may have a link to a write-up.</p>
</div><span id="structfield.proposal_link" class="structfield small-section-header"><a href="#structfield.proposal_link" class="anchor field"></a><code>proposal_link: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/perma.rs.html#135-149" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_permanent" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/perma.rs.html#137-148" title="goto source code">[src]</a></div><a href="#method.to_permanent" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_permanent" class="fnname">to_permanent</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a></h4></div></summary><div class="docblock"><p>Encode the edits in a permanent format, referring to more-stable OSM IDs.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#204-350" title="goto source code">[src]</a></div><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#205-217" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.new" class="fnname">new</a>() -&gt; <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div><div id="method.load_from_file" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#219-231" title="goto source code">[src]</a></div><a href="#method.load_from_file" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_file" class="fnname">load_from_file</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;path: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.load_from_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#233-244" title="goto source code">[src]</a></div><a href="#method.load_from_bytes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_bytes" class="fnname">load_from_bytes</a>(map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, bytes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.u8.html">u8</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.save" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#246-256" title="goto source code">[src]</a></div><a href="#method.save" class="anchor"></a><h4 class="code-header">fn <a href="#method.save" class="fnname">save</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><div id="method.update_derived" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#258-288" title="goto source code">[src]</a></div><a href="#method.update_derived" class="anchor"></a><h4 class="code-header">fn <a href="#method.update_derived" class="fnname">update_derived</a>(&amp;mut self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.compress" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#291-314" title="goto source code">[src]</a></div><a href="#method.compress" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.compress" class="fnname">compress</a>(&amp;mut self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div></summary><div class="docblock"><p>Assumes update_derived has been called.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.changed_lanes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#318-341" title="goto source code">[src]</a></div><a href="#method.changed_lanes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.changed_lanes" class="fnname">changed_lanes</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a></h4></div></summary><div class="docblock"><p>Pick apart changed_roads and figure out if an entire road was edited, or just a few lanes.
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#205-351" title="goto source code">[src]</a></div><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#206-218" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.new" class="fnname">new</a>() -&gt; <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div><div id="method.load_from_file" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#220-232" title="goto source code">[src]</a></div><a href="#method.load_from_file" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_file" class="fnname">load_from_file</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;path: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.load_from_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#234-245" title="goto source code">[src]</a></div><a href="#method.load_from_bytes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_bytes" class="fnname">load_from_bytes</a>(map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>, bytes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.u8.html">u8</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.save" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#247-257" title="goto source code">[src]</a></div><a href="#method.save" class="anchor"></a><h4 class="code-header">fn <a href="#method.save" class="fnname">save</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><div id="method.update_derived" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#259-289" title="goto source code">[src]</a></div><a href="#method.update_derived" class="anchor"></a><h4 class="code-header">fn <a href="#method.update_derived" class="fnname">update_derived</a>(&amp;mut self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.compress" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#292-315" title="goto source code">[src]</a></div><a href="#method.compress" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.compress" class="fnname">compress</a>(&amp;mut self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div></summary><div class="docblock"><p>Assumes update_derived has been called.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.changed_lanes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#319-342" title="goto source code">[src]</a></div><a href="#method.changed_lanes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.changed_lanes" class="fnname">changed_lanes</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="../objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a></h4></div></summary><div class="docblock"><p>Pick apart changed_roads and figure out if an entire road was edited, or just a few lanes.
Doesnt return deleted lanes.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_checksum" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#344-349" title="goto source code">[src]</a></div><a href="#method.get_checksum" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_checksum" class="fnname">get_checksum</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></div></summary><div class="docblock"><p>Produces an md5sum of the contents of the edits.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_checksum" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#345-350" title="goto source code">[src]</a></div><a href="#method.get_checksum" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_checksum" class="fnname">get_checksum</a>(&amp;self, map: &amp;<a class="struct" href="../struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></div></summary><div class="docblock"><p>Produces an md5sum of the contents of the edits.</p>
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Clone" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/1.55.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&amp;</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.55.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.55.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#352-356" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#353-355" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#353-357" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#354-356" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CMapEdits%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CMapEdits%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt; for <a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,14 +18,14 @@ this is a map-wide setting.</p>
</div><span id="structfield.original_intersections" class="structfield small-section-header"><a href="#structfield.original_intersections" class="anchor field"></a><code>original_intersections: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <a class="enum" href="edits/enum.EditIntersection.html" title="enum map_model::edits::EditIntersection">EditIntersection</a>&gt;</code></span><span id="structfield.changed_routes" class="structfield small-section-header"><a href="#structfield.changed_routes" class="anchor field"></a><code>changed_routes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="objects/bus_stop/struct.BusRouteID.html" title="struct map_model::objects::bus_stop::BusRouteID">BusRouteID</a>&gt;</code></span><span id="structfield.proposal_description" class="structfield small-section-header"><a href="#structfield.proposal_description" class="anchor field"></a><code>proposal_description: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code></span><div class="docblock"><p>Some edits are included in the game by default, in data/system/proposals, as “community
proposals.” They require a description and may have a link to a write-up.</p>
</div><span id="structfield.proposal_link" class="structfield small-section-header"><a href="#structfield.proposal_link" class="anchor field"></a><code>proposal_link: <a class="enum" href="https://doc.rust-lang.org/1.55.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/perma.rs.html#135-149" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_permanent" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/perma.rs.html#137-148" title="goto source code">[src]</a></div><a href="#method.to_permanent" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_permanent" class="fnname">to_permanent</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a></h4></div></summary><div class="docblock"><p>Encode the edits in a permanent format, referring to more-stable OSM IDs.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#204-350" title="goto source code">[src]</a></div><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#205-217" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.new" class="fnname">new</a>() -&gt; <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div><div id="method.load_from_file" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#219-231" title="goto source code">[src]</a></div><a href="#method.load_from_file" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_file" class="fnname">load_from_file</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;path: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.load_from_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#233-244" title="goto source code">[src]</a></div><a href="#method.load_from_bytes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_bytes" class="fnname">load_from_bytes</a>(map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>, bytes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.u8.html">u8</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.save" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#246-256" title="goto source code">[src]</a></div><a href="#method.save" class="anchor"></a><h4 class="code-header">fn <a href="#method.save" class="fnname">save</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><div id="method.update_derived" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#258-288" title="goto source code">[src]</a></div><a href="#method.update_derived" class="anchor"></a><h4 class="code-header">fn <a href="#method.update_derived" class="fnname">update_derived</a>(&amp;mut self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.compress" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#291-314" title="goto source code">[src]</a></div><a href="#method.compress" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.compress" class="fnname">compress</a>(&amp;mut self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div></summary><div class="docblock"><p>Assumes update_derived has been called.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.changed_lanes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#318-341" title="goto source code">[src]</a></div><a href="#method.changed_lanes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.changed_lanes" class="fnname">changed_lanes</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a></h4></div></summary><div class="docblock"><p>Pick apart changed_roads and figure out if an entire road was edited, or just a few lanes.
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#205-351" title="goto source code">[src]</a></div><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#206-218" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.new" class="fnname">new</a>() -&gt; <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div><div id="method.load_from_file" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#220-232" title="goto source code">[src]</a></div><a href="#method.load_from_file" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_file" class="fnname">load_from_file</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;path: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.load_from_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#234-245" title="goto source code">[src]</a></div><a href="#method.load_from_bytes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.load_from_bytes" class="fnname">load_from_bytes</a>(map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>, bytes: <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.u8.html">u8</a>&gt;) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt;</h4></div><div id="method.save" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#247-257" title="goto source code">[src]</a></div><a href="#method.save" class="anchor"></a><h4 class="code-header">fn <a href="#method.save" class="fnname">save</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><div id="method.update_derived" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#259-289" title="goto source code">[src]</a></div><a href="#method.update_derived" class="anchor"></a><h4 class="code-header">fn <a href="#method.update_derived" class="fnname">update_derived</a>(&amp;mut self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div><details class="rustdoc-toggle method-toggle" open><summary><div id="method.compress" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#292-315" title="goto source code">[src]</a></div><a href="#method.compress" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.compress" class="fnname">compress</a>(&amp;mut self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>)</h4></div></summary><div class="docblock"><p>Assumes update_derived has been called.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.changed_lanes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#319-342" title="goto source code">[src]</a></div><a href="#method.changed_lanes" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.changed_lanes" class="fnname">changed_lanes</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="objects/lane/struct.LaneID.html" title="struct map_model::objects::lane::LaneID">LaneID</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="struct" href="objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.tuple.html">)</a></h4></div></summary><div class="docblock"><p>Pick apart changed_roads and figure out if an entire road was edited, or just a few lanes.
Doesnt return deleted lanes.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_checksum" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#344-349" title="goto source code">[src]</a></div><a href="#method.get_checksum" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_checksum" class="fnname">get_checksum</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></div></summary><div class="docblock"><p>Produces an md5sum of the contents of the edits.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get_checksum" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#345-350" title="goto source code">[src]</a></div><a href="#method.get_checksum" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.get_checksum" class="fnname">get_checksum</a>(&amp;self, map: &amp;<a class="struct" href="struct.Map.html" title="struct map_model::Map">Map</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.55.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></div></summary><div class="docblock"><p>Produces an md5sum of the contents of the edits.</p>
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Clone" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/1.55.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&amp;</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.55.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.55.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.55.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.55.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#352-356" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#353-355" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#353-357" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#354-356" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.55.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CMapEdits%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CMapEdits%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>&gt; for <a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/map_model/edits/mod.rs.html#28" title="goto source code">[src]</a></div><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="edits/struct.MapEdits.html" title="struct map_model::edits::MapEdits">MapEdits</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

View File

@ -175,7 +175,7 @@
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;rustdoc 1.55.0 (c8dfcfe04 2021-09-06)&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Tue, 05 Oct 2021 18:48:59 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Tue, 05 Oct 2021 19:26:35 +0000&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;x86_64&quot;</span>;

View File

@ -974,6 +974,7 @@
<span id="974">974</span>
<span id="975">975</span>
<span id="976">976</span>
<span id="977">977</span>
</pre><pre class="rust">
<span class="doccomment">//! Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save</span>
<span class="doccomment">//! the changes to a file (as `PermanentMapEdits`). See</span>
@ -1176,6 +1177,7 @@
<span class="kw">pub</span> <span class="ident">added_turns</span>: <span class="ident">BTreeSet</span><span class="op">&lt;</span><span class="ident">TurnID</span><span class="op">&gt;</span>,
<span class="kw">pub</span> <span class="ident">deleted_turns</span>: <span class="ident">BTreeSet</span><span class="op">&lt;</span><span class="ident">TurnID</span><span class="op">&gt;</span>,
<span class="kw">pub</span> <span class="ident">changed_parking_lots</span>: <span class="ident">BTreeSet</span><span class="op">&lt;</span><span class="ident">ParkingLotID</span><span class="op">&gt;</span>,
<span class="ident">modified_lanes</span>: <span class="ident">BTreeSet</span><span class="op">&lt;</span><span class="ident">LaneID</span><span class="op">&gt;</span>,
}
<span class="kw">impl</span> <span class="ident">MapEdits</span> {
@ -1531,40 +1533,16 @@
}
<span class="comment">// We might&#39;ve affected the geometry of other nearby roads.</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">modified_lanes</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">road_geom_changed</span> {
<span class="ident">effects</span>.<span class="ident">changed_roads</span>.<span class="ident">insert</span>(<span class="ident">r</span>);
<span class="kw">let</span> <span class="ident">lane_specs</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">r</span>).<span class="ident">lane_specs</span>();
<span class="kw">let</span> <span class="ident">road</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">map</span>.<span class="ident">roads</span>[<span class="ident">r</span>.<span class="number">0</span>];
<span class="ident">road</span>.<span class="ident">recreate_lanes</span>(<span class="ident">lane_specs</span>);
<span class="kw">for</span> <span class="ident">lane</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">road</span>.<span class="ident">lanes</span> {
<span class="ident">modified_lanes</span>.<span class="ident">insert</span>(<span class="ident">lane</span>.<span class="ident">id</span>);
<span class="ident">effects</span>.<span class="ident">modified_lanes</span>.<span class="ident">insert</span>(<span class="ident">lane</span>.<span class="ident">id</span>);
}
}
<span class="ident">modified_lanes</span>.<span class="ident">extend</span>(<span class="ident">effects</span>.<span class="ident">deleted_lanes</span>.<span class="ident">clone</span>());
<span class="comment">// Find all buildings connected to modified/deleted sidewalks</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">recalc_buildings</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_buildings</span>() {
<span class="kw">if</span> <span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">b</span>.<span class="ident">sidewalk</span>()) {
<span class="ident">recalc_buildings</span>.<span class="ident">push</span>(<span class="ident">b</span>.<span class="ident">id</span>);
}
}
<span class="ident">fix_building_driveways</span>(<span class="ident">map</span>, <span class="ident">recalc_buildings</span>, <span class="ident">effects</span>);
<span class="comment">// Same for parking lots</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">recalc_parking_lots</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
<span class="kw">for</span> <span class="ident">pl</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_parking_lots</span>() {
<span class="kw">if</span> <span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">pl</span>.<span class="ident">driving_pos</span>.<span class="ident">lane</span>())
<span class="op">|</span><span class="op">|</span> <span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">pl</span>.<span class="ident">sidewalk_pos</span>.<span class="ident">lane</span>())
{
<span class="ident">recalc_parking_lots</span>.<span class="ident">push</span>(<span class="ident">pl</span>.<span class="ident">id</span>);
<span class="ident">effects</span>.<span class="ident">changed_parking_lots</span>.<span class="ident">insert</span>(<span class="ident">pl</span>.<span class="ident">id</span>);
}
}
<span class="ident">fix_parking_lot_driveways</span>(<span class="ident">map</span>, <span class="ident">recalc_parking_lots</span>);
<span class="comment">// TODO We need to update bus stops -- they may refer to an old ID.</span>
<span class="ident">effects</span>.<span class="ident">modified_lanes</span>.<span class="ident">extend</span>(<span class="ident">effects</span>.<span class="ident">deleted_lanes</span>.<span class="ident">clone</span>());
}
<span class="comment">// Returns the other roads affected by this change, not counting changed_road.</span>
@ -1817,6 +1795,7 @@
<span class="ident">added_turns</span>: <span class="ident">BTreeSet::new</span>(),
<span class="ident">deleted_turns</span>: <span class="ident">BTreeSet::new</span>(),
<span class="ident">changed_parking_lots</span>: <span class="ident">BTreeSet::new</span>(),
<span class="ident">modified_lanes</span>: <span class="ident">BTreeSet::new</span>(),
};
<span class="comment">// Short-circuit to avoid marking pathfinder_dirty</span>
@ -1854,6 +1833,29 @@
<span class="ident">cmd</span>.<span class="ident">apply</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">effects</span>, <span class="self">self</span>);
}
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">&quot;re-snap buildings&quot;</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">recalc_buildings</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">all_buildings</span>() {
<span class="kw">if</span> <span class="ident">effects</span>.<span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">b</span>.<span class="ident">sidewalk</span>()) {
<span class="ident">recalc_buildings</span>.<span class="ident">push</span>(<span class="ident">b</span>.<span class="ident">id</span>);
}
}
<span class="ident">fix_building_driveways</span>(<span class="self">self</span>, <span class="ident">recalc_buildings</span>, <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">effects</span>);
<span class="ident">timer</span>.<span class="ident">stop</span>(<span class="string">&quot;re-snap buildings&quot;</span>);
<span class="ident">timer</span>.<span class="ident">start</span>(<span class="string">&quot;re-snap parking lots&quot;</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">recalc_parking_lots</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
<span class="kw">for</span> <span class="ident">pl</span> <span class="kw">in</span> <span class="self">self</span>.<span class="ident">all_parking_lots</span>() {
<span class="kw">if</span> <span class="ident">effects</span>.<span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">pl</span>.<span class="ident">driving_pos</span>.<span class="ident">lane</span>())
<span class="op">|</span><span class="op">|</span> <span class="ident">effects</span>.<span class="ident">modified_lanes</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">pl</span>.<span class="ident">sidewalk_pos</span>.<span class="ident">lane</span>())
{
<span class="ident">recalc_parking_lots</span>.<span class="ident">push</span>(<span class="ident">pl</span>.<span class="ident">id</span>);
<span class="ident">effects</span>.<span class="ident">changed_parking_lots</span>.<span class="ident">insert</span>(<span class="ident">pl</span>.<span class="ident">id</span>);
}
}
<span class="ident">fix_parking_lot_driveways</span>(<span class="self">self</span>, <span class="ident">recalc_parking_lots</span>);
<span class="ident">timer</span>.<span class="ident">stop</span>(<span class="string">&quot;re-snap parking lots&quot;</span>);
<span class="comment">// Might need to update bus stops.</span>
<span class="kw">if</span> <span class="ident">enforce_valid</span> {
<span class="kw">for</span> <span class="ident">id</span> <span class="kw">in</span> <span class="kw-2">&amp;</span><span class="ident">effects</span>.<span class="ident">changed_roads</span> {