This commit is contained in:
dabreegster 2022-11-12 19:12:06 +00:00
parent e4dfdc33fb
commit 92175bad75
55 changed files with 287 additions and 216 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,14 +11,14 @@ the event and immediately apply the transition. <a>Read more</a></div></details>
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SimpleState%3CApp%3E-for-ShareProposal" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/share.rs.html#112-188">source</a><a href="#impl-SimpleState%3CApp%3E-for-ShareProposal" class="anchor"></a><h3 class="code-header in-band">impl SimpleState&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../save/share/struct.ShareProposal.html" title="struct ltn::save::share::ShareProposal">ShareProposal</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_click-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/share.rs.html#113-179">source</a><a href="#method.on_click-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;x: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;_: &amp;mut Panel<br>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Called when something on the panel has been clicked. Since the action is just a string,
the fallback case can just use <code>unreachable!()</code>. <a>Read more</a></div></details><section id="method.draw_baselayer-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/share.rs.html#181-183">source</a><a href="#method.draw_baselayer-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section><section id="method.draw-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/share.rs.html#185-187">source</a><a href="#method.draw-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_click_custom-1" class="method trait-impl has-srclink"><a href="#method.on_click_custom-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click_custom</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;_ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_app: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A,<br>&nbsp;&nbsp;&nbsp;&nbsp;_action: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn CloneableAny + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_panel: &amp;mut Panel<br>) -&gt; Transition&lt;A&gt;</h4></section></summary><div class='docblock'>Called when something on the panel has been clicked.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.panel_changed-1" class="method trait-impl has-srclink"><a href="#method.panel_changed-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">panel_changed</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut Panel<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Transition&lt;A&gt;&gt;</h4></section></summary><div class='docblock'>Called when something on the panel has changed. If a transition is returned, stop handling
the event and immediately apply the transition. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_mouseover-1" class="method trait-impl has-srclink"><a href="#method.on_mouseover-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_mouseover</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Called when the mouse has moved.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.other_event-1" class="method trait-impl has-srclink"><a href="#method.other_event-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">other_event</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; Transition&lt;A&gt;</h4></section></summary><div class='docblock'>If a panel <code>on_click</code> event didnt occur and <code>panel_changed</code> didnt return transition, then
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangeFilterType" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#424-456">source</a><a href="#impl-State%3CApp%3E-for-ChangeFilterType" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ChangeFilterType.html" title="struct ltn::edit::ChangeFilterType">ChangeFilterType</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#425-446">source</a><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#448-450">source</a><a href="#method.draw_baselayer-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#452-455">source</a><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-6" class="method trait-impl has-srclink"><a href="#method.on_destroy-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-6" class="method trait-impl has-srclink"><a href="#method.recreate-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangeFilterType" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#414-446">source</a><a href="#impl-State%3CApp%3E-for-ChangeFilterType" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ChangeFilterType.html" title="struct ltn::edit::ChangeFilterType">ChangeFilterType</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#415-436">source</a><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#438-440">source</a><a href="#method.draw_baselayer-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#442-445">source</a><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-6" class="method trait-impl has-srclink"><a href="#method.on_destroy-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-6" class="method trait-impl has-srclink"><a href="#method.recreate-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangedRoutes" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/impact/ui.rs.html#385-419">source</a><a href="#impl-State%3CApp%3E-for-ChangedRoutes" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../impact/ui/struct.ChangedRoutes.html" title="struct ltn::impact::ui::ChangedRoutes">ChangedRoutes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/impact/ui.rs.html#386-411">source</a><a href="#method.event-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/impact/ui.rs.html#413-418">source</a><a href="#method.draw-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-9" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-8" class="method trait-impl has-srclink"><a href="#method.on_destroy-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-8" class="method trait-impl has-srclink"><a href="#method.recreate-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-Crossings" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/crossings.rs.html#78-177">source</a><a href="#impl-State%3CApp%3E-for-Crossings" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../crossings/struct.Crossings.html" title="struct ltn::crossings::Crossings">Crossings</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/crossings.rs.html#79-157">source</a><a href="#method.event-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/crossings.rs.html#159-172">source</a><a href="#method.draw-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/crossings.rs.html#174-176">source</a><a href="#method.recreate-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-2" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-1" class="method trait-impl has-srclink"><a href="#method.on_destroy-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-CustomizeBoundary" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/customize_boundary.rs.html#41-71">source</a><a href="#impl-State%3CApp%3E-for-CustomizeBoundary" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../customize_boundary/struct.CustomizeBoundary.html" title="struct ltn::customize_boundary::CustomizeBoundary">CustomizeBoundary</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/customize_boundary.rs.html#42-65">source</a><a href="#method.event-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/customize_boundary.rs.html#67-70">source</a><a href="#method.draw-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, _: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-3" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-2" class="method trait-impl has-srclink"><a href="#method.on_destroy-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-2" class="method trait-impl has-srclink"><a href="#method.recreate-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-DesignLTN" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/design_ltn.rs.html#140-227">source</a><a href="#impl-State%3CApp%3E-for-DesignLTN" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../design_ltn/struct.DesignLTN.html" title="struct ltn::design_ltn::DesignLTN">DesignLTN</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/design_ltn.rs.html#141-195">source</a><a href="#method.event-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/design_ltn.rs.html#197-199">source</a><a href="#method.draw_baselayer-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/design_ltn.rs.html#201-222">source</a><a href="#method.draw-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/design_ltn.rs.html#224-226">source</a><a href="#method.recreate-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-3" class="method trait-impl has-srclink"><a href="#method.on_destroy-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-PickArea" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/pick_area.rs.html#71-121">source</a><a href="#impl-State%3CApp%3E-for-PickArea" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../pick_area/struct.PickArea.html" title="struct ltn::pick_area::PickArea">PickArea</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/pick_area.rs.html#72-99">source</a><a href="#method.event-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/pick_area.rs.html#101-103">source</a><a href="#method.draw_baselayer-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/pick_area.rs.html#105-116">source</a><a href="#method.draw-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/pick_area.rs.html#118-120">source</a><a href="#method.recreate-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-9" class="method trait-impl has-srclink"><a href="#method.on_destroy-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveBusGate" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#330-356">source</a><a href="#impl-State%3CApp%3E-for-ResolveBusGate" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#331-346">source</a><a href="#method.event-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#348-350">source</a><a href="#method.draw_baselayer-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#352-355">source</a><a href="#method.draw-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-5" class="method trait-impl has-srclink"><a href="#method.on_destroy-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-5" class="method trait-impl has-srclink"><a href="#method.recreate-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#223-281">source</a><a href="#impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ResolveOneWayAndFilter.html" title="struct ltn::edit::ResolveOneWayAndFilter">ResolveOneWayAndFilter</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#224-271">source</a><a href="#method.event-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#273-275">source</a><a href="#method.draw_baselayer-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#277-280">source</a><a href="#method.draw-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-4" class="method trait-impl has-srclink"><a href="#method.on_destroy-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-4" class="method trait-impl has-srclink"><a href="#method.recreate-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-9" class="method trait-impl has-srclink"><a href="#method.on_destroy-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveBusGate" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#316-346">source</a><a href="#impl-State%3CApp%3E-for-ResolveBusGate" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#317-336">source</a><a href="#method.event-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#338-340">source</a><a href="#method.draw_baselayer-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#342-345">source</a><a href="#method.draw-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-5" class="method trait-impl has-srclink"><a href="#method.on_destroy-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-5" class="method trait-impl has-srclink"><a href="#method.recreate-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#211-233">source</a><a href="#impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../edit/struct.ResolveOneWayAndFilter.html" title="struct ltn::edit::ResolveOneWayAndFilter">ResolveOneWayAndFilter</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#212-223">source</a><a href="#method.event-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#225-227">source</a><a href="#method.draw_baselayer-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/edit/mod.rs.html#229-232">source</a><a href="#method.draw-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-4" class="method trait-impl has-srclink"><a href="#method.on_destroy-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-4" class="method trait-impl has-srclink"><a href="#method.recreate-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-RoutePlanner" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/route_planner.rs.html#334-412">source</a><a href="#impl-State%3CApp%3E-for-RoutePlanner" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../route_planner/struct.RoutePlanner.html" title="struct ltn::route_planner::RoutePlanner">RoutePlanner</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/route_planner.rs.html#335-394">source</a><a href="#method.event-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/route_planner.rs.html#396-407">source</a><a href="#method.draw-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/route_planner.rs.html#409-411">source</a><a href="#method.recreate-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-11" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-10" class="method trait-impl has-srclink"><a href="#method.on_destroy-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-SaveDialog" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/mod.rs.html#261-322">source</a><a href="#impl-State%3CApp%3E-for-SaveDialog" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../save/struct.SaveDialog.html" title="struct ltn::save::SaveDialog">SaveDialog</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/mod.rs.html#262-312">source</a><a href="#method.event-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/mod.rs.html#314-316">source</a><a href="#method.draw_baselayer-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/save/mod.rs.html#318-321">source</a><a href="#method.draw-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-11" class="method trait-impl has-srclink"><a href="#method.on_destroy-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-11" class="method trait-impl has-srclink"><a href="#method.recreate-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-SelectBoundary" class="impl has-srclink"><a class="srclink rightside" href="../../src/ltn/select_boundary.rs.html#259-343">source</a><a href="#impl-State%3CApp%3E-for-SelectBoundary" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="../select_boundary/struct.SelectBoundary.html" title="struct ltn::select_boundary::SelectBoundary">SelectBoundary</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/select_boundary.rs.html#260-330">source</a><a href="#method.event-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ltn/select_boundary.rs.html#332-342">source</a><a href="#method.draw-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-14" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-12" class="method trait-impl has-srclink"><a href="#method.on_destroy-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-12" class="method trait-impl has-srclink"><a href="#method.recreate-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `color_grid` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, color_grid"><title>color_grid in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">color_grid</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#362-377">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn color_grid(ctx: &amp;mut EventCtx&lt;'_&gt;) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `color_grid` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, color_grid"><title>color_grid in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">color_grid</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#387-402">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn color_grid(ctx: &amp;mut EventCtx&lt;'_&gt;) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `entry` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, entry"><title>entry in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">entry</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#347-360">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn entry(ctx: &amp;mut EventCtx&lt;'_&gt;, color: Color, label: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `entry` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, entry"><title>entry in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">entry</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#372-385">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn entry(ctx: &amp;mut EventCtx&lt;'_&gt;, color: Color, label: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `make_zoom_controls` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, make_zoom_controls"><title>make_zoom_controls in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">make_zoom_controls</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#208-242">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn make_zoom_controls(ctx: &amp;mut EventCtx&lt;'_&gt;) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `make_zoom_controls` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, make_zoom_controls"><title>make_zoom_controls in ltn::components::layers - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::components::layers</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">components</a>::<wbr><a href="index.html">layers</a>::<wbr><a class="fn" href="#">make_zoom_controls</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/components/layers.rs.html#221-255">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn make_zoom_controls(ctx: &amp;mut EventCtx&lt;'_&gt;) -&gt; Widget</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `handle_world_outcome` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, handle_world_outcome"><title>handle_world_outcome in ltn::edit::filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::edit::filters</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a href="index.html">filters</a>::<wbr><a class="fn" href="#">handle_world_outcome</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/filters.rs.html#53-117">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn handle_world_outcome(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="../../app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;outcome: WorldOutcome&lt;<a class="enum" href="../enum.Obj.html" title="enum ltn::edit::Obj">Obj</a>&gt;<br>) -&gt; <a class="enum" href="../enum.EditOutcome.html" title="enum ltn::edit::EditOutcome">EditOutcome</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `handle_world_outcome` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, handle_world_outcome"><title>handle_world_outcome in ltn::edit::filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::edit::filters</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a href="index.html">filters</a>::<wbr><a class="fn" href="#">handle_world_outcome</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/filters.rs.html#53-127">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn handle_world_outcome(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="../../app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;outcome: WorldOutcome&lt;<a class="enum" href="../enum.Obj.html" title="enum ltn::edit::Obj">Obj</a>&gt;<br>) -&gt; <a class="enum" href="../enum.EditOutcome.html" title="enum ltn::edit::EditOutcome">EditOutcome</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1,2 +1,2 @@
<!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 `filters` mod in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, filters"><title>ltn::edit::filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module filters</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a class="mod" href="#">filters</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/filters.rs.html#1-117">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.handle_world_outcome.html" title="ltn::edit::filters::handle_world_outcome fn">handle_world_outcome</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.make_world.html" title="ltn::edit::filters::make_world fn">make_world</a></div><div class="item-right docblock-short">Creates clickable objects for managing filters on roads and intersections. Everything is
<!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 `filters` mod in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, filters"><title>ltn::edit::filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module filters</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a class="mod" href="#">filters</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/filters.rs.html#1-127">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.handle_world_outcome.html" title="ltn::edit::filters::handle_world_outcome fn">handle_world_outcome</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.make_world.html" title="ltn::edit::filters::make_world fn">make_world</a></div><div class="item-right docblock-short">Creates clickable objects for managing filters on roads and intersections. Everything is
invisible; the caller is responsible for drawing things.</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -0,0 +1 @@
<!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 `fix_oneway_and_add_filter` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, fix_oneway_and_add_filter"><title>fix_oneway_and_add_filter in ltn::edit - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::edit</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../ltn/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">edit</a>::<wbr><a class="fn" href="#">fix_oneway_and_add_filter</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#235-272">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn fix_oneway_and_add_filter(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="../app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;roads: &amp;[(RoadID, Distance)]<br>)</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `make_filters_along_path` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, make_filters_along_path"><title>make_filters_along_path in ltn::edit::freehand_filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::edit::freehand_filters</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a href="index.html">freehand_filters</a>::<wbr><a class="fn" href="#">make_filters_along_path</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/freehand_filters.rs.html#25-83">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn make_filters_along_path(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="../../app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;neighbourhood: &amp;<a class="struct" href="../../neighbourhood/struct.Neighbourhood.html" title="struct ltn::neighbourhood::Neighbourhood">Neighbourhood</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;path: PolyLine<br>) -&gt; <a class="type" href="../../app/type.Transition.html" title="type ltn::app::Transition">Transition</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `make_filters_along_path` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, make_filters_along_path"><title>make_filters_along_path in ltn::edit::freehand_filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In ltn::edit::freehand_filters</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a href="index.html">freehand_filters</a>::<wbr><a class="fn" href="#">make_filters_along_path</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/freehand_filters.rs.html#25-92">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn make_filters_along_path(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="../../app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;neighbourhood: &amp;<a class="struct" href="../../neighbourhood/struct.Neighbourhood.html" title="struct ltn::neighbourhood::Neighbourhood">Neighbourhood</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;path: PolyLine<br>) -&gt; <a class="type" href="../../app/type.Transition.html" title="type ltn::app::Transition">Transition</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `freehand_filters` mod in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, freehand_filters"><title>ltn::edit::freehand_filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module freehand_filters</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a class="mod" href="#">freehand_filters</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/freehand_filters.rs.html#1-83">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.event.html" title="ltn::edit::freehand_filters::event fn">event</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.make_filters_along_path.html" title="ltn::edit::freehand_filters::make_filters_along_path fn">make_filters_along_path</a><span title="Restricted Visibility">&nbsp;🔒</span> </div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `freehand_filters` mod in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, freehand_filters"><title>ltn::edit::freehand_filters - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../ltn/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module freehand_filters</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../ltn/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">ltn</a>::<wbr><a href="../index.html">edit</a>::<wbr><a class="mod" href="#">freehand_filters</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/ltn/edit/freehand_filters.rs.html#1-92">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.event.html" title="ltn::edit::freehand_filters::event fn">event</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.make_filters_along_path.html" title="ltn::edit::freehand_filters::make_filters_along_path fn">make_filters_along_path</a><span title="Restricted Visibility">&nbsp;🔒</span> </div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="ltn" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
window.SIDEBAR_ITEMS = {"enum":[["EditMode",""],["EditOutcome",""],["Obj",""]],"fn":[["road_name",""]],"mod":[["filters",""],["freehand_filters",""],["one_ways",""],["shortcuts",""]],"struct":[["ChangeFilterType",""],["EditNeighbourhood",""],["ResolveBusGate",""],["ResolveOneWayAndFilter",""]]};
window.SIDEBAR_ITEMS = {"enum":[["EditMode",""],["EditOutcome",""],["Obj",""]],"fn":[["fix_oneway_and_add_filter",""],["road_name",""]],"mod":[["filters",""],["freehand_filters",""],["one_ways",""],["shortcuts",""]],"struct":[["ChangeFilterType",""],["EditNeighbourhood",""],["ResolveBusGate",""],["ResolveOneWayAndFilter",""]]};

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

@ -11,14 +11,14 @@ the event and immediately apply the transition. <a>Read more</a></div></details>
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SimpleState%3CApp%3E-for-ShareProposal" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/share.rs.html#112-188">source</a><a href="#impl-SimpleState%3CApp%3E-for-ShareProposal" class="anchor"></a><h3 class="code-header in-band">impl SimpleState&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="save/share/struct.ShareProposal.html" title="struct ltn::save::share::ShareProposal">ShareProposal</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_click-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/share.rs.html#113-179">source</a><a href="#method.on_click-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;x: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;_: &amp;mut Panel<br>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Called when something on the panel has been clicked. Since the action is just a string,
the fallback case can just use <code>unreachable!()</code>. <a>Read more</a></div></details><section id="method.draw_baselayer-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/share.rs.html#181-183">source</a><a href="#method.draw_baselayer-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section><section id="method.draw-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/share.rs.html#185-187">source</a><a href="#method.draw-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_click_custom-1" class="method trait-impl has-srclink"><a href="#method.on_click_custom-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_click_custom</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;_ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_app: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A,<br>&nbsp;&nbsp;&nbsp;&nbsp;_action: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn CloneableAny + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_panel: &amp;mut Panel<br>) -&gt; Transition&lt;A&gt;</h4></section></summary><div class='docblock'>Called when something on the panel has been clicked.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.panel_changed-1" class="method trait-impl has-srclink"><a href="#method.panel_changed-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">panel_changed</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut Panel<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Transition&lt;A&gt;&gt;</h4></section></summary><div class='docblock'>Called when something on the panel has changed. If a transition is returned, stop handling
the event and immediately apply the transition. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_mouseover-1" class="method trait-impl has-srclink"><a href="#method.on_mouseover-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_mouseover</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Called when the mouse has moved.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.other_event-1" class="method trait-impl has-srclink"><a href="#method.other_event-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">other_event</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A) -&gt; Transition&lt;A&gt;</h4></section></summary><div class='docblock'>If a panel <code>on_click</code> event didnt occur and <code>panel_changed</code> didnt return transition, then
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangeFilterType" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#424-456">source</a><a href="#impl-State%3CApp%3E-for-ChangeFilterType" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ChangeFilterType.html" title="struct ltn::edit::ChangeFilterType">ChangeFilterType</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#425-446">source</a><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#448-450">source</a><a href="#method.draw_baselayer-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#452-455">source</a><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-6" class="method trait-impl has-srclink"><a href="#method.on_destroy-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-6" class="method trait-impl has-srclink"><a href="#method.recreate-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
call this to handle all other events. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangeFilterType" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#414-446">source</a><a href="#impl-State%3CApp%3E-for-ChangeFilterType" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ChangeFilterType.html" title="struct ltn::edit::ChangeFilterType">ChangeFilterType</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#415-436">source</a><a href="#method.event-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#438-440">source</a><a href="#method.draw_baselayer-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#442-445">source</a><a href="#method.draw-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-6" class="method trait-impl has-srclink"><a href="#method.on_destroy-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-6" class="method trait-impl has-srclink"><a href="#method.recreate-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ChangedRoutes" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/impact/ui.rs.html#385-419">source</a><a href="#impl-State%3CApp%3E-for-ChangedRoutes" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="impact/ui/struct.ChangedRoutes.html" title="struct ltn::impact::ui::ChangedRoutes">ChangedRoutes</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/impact/ui.rs.html#386-411">source</a><a href="#method.event-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/impact/ui.rs.html#413-418">source</a><a href="#method.draw-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-9" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-8" class="method trait-impl has-srclink"><a href="#method.on_destroy-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-8" class="method trait-impl has-srclink"><a href="#method.recreate-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-Crossings" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/crossings.rs.html#78-177">source</a><a href="#impl-State%3CApp%3E-for-Crossings" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="crossings/struct.Crossings.html" title="struct ltn::crossings::Crossings">Crossings</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/crossings.rs.html#79-157">source</a><a href="#method.event-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/crossings.rs.html#159-172">source</a><a href="#method.draw-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/crossings.rs.html#174-176">source</a><a href="#method.recreate-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-2" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-1" class="method trait-impl has-srclink"><a href="#method.on_destroy-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-CustomizeBoundary" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/customize_boundary.rs.html#41-71">source</a><a href="#impl-State%3CApp%3E-for-CustomizeBoundary" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="customize_boundary/struct.CustomizeBoundary.html" title="struct ltn::customize_boundary::CustomizeBoundary">CustomizeBoundary</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/customize_boundary.rs.html#42-65">source</a><a href="#method.event-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/customize_boundary.rs.html#67-70">source</a><a href="#method.draw-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, _: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-3" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-2" class="method trait-impl has-srclink"><a href="#method.on_destroy-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-2" class="method trait-impl has-srclink"><a href="#method.recreate-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-DesignLTN" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/design_ltn.rs.html#140-227">source</a><a href="#impl-State%3CApp%3E-for-DesignLTN" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="design_ltn/struct.DesignLTN.html" title="struct ltn::design_ltn::DesignLTN">DesignLTN</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/design_ltn.rs.html#141-195">source</a><a href="#method.event-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/design_ltn.rs.html#197-199">source</a><a href="#method.draw_baselayer-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/design_ltn.rs.html#201-222">source</a><a href="#method.draw-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/design_ltn.rs.html#224-226">source</a><a href="#method.recreate-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-3" class="method trait-impl has-srclink"><a href="#method.on_destroy-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-PickArea" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/pick_area.rs.html#71-121">source</a><a href="#impl-State%3CApp%3E-for-PickArea" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="pick_area/struct.PickArea.html" title="struct ltn::pick_area::PickArea">PickArea</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/pick_area.rs.html#72-99">source</a><a href="#method.event-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/pick_area.rs.html#101-103">source</a><a href="#method.draw_baselayer-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/pick_area.rs.html#105-116">source</a><a href="#method.draw-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/pick_area.rs.html#118-120">source</a><a href="#method.recreate-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-9" class="method trait-impl has-srclink"><a href="#method.on_destroy-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveBusGate" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#330-356">source</a><a href="#impl-State%3CApp%3E-for-ResolveBusGate" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#331-346">source</a><a href="#method.event-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#348-350">source</a><a href="#method.draw_baselayer-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#352-355">source</a><a href="#method.draw-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-5" class="method trait-impl has-srclink"><a href="#method.on_destroy-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-5" class="method trait-impl has-srclink"><a href="#method.recreate-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#223-281">source</a><a href="#impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ResolveOneWayAndFilter.html" title="struct ltn::edit::ResolveOneWayAndFilter">ResolveOneWayAndFilter</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#224-271">source</a><a href="#method.event-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#273-275">source</a><a href="#method.draw_baselayer-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#277-280">source</a><a href="#method.draw-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-4" class="method trait-impl has-srclink"><a href="#method.on_destroy-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-4" class="method trait-impl has-srclink"><a href="#method.recreate-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-9" class="method trait-impl has-srclink"><a href="#method.on_destroy-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveBusGate" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#316-346">source</a><a href="#impl-State%3CApp%3E-for-ResolveBusGate" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#317-336">source</a><a href="#method.event-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#338-340">source</a><a href="#method.draw_baselayer-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#342-345">source</a><a href="#method.draw-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-5" class="method trait-impl has-srclink"><a href="#method.on_destroy-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-5" class="method trait-impl has-srclink"><a href="#method.recreate-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#211-233">source</a><a href="#impl-State%3CApp%3E-for-ResolveOneWayAndFilter" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="edit/struct.ResolveOneWayAndFilter.html" title="struct ltn::edit::ResolveOneWayAndFilter">ResolveOneWayAndFilter</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#212-223">source</a><a href="#method.event-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#225-227">source</a><a href="#method.draw_baselayer-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/edit/mod.rs.html#229-232">source</a><a href="#method.draw-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-4" class="method trait-impl has-srclink"><a href="#method.on_destroy-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-4" class="method trait-impl has-srclink"><a href="#method.recreate-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-RoutePlanner" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/route_planner.rs.html#334-412">source</a><a href="#impl-State%3CApp%3E-for-RoutePlanner" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="route_planner/struct.RoutePlanner.html" title="struct ltn::route_planner::RoutePlanner">RoutePlanner</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/route_planner.rs.html#335-394">source</a><a href="#method.event-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/route_planner.rs.html#396-407">source</a><a href="#method.draw-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/route_planner.rs.html#409-411">source</a><a href="#method.recreate-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt;&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-11" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-10" class="method trait-impl has-srclink"><a href="#method.on_destroy-10" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-SaveDialog" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/mod.rs.html#261-322">source</a><a href="#impl-State%3CApp%3E-for-SaveDialog" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="save/struct.SaveDialog.html" title="struct ltn::save::SaveDialog">SaveDialog</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/mod.rs.html#262-312">source</a><a href="#method.event-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/mod.rs.html#314-316">source</a><a href="#method.draw_baselayer-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/save/mod.rs.html#318-321">source</a><a href="#method.draw-13" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-11" class="method trait-impl has-srclink"><a href="#method.on_destroy-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-11" class="method trait-impl has-srclink"><a href="#method.recreate-11" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
the <code>State</code>-specific state appropriately. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CApp%3E-for-SelectBoundary" class="impl has-srclink"><a class="srclink rightside" href="../src/ltn/select_boundary.rs.html#259-343">source</a><a href="#impl-State%3CApp%3E-for-SelectBoundary" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>&gt; for <a class="struct" href="select_boundary/struct.SelectBoundary.html" title="struct ltn::select_boundary::SelectBoundary">SelectBoundary</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/select_boundary.rs.html#260-330">source</a><a href="#method.event-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>) -&gt; <a class="type" href="app/type.Transition.html" title="type ltn::app::Transition">Transition</a></h4></section></summary><div class='docblock'>Respond to a UI event, such as input or time passing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/ltn/select_boundary.rs.html#332-342">source</a><a href="#method.draw-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="app/struct.App.html" title="struct ltn::app::App">App</a>)</h4></section></summary><div class='docblock'>Draw</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer-14" class="method trait-impl has-srclink"><a href="#method.draw_baselayer-14" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></section></summary><div class='docblock'>Specifies what to draw before draw()</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy-12" class="method trait-impl has-srclink"><a href="#method.on_destroy-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A)</h4></section></summary><div class='docblock'>Before this state is popped or replaced, call this.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate-12" class="method trait-impl has-srclink"><a href="#method.recreate-12" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut EventCtx&lt;'_&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.reference.html">&amp;mut </a>A<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn State&lt;A&gt; + 'static, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></summary><div class='docblock'>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving

View File

@ -1,2 +1,2 @@
<!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 map_gui::tools::title_screen::built_info - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</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 item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-63c5bcb4b09cf8fd/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a> = r&quot;Fri, 11 Nov 2022 21:49:17 +0000&quot;;</code></pre></div><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 map_gui::tools::title_screen::built_info - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../../normalize.css"><link rel="stylesheet" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../../ayu.css" disabled><link rel="stylesheet" href="../../../../dark.css" disabled><link rel="stylesheet" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../main.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</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 item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-63c5bcb4b09cf8fd/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a> = r&quot;Sat, 12 Nov 2022 19:10:15 +0000&quot;;</code></pre></div><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></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
pub passengers_boarding: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID, Duration)&gt;&gt;,
pub passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;,
pub started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;,
pub finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="../../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;,
pub finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, TripMode, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;,
pub problems_per_trip: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="enum.Problem.html" title="enum sim::analytics::Problem">Problem</a>)&gt;&gt;,
pub trip_log: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;PathRequest&gt;, <a class="enum" href="../events/enum.TripPhaseType.html" title="enum sim::events::TripPhaseType">TripPhaseType</a>)&gt;,
pub intersection_delays: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;IntersectionID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, Time, Duration, <a class="enum" href="../enum.AgentType.html" title="enum sim::AgentType">AgentType</a>)&gt;&gt;,
@ -25,13 +25,13 @@ running the simulation, and compare the live Analytics to the prebaked baseline
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.road_thruput" class="structfield small-section-header"><a href="#structfield.road_thruput" class="anchor field"></a><code>road_thruput: <a class="struct" href="struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;RoadID&gt;</code></span><span id="structfield.intersection_thruput" class="structfield small-section-header"><a href="#structfield.intersection_thruput" class="anchor field"></a><code>intersection_thruput: <a class="struct" href="struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;IntersectionID&gt;</code></span><span id="structfield.traffic_signal_thruput" class="structfield small-section-header"><a href="#structfield.traffic_signal_thruput" class="anchor field"></a><code>traffic_signal_thruput: <a class="struct" href="struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;CompressedMovementID&gt;</code></span><span id="structfield.demand" class="structfield small-section-header"><a href="#structfield.demand" class="anchor field"></a><code>demand: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;MovementID, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>&gt;</code></span><div class="docblock"><p>Most fields in Analytics are cumulative over time, but this is just for the current moment
in time.</p>
</div><span id="structfield.bus_arrivals" class="structfield small-section-header"><a href="#structfield.bus_arrivals" class="anchor field"></a><code>bus_arrivals: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.CarID.html" title="struct sim::CarID">CarID</a>, TransitRouteID, TransitStopID)&gt;</code></span><span id="structfield.passengers_boarding" class="structfield small-section-header"><a href="#structfield.passengers_boarding" class="anchor field"></a><code>passengers_boarding: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID, Duration)&gt;&gt;</code></span><div class="docblock"><p>For each passenger boarding, how long did they wait at the stop?</p>
</div><span id="structfield.passengers_alighting" class="structfield small-section-header"><a href="#structfield.passengers_alighting" class="anchor field"></a><code>passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;</code></span><span id="structfield.started_trips" class="structfield small-section-header"><a href="#structfield.started_trips" class="anchor field"></a><code>started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;</code></span><span id="structfield.finished_trips" class="structfield small-section-header"><a href="#structfield.finished_trips" class="anchor field"></a><code>finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="../../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;</code></span><div class="docblock"><p>Finish time, ID, mode, trip duration if successful (or None if cancelled)</p>
</div><span id="structfield.passengers_alighting" class="structfield small-section-header"><a href="#structfield.passengers_alighting" class="anchor field"></a><code>passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;</code></span><span id="structfield.started_trips" class="structfield small-section-header"><a href="#structfield.started_trips" class="anchor field"></a><code>started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;</code></span><span id="structfield.finished_trips" class="structfield small-section-header"><a href="#structfield.finished_trips" class="anchor field"></a><code>finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, TripMode, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;</code></span><div class="docblock"><p>Finish time, ID, mode, trip duration if successful (or None if cancelled)</p>
</div><span id="structfield.problems_per_trip" class="structfield small-section-header"><a href="#structfield.problems_per_trip" class="anchor field"></a><code>problems_per_trip: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="enum.Problem.html" title="enum sim::analytics::Problem">Problem</a>)&gt;&gt;</code></span><div class="docblock"><p>Record different problems that each trip encounters.</p>
</div><span id="structfield.trip_log" class="structfield small-section-header"><a href="#structfield.trip_log" class="anchor field"></a><code>trip_log: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;PathRequest&gt;, <a class="enum" href="../events/enum.TripPhaseType.html" title="enum sim::events::TripPhaseType">TripPhaseType</a>)&gt;</code></span><span id="structfield.intersection_delays" class="structfield small-section-header"><a href="#structfield.intersection_delays" class="anchor field"></a><code>intersection_delays: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;IntersectionID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, Time, Duration, <a class="enum" href="../enum.AgentType.html" title="enum sim::AgentType">AgentType</a>)&gt;&gt;</code></span><div class="docblock"><p>Only for traffic signals. The u8 is the movement index from a CompressedMovementID.</p>
</div><span id="structfield.parking_lane_changes" class="structfield small-section-header"><a href="#structfield.parking_lane_changes" class="anchor field"></a><code>parking_lane_changes: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;LaneID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>)&gt;&gt;</code></span><div class="docblock"><p>Per parking lane or lot, when does a spot become filled (true) or free (false)</p>
</div><span id="structfield.parking_lot_changes" class="structfield small-section-header"><a href="#structfield.parking_lot_changes" class="anchor field"></a><code>parking_lot_changes: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;ParkingLotID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>)&gt;&gt;</code></span><span id="structfield.alerts" class="structfield small-section-header"><a href="#structfield.alerts" class="anchor field"></a><code>alerts: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="../events/enum.AlertLocation.html" title="enum sim::events::AlertLocation">AlertLocation</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)&gt;</code></span><span id="structfield.record_anything" class="structfield small-section-header"><a href="#structfield.record_anything" class="anchor field"></a><code>record_anything: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>For benchmarking, we may want to disable collecting data.</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Analytics" class="impl has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#154-690">source</a><a href="#impl-Analytics" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#155-174">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(record_anything: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a></h4></section><section id="method.event" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#176-372">source</a><h4 class="code-header">pub fn <a href="#method.event" class="fnname">event</a>(&amp;mut self, ev: <a class="enum" href="../events/enum.Event.html" title="enum sim::events::Event">Event</a>, time: Time, map: &amp;Map)</h4></section><section id="method.record_demand" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#374-382">source</a><h4 class="code-header">pub fn <a href="#method.record_demand" class="fnname">record_demand</a>(&amp;mut self, path: &amp;Path, map: &amp;Map)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.finished_trip_time" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#388-396">source</a><h4 class="code-header">pub fn <a href="#method.finished_trip_time" class="fnname">finished_trip_time</a>(&amp;self, trip: <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;</h4></section></summary><div class="docblock"><p>Ignores the current time. Returns None for cancelled trips.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.both_finished_trips" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#399-426">source</a><h4 class="code-header">pub fn <a href="#method.both_finished_trips" class="fnname">both_finished_trips</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;before: &amp;<a class="struct" href="struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, Duration, Duration, <a class="enum" href="../../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns pairs of trip times for finished trips in both worlds. (ID, before, after, mode)</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.both_finished_trips" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#399-426">source</a><h4 class="code-header">pub fn <a href="#method.both_finished_trips" class="fnname">both_finished_trips</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;before: &amp;<a class="struct" href="struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, Duration, Duration, TripMode)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns pairs of trip times for finished trips in both worlds. (ID, before, after, mode)</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_trip_phases" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#430-451">source</a><h4 class="code-header">pub fn <a href="#method.get_trip_phases" class="fnname">get_trip_phases</a>(&amp;self, trip: <a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, map: &amp;Map) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>If calling on prebaked Analytics, be careful to pass in an unedited map, to match how the
simulation was originally run. Otherwise the paths may be nonsense.</p>
</div></details><section id="method.get_all_trip_phases" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#453-478">source</a><h4 class="code-header">pub fn <a href="#method.get_all_trip_phases" class="fnname">get_all_trip_phases</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="../struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>&gt;&gt;</h4></section><section id="method.active_agents" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#480-520">source</a><h4 class="code-header">pub fn <a href="#method.active_agents" class="fnname">active_agents</a>(&amp;self, now: Time) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parking_lane_availability" class="method has-srclink"><a class="srclink rightside" href="../../src/sim/analytics.rs.html#523-534">source</a><h4 class="code-header">pub fn <a href="#method.parking_lane_availability" class="fnname">parking_lane_availability</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;l: LaneID,<br>&nbsp;&nbsp;&nbsp;&nbsp;capacity: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns the free spots over time</p>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `count_parked_cars_per_bldg` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, count_parked_cars_per_bldg"><title>count_parked_cars_per_bldg in sim - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../sim/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="index.html">sim</a>::<wbr><a class="fn" href="#">count_parked_cars_per_bldg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/sim/sim/scenario.rs.html#354-365">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn count_parked_cars_per_bldg(scenario: &amp;<a class="struct" href="../synthpop/scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>) -&gt; Counter&lt;BuildingID&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `count_parked_cars_per_bldg` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, count_parked_cars_per_bldg"><title>count_parked_cars_per_bldg in sim - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../sim/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="index.html">sim</a>::<wbr><a class="fn" href="#">count_parked_cars_per_bldg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/sim/sim/scenario.rs.html#354-365">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn count_parked_cars_per_bldg(scenario: &amp;Scenario) -&gt; Counter&lt;BuildingID&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></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="Need to explain this trick basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."><meta name="keywords" content="rust, rustlang, rust-lang, fork_rng"><title>fork_rng in sim - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../sim/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="index.html">sim</a>::<wbr><a class="fn" href="#">fork_rng</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/synthpop/make/mod.rs.html#13">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn fork_rng(base_rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -&gt; <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Need to explain this trick basically keeps consistency between two different simulations when
<!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="Need to explain this trick basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."><meta name="keywords" content="rust, rustlang, rust-lang, fork_rng"><title>fork_rng in sim - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../sim/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="index.html">sim</a>::<wbr><a class="fn" href="#">fork_rng</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn fork_rng(base_rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -&gt; <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Need to explain this trick basically keeps consistency between two different simulations when
each one might make slightly different sequences of calls to the RNG.</p>
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `parse_modifiers` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, parse_modifiers"><title>parse_modifiers in sim::make::load - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::load</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">load</a>::<wbr><a class="fn" href="#">parse_modifiers</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/load.rs.html#42-44">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn parse_modifiers(x: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>) -&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="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../synthpop/modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a>&gt;&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `parse_modifiers` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, parse_modifiers"><title>parse_modifiers in sim::make::load - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::load</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">load</a>::<wbr><a class="fn" href="#">parse_modifiers</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/load.rs.html#42-44">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn parse_modifiers(x: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.str.html">str</a>) -&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="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;ScenarioModifier&gt;&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `ModifierList` type in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, ModifierList"><title>ModifierList in sim::make::load - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ModifierList</a></h2><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::load</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Type Definition <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">load</a>::<wbr><a class="type" href="#">ModifierList</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/load.rs.html#40">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>type ModifierList = <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../../../synthpop/modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a>&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `ModifierList` type in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, ModifierList"><title>ModifierList in sim::make::load - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ModifierList</a></h2><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::load</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Type Definition <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">load</a>::<wbr><a class="type" href="#">ModifierList</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/load.rs.html#40">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>type ModifierList = <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;ScenarioModifier&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `driving_goal` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, driving_goal"><title>driving_goal in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">driving_goal</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#314-337">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn driving_goal(<br>&nbsp;&nbsp;&nbsp;&nbsp;endpt: <a class="enum" href="../../../synthpop/endpoint/enum.TripEndpoint.html" title="enum synthpop::endpoint::TripEndpoint">TripEndpoint</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;constraints: PathConstraints,<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;Map<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="enum" href="../../enum.DrivingGoal.html" title="enum sim::DrivingGoal">DrivingGoal</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `driving_goal` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, driving_goal"><title>driving_goal in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">driving_goal</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#314-337">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn driving_goal(<br>&nbsp;&nbsp;&nbsp;&nbsp;endpt: TripEndpoint,<br>&nbsp;&nbsp;&nbsp;&nbsp;constraints: PathConstraints,<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;Map<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="enum" href="../../enum.DrivingGoal.html" title="enum sim::DrivingGoal">DrivingGoal</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `end_sidewalk_spot` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, end_sidewalk_spot"><title>end_sidewalk_spot in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">end_sidewalk_spot</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#304-312">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn end_sidewalk_spot(endpt: <a class="enum" href="../../../synthpop/endpoint/enum.TripEndpoint.html" title="enum synthpop::endpoint::TripEndpoint">TripEndpoint</a>, map: &amp;Map) -&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.SidewalkSpot.html" title="struct sim::SidewalkSpot">SidewalkSpot</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `end_sidewalk_spot` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, end_sidewalk_spot"><title>end_sidewalk_spot in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">end_sidewalk_spot</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#304-312">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn end_sidewalk_spot(endpt: TripEndpoint, map: &amp;Map) -&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.SidewalkSpot.html" title="struct sim::SidewalkSpot">SidewalkSpot</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

View File

@ -1 +1 @@
<!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 `start_sidewalk_spot` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, start_sidewalk_spot"><title>start_sidewalk_spot in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">start_sidewalk_spot</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#295-302">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn start_sidewalk_spot(endpt: <a class="enum" href="../../../synthpop/endpoint/enum.TripEndpoint.html" title="enum synthpop::endpoint::TripEndpoint">TripEndpoint</a>, map: &amp;Map) -&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.SidewalkSpot.html" title="struct sim::SidewalkSpot">SidewalkSpot</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `start_sidewalk_spot` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, start_sidewalk_spot"><title>start_sidewalk_spot in sim::make::spawner - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::make::spawner</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">spawner</a>::<wbr><a class="fn" href="#">start_sidewalk_spot</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/make/spawner.rs.html#295-302">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn start_sidewalk_spot(endpt: TripEndpoint, map: &amp;Map) -&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.SidewalkSpot.html" title="struct sim::SidewalkSpot">SidewalkSpot</a>&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></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="Simulate a curated list of scenarios to completion, and save the analytics as “prebaked results,” to later compare simulation metrics against the baseline without map edits."><meta name="keywords" content="rust, rustlang, rust-lang, prebake"><title>prebake in sim::prebake - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::prebake</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../sim/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">sim</a>::<wbr><a href="index.html">prebake</a>::<wbr><a class="fn" href="#">prebake</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/sim/prebake.rs.html#11-54">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn prebake(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;Map,<br>&nbsp;&nbsp;&nbsp;&nbsp;scenario: <a class="struct" href="../../synthpop/scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut Timer&lt;'_&gt;<br>) -&gt; <a class="struct" href="struct.PrebakeSummary.html" title="struct sim::prebake::PrebakeSummary">PrebakeSummary</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Simulate a curated list of scenarios to completion, and save the analytics as “prebaked
<!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="Simulate a curated list of scenarios to completion, and save the analytics as “prebaked results,” to later compare simulation metrics against the baseline without map edits."><meta name="keywords" content="rust, rustlang, rust-lang, prebake"><title>prebake in sim::prebake - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::prebake</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../sim/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">sim</a>::<wbr><a href="index.html">prebake</a>::<wbr><a class="fn" href="#">prebake</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/sim/prebake.rs.html#11-54">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn prebake(<br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;Map,<br>&nbsp;&nbsp;&nbsp;&nbsp;scenario: Scenario,<br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut Timer&lt;'_&gt;<br>) -&gt; <a class="struct" href="struct.PrebakeSummary.html" title="struct sim::prebake::PrebakeSummary">PrebakeSummary</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Simulate a curated list of scenarios to completion, and save the analytics as “prebaked
results,” to later compare simulation metrics against the baseline without map edits.</p>
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `count_parked_cars_per_bldg` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, count_parked_cars_per_bldg"><title>count_parked_cars_per_bldg in sim::sim::scenario - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::sim::scenario</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">sim</a>::<wbr><a href="index.html">scenario</a>::<wbr><a class="fn" href="#">count_parked_cars_per_bldg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/sim/scenario.rs.html#354-365">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn count_parked_cars_per_bldg(scenario: &amp;<a class="struct" href="../../../synthpop/scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>) -&gt; Counter&lt;BuildingID&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>
<!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 `count_parked_cars_per_bldg` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, count_parked_cars_per_bldg"><title>count_parked_cars_per_bldg in sim::sim::scenario - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></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="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../sim/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In sim::sim::scenario</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../sim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">sim</a>::<wbr><a href="index.html">scenario</a>::<wbr><a class="fn" href="#">count_parked_cars_per_bldg</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/sim/sim/scenario.rs.html#354-365">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn count_parked_cars_per_bldg(scenario: &amp;Scenario) -&gt; Counter&lt;BuildingID&gt;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
pub passengers_boarding: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID, Duration)&gt;&gt;,
pub passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;,
pub started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;,
pub finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;,
pub finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, TripMode, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;,
pub problems_per_trip: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="analytics/enum.Problem.html" title="enum sim::analytics::Problem">Problem</a>)&gt;&gt;,
pub trip_log: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;PathRequest&gt;, <a class="enum" href="events/enum.TripPhaseType.html" title="enum sim::events::TripPhaseType">TripPhaseType</a>)&gt;,
pub intersection_delays: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;IntersectionID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, Time, Duration, <a class="enum" href="enum.AgentType.html" title="enum sim::AgentType">AgentType</a>)&gt;&gt;,
@ -25,13 +25,13 @@ running the simulation, and compare the live Analytics to the prebaked baseline
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.road_thruput" class="structfield small-section-header"><a href="#structfield.road_thruput" class="anchor field"></a><code>road_thruput: <a class="struct" href="analytics/struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;RoadID&gt;</code></span><span id="structfield.intersection_thruput" class="structfield small-section-header"><a href="#structfield.intersection_thruput" class="anchor field"></a><code>intersection_thruput: <a class="struct" href="analytics/struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;IntersectionID&gt;</code></span><span id="structfield.traffic_signal_thruput" class="structfield small-section-header"><a href="#structfield.traffic_signal_thruput" class="anchor field"></a><code>traffic_signal_thruput: <a class="struct" href="analytics/struct.TimeSeriesCount.html" title="struct sim::analytics::TimeSeriesCount">TimeSeriesCount</a>&lt;CompressedMovementID&gt;</code></span><span id="structfield.demand" class="structfield small-section-header"><a href="#structfield.demand" class="anchor field"></a><code>demand: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;MovementID, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>&gt;</code></span><div class="docblock"><p>Most fields in Analytics are cumulative over time, but this is just for the current moment
in time.</p>
</div><span id="structfield.bus_arrivals" class="structfield small-section-header"><a href="#structfield.bus_arrivals" class="anchor field"></a><code>bus_arrivals: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.CarID.html" title="struct sim::CarID">CarID</a>, TransitRouteID, TransitStopID)&gt;</code></span><span id="structfield.passengers_boarding" class="structfield small-section-header"><a href="#structfield.passengers_boarding" class="anchor field"></a><code>passengers_boarding: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID, Duration)&gt;&gt;</code></span><div class="docblock"><p>For each passenger boarding, how long did they wait at the stop?</p>
</div><span id="structfield.passengers_alighting" class="structfield small-section-header"><a href="#structfield.passengers_alighting" class="anchor field"></a><code>passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;</code></span><span id="structfield.started_trips" class="structfield small-section-header"><a href="#structfield.started_trips" class="anchor field"></a><code>started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;</code></span><span id="structfield.finished_trips" class="structfield small-section-header"><a href="#structfield.finished_trips" class="anchor field"></a><code>finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;</code></span><div class="docblock"><p>Finish time, ID, mode, trip duration if successful (or None if cancelled)</p>
</div><span id="structfield.passengers_alighting" class="structfield small-section-header"><a href="#structfield.passengers_alighting" class="anchor field"></a><code>passengers_alighting: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;TransitStopID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, TransitRouteID)&gt;&gt;</code></span><span id="structfield.started_trips" class="structfield small-section-header"><a href="#structfield.started_trips" class="anchor field"></a><code>started_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, Time&gt;</code></span><span id="structfield.finished_trips" class="structfield small-section-header"><a href="#structfield.finished_trips" class="anchor field"></a><code>finished_trips: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, TripMode, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;)&gt;</code></span><div class="docblock"><p>Finish time, ID, mode, trip duration if successful (or None if cancelled)</p>
</div><span id="structfield.problems_per_trip" class="structfield small-section-header"><a href="#structfield.problems_per_trip" class="anchor field"></a><code>problems_per_trip: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="analytics/enum.Problem.html" title="enum sim::analytics::Problem">Problem</a>)&gt;&gt;</code></span><div class="docblock"><p>Record different problems that each trip encounters.</p>
</div><span id="structfield.trip_log" class="structfield small-section-header"><a href="#structfield.trip_log" class="anchor field"></a><code>trip_log: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;PathRequest&gt;, <a class="enum" href="events/enum.TripPhaseType.html" title="enum sim::events::TripPhaseType">TripPhaseType</a>)&gt;</code></span><span id="structfield.intersection_delays" class="structfield small-section-header"><a href="#structfield.intersection_delays" class="anchor field"></a><code>intersection_delays: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;IntersectionID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, Time, Duration, <a class="enum" href="enum.AgentType.html" title="enum sim::AgentType">AgentType</a>)&gt;&gt;</code></span><div class="docblock"><p>Only for traffic signals. The u8 is the movement index from a CompressedMovementID.</p>
</div><span id="structfield.parking_lane_changes" class="structfield small-section-header"><a href="#structfield.parking_lane_changes" class="anchor field"></a><code>parking_lane_changes: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;LaneID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>)&gt;&gt;</code></span><div class="docblock"><p>Per parking lane or lot, when does a spot become filled (true) or free (false)</p>
</div><span id="structfield.parking_lot_changes" class="structfield small-section-header"><a href="#structfield.parking_lot_changes" class="anchor field"></a><code>parking_lot_changes: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;ParkingLotID, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>)&gt;&gt;</code></span><span id="structfield.alerts" class="structfield small-section-header"><a href="#structfield.alerts" class="anchor field"></a><code>alerts: <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="enum" href="events/enum.AlertLocation.html" title="enum sim::events::AlertLocation">AlertLocation</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)&gt;</code></span><span id="structfield.record_anything" class="structfield small-section-header"><a href="#structfield.record_anything" class="anchor field"></a><code>record_anything: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>For benchmarking, we may want to disable collecting data.</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Analytics" class="impl has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#154-690">source</a><a href="#impl-Analytics" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#155-174">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(record_anything: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a></h4></section><section id="method.event" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#176-372">source</a><h4 class="code-header">pub fn <a href="#method.event" class="fnname">event</a>(&amp;mut self, ev: <a class="enum" href="events/enum.Event.html" title="enum sim::events::Event">Event</a>, time: Time, map: &amp;Map)</h4></section><section id="method.record_demand" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#374-382">source</a><h4 class="code-header">pub fn <a href="#method.record_demand" class="fnname">record_demand</a>(&amp;mut self, path: &amp;Path, map: &amp;Map)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.finished_trip_time" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#388-396">source</a><h4 class="code-header">pub fn <a href="#method.finished_trip_time" class="fnname">finished_trip_time</a>(&amp;self, trip: <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.65.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Duration&gt;</h4></section></summary><div class="docblock"><p>Ignores the current time. Returns None for cancelled trips.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.both_finished_trips" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#399-426">source</a><h4 class="code-header">pub fn <a href="#method.both_finished_trips" class="fnname">both_finished_trips</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;before: &amp;<a class="struct" href="analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, Duration, Duration, <a class="enum" href="../synthpop/enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns pairs of trip times for finished trips in both worlds. (ID, before, after, mode)</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.both_finished_trips" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#399-426">source</a><h4 class="code-header">pub fn <a href="#method.both_finished_trips" class="fnname">both_finished_trips</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;before: &amp;<a class="struct" href="analytics/struct.Analytics.html" title="struct sim::analytics::Analytics">Analytics</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, Duration, Duration, TripMode)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns pairs of trip times for finished trips in both worlds. (ID, before, after, mode)</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_trip_phases" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#430-451">source</a><h4 class="code-header">pub fn <a href="#method.get_trip_phases" class="fnname">get_trip_phases</a>(&amp;self, trip: <a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, map: &amp;Map) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>If calling on prebaked Analytics, be careful to pass in an unedited map, to match how the
simulation was originally run. Otherwise the paths may be nonsense.</p>
</div></details><section id="method.get_all_trip_phases" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#453-478">source</a><h4 class="code-header">pub fn <a href="#method.get_all_trip_phases" class="fnname">get_all_trip_phases</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;<a class="struct" href="struct.TripID.html" title="struct sim::TripID">TripID</a>, <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="analytics/struct.TripPhase.html" title="struct sim::analytics::TripPhase">TripPhase</a>&gt;&gt;</h4></section><section id="method.active_agents" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#480-520">source</a><h4 class="code-header">pub fn <a href="#method.active_agents" class="fnname">active_agents</a>(&amp;self, now: Time) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.parking_lane_availability" class="method has-srclink"><a class="srclink rightside" href="../src/sim/analytics.rs.html#523-534">source</a><h4 class="code-header">pub fn <a href="#method.parking_lane_availability" class="fnname">parking_lane_availability</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;now: Time,<br>&nbsp;&nbsp;&nbsp;&nbsp;l: LaneID,<br>&nbsp;&nbsp;&nbsp;&nbsp;capacity: <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(Time, <a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.usize.html">usize</a>)&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.65.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.65.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.65.0/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.65.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns the free spots over time</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

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

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

File diff suppressed because one or more lines are too long

View File

@ -459,7 +459,7 @@
<span class="comment">// Remember form settings in different tabs.
// Pick areas:
</span><span class="kw">pub </span>draw_neighbourhood_style: <span class="kw">crate</span>::pick_area::Style,
<span class="comment">// Pathfinding:
<span class="comment">// Plan a route:
</span><span class="kw">pub </span>main_road_penalty: f64,
<span class="kw">pub </span>show_walking_cycling_routes: bool,

View File

@ -375,6 +375,31 @@
<span id="375">375</span>
<span id="376">376</span>
<span id="377">377</span>
<span id="378">378</span>
<span id="379">379</span>
<span id="380">380</span>
<span id="381">381</span>
<span id="382">382</span>
<span id="383">383</span>
<span id="384">384</span>
<span id="385">385</span>
<span id="386">386</span>
<span id="387">387</span>
<span id="388">388</span>
<span id="389">389</span>
<span id="390">390</span>
<span id="391">391</span>
<span id="392">392</span>
<span id="393">393</span>
<span id="394">394</span>
<span id="395">395</span>
<span id="396">396</span>
<span id="397">397</span>
<span id="398">398</span>
<span id="399">399</span>
<span id="400">400</span>
<span id="401">401</span>
<span id="402">402</span>
</pre><pre class="rust"><code><span class="kw">use </span>geom::Polygon;
<span class="kw">use </span>map_gui::colors::ColorScheme;
<span class="kw">use </span>osm2streets::CrossingType;
@ -397,6 +422,10 @@
</span>panel_cache_key: (Mode, bool, bool, <span class="prelude-ty">Option</span>&lt;f64&gt;),
show_bus_routes: bool,
<span class="kw">pub </span>show_crossing_time: bool,
<span class="comment">// For the design LTN mode
</span><span class="kw">pub </span>autofix_bus_gates: bool,
<span class="kw">pub </span>autofix_one_ways: bool,
}
<span class="kw">impl </span>Layers {
@ -408,6 +437,8 @@
panel_cache_key: (Mode::Impact, <span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="prelude-val">None</span>),
show_bus_routes: <span class="bool-val">false</span>,
show_crossing_time: <span class="bool-val">false</span>,
autofix_bus_gates: <span class="bool-val">false</span>,
autofix_one_ways: <span class="bool-val">false</span>,
}
}
@ -440,12 +471,19 @@
}
Outcome::Changed(x) =&gt; {
<span class="kw">if </span>x == <span class="string">&quot;show bus routes&quot; </span>{
<span class="self">self</span>.show_bus_routes = <span class="self">self</span>.panel.is_checked(<span class="string">&quot;show bus routes&quot;</span>);
<span class="self">self</span>.show_bus_routes = <span class="self">self</span>.panel.is_checked(<span class="kw-2">&amp;</span>x);
<span class="self">self</span>.update_panel(ctx, cs, bottom_panel);
<span class="kw">return </span><span class="prelude-val">Some</span>(Transition::Keep);
} <span class="kw">else if </span>x == <span class="string">&quot;show time to nearest crossing&quot; </span>{
<span class="self">self</span>.show_crossing_time =
<span class="self">self</span>.panel.is_checked(<span class="string">&quot;show time to nearest crossing&quot;</span>);
<span class="self">self</span>.show_crossing_time = <span class="self">self</span>.panel.is_checked(<span class="kw-2">&amp;</span>x);
<span class="self">self</span>.update_panel(ctx, cs, bottom_panel);
<span class="kw">return </span><span class="prelude-val">Some</span>(Transition::Keep);
} <span class="kw">else if </span>x == <span class="string">&quot;Use bus gates when needed&quot; </span>{
<span class="self">self</span>.autofix_bus_gates = <span class="self">self</span>.panel.is_checked(<span class="kw-2">&amp;</span>x);
<span class="self">self</span>.update_panel(ctx, cs, bottom_panel);
<span class="kw">return </span><span class="prelude-val">Some</span>(Transition::Keep);
} <span class="kw">else if </span>x == <span class="string">&quot;Fix one-way streets when needed&quot; </span>{
<span class="self">self</span>.autofix_one_ways = <span class="self">self</span>.panel.is_checked(<span class="kw-2">&amp;</span>x);
<span class="self">self</span>.update_panel(ctx, cs, bottom_panel);
<span class="kw">return </span><span class="prelude-val">Some</span>(Transition::Keep);
}
@ -535,7 +573,7 @@
.build_widget(ctx, <span class="string">&quot;hide layers&quot;</span>)
.align_right(),
]),
<span class="self">self</span>.panel_cache_key.<span class="number">0</span>.legend(ctx, cs),
<span class="self">self</span>.panel_cache_key.<span class="number">0</span>.legend(ctx, cs, <span class="self">self</span>),
{
<span class="kw">let </span>checkbox = Toggle::checkbox(ctx, <span class="string">&quot;show bus routes&quot;</span>, <span class="prelude-val">None</span>, <span class="self">self</span>.show_bus_routes);
<span class="kw">if </span><span class="self">self</span>.show_bus_routes {
@ -619,7 +657,7 @@
}
<span class="kw">impl </span>Mode {
<span class="kw">fn </span>legend(<span class="kw-2">&amp;</span><span class="self">self</span>, ctx: <span class="kw-2">&amp;mut </span>EventCtx, cs: <span class="kw-2">&amp;</span>ColorScheme) -&gt; Widget {
<span class="kw">fn </span>legend(<span class="kw-2">&amp;</span><span class="self">self</span>, ctx: <span class="kw-2">&amp;mut </span>EventCtx, cs: <span class="kw-2">&amp;</span>ColorScheme, layers: <span class="kw-2">&amp;</span>Layers) -&gt; Widget {
<span class="comment">// TODO Light/dark buildings? Traffic signals?
</span>Widget::col(<span class="kw">match </span><span class="self">self </span>{
@ -664,7 +702,19 @@
]),
<span class="comment">// TODO Entry/exit arrows?
// TODO Dashed roads are walk/bike
</span>],
</span>Toggle::checkbox(
ctx,
<span class="string">&quot;Use bus gates when needed&quot;</span>,
<span class="prelude-val">None</span>,
layers.autofix_bus_gates,
),
Toggle::checkbox(
ctx,
<span class="string">&quot;Fix one-way streets when needed&quot;</span>,
<span class="prelude-val">None</span>,
layers.autofix_one_ways,
),
],
Mode::SelectBoundary =&gt; <span class="macro">vec!</span>[
entry(ctx, colors::HIGHLIGHT_BOUNDARY, <span class="string">&quot;boundary road&quot;</span>),
entry(

View File

@ -115,6 +115,16 @@
<span id="115">115</span>
<span id="116">116</span>
<span id="117">117</span>
<span id="118">118</span>
<span id="119">119</span>
<span id="120">120</span>
<span id="121">121</span>
<span id="122">122</span>
<span id="123">123</span>
<span id="124">124</span>
<span id="125">125</span>
<span id="126">126</span>
<span id="127">127</span>
</pre><pre class="rust"><code><span class="kw">use </span>widgetry::mapspace::{World, WorldOutcome};
<span class="kw">use </span>widgetry::tools::open_browser;
<span class="kw">use </span>widgetry::{lctrl, EventCtx, Key, Text, Transition};
@ -177,40 +187,50 @@
WorldOutcome::ClickedObject(Obj::InteriorRoad(r)) =&gt; {
<span class="kw">let </span>road = map.get_r(r);
<span class="comment">// The world doesn&#39;t contain non-driveable roads, so no need to check for that error
</span><span class="kw">if </span>road.oneway_for_driving().is_some() {
<span class="kw">return </span>EditOutcome::Transition(Transition::Push(
<span class="kw">super</span>::ResolveOneWayAndFilter::new_state(ctx, <span class="macro">vec!</span>[r]),
));
}
<span class="kw">if </span>road.is_deadend_for_driving(<span class="kw-2">&amp;</span>app.per_map.map) {
</span><span class="kw">if </span>road.is_deadend_for_driving(<span class="kw-2">&amp;</span>app.per_map.map) {
<span class="kw">return </span>EditOutcome::error(ctx, <span class="string">&quot;You can&#39;t filter a dead-end&quot;</span>);
}
<span class="comment">// Place the filter on the part of the road that was clicked
// These calls shouldn&#39;t fail -- since we clicked a road, the cursor must be in
// map-space. And project_pt returns a point that&#39;s guaranteed to be on the polyline.
</span><span class="kw">let </span>cursor_pt = ctx.canvas.get_cursor_in_map_space().unwrap();
<span class="kw">let </span>pt_on_line = road.center_pts.project_pt(cursor_pt);
<span class="kw">let </span>(distance, <span class="kw">_</span>) = road.center_pts.dist_along_of_point(pt_on_line).unwrap();
<span class="kw">if </span>road.oneway_for_driving().is_some() {
<span class="kw">if </span>app.session.layers.autofix_one_ways {
<span class="kw">super</span>::fix_oneway_and_add_filter(ctx, app, <span class="kw-2">&amp;</span>[(r, distance)]);
<span class="kw">return </span>EditOutcome::Transition(Transition::Recreate);
}
<span class="kw">return </span>EditOutcome::Transition(Transition::Push(
<span class="kw">super</span>::ResolveOneWayAndFilter::new_state(ctx, <span class="macro">vec!</span>[(r, distance)]),
));
}
app.per_map.proposals.before_edit();
<span class="kw">if </span><span class="macro">mut_edits!</span>(app).roads.remove(<span class="kw-2">&amp;</span>r).is_none() {
<span class="comment">// Place the filter on the part of the road that was clicked
// These calls shouldn&#39;t fail -- since we clicked a road, the cursor must be in
// map-space. And project_pt returns a point that&#39;s guaranteed to be on the
// polyline.
</span><span class="kw">let </span>cursor_pt = ctx.canvas.get_cursor_in_map_space().unwrap();
<span class="kw">let </span>pt_on_line = road.center_pts.project_pt(cursor_pt);
<span class="kw">let </span>(distance, <span class="kw">_</span>) = road.center_pts.dist_along_of_point(pt_on_line).unwrap();
<span class="kw">let </span><span class="kw-2">mut </span>filter_type = app.session.filter_type;
<span class="comment">// If we have a one-way bus route, the one-way resolver will win and we won&#39;t warn
// about bus gates. Oh well.
</span><span class="kw">if </span>app.session.filter_type != FilterType::BusGate
<span class="kw">if </span>filter_type != FilterType::BusGate
&amp;&amp; !app.per_map.map.get_bus_routes_on_road(r).is_empty()
{
app.per_map.proposals.cancel_empty_edit();
<span class="kw">return </span>EditOutcome::Transition(Transition::Push(
<span class="kw">super</span>::ResolveBusGate::new_state(ctx, app, <span class="macro">vec!</span>[(r, distance)]),
));
<span class="kw">if </span>app.session.layers.autofix_bus_gates {
filter_type = FilterType::BusGate;
} <span class="kw">else </span>{
<span class="comment">// If we have a one-way bus route, the one-way resolver will win and we
// won&#39;t warn about bus gates. Oh well.
</span>app.per_map.proposals.cancel_empty_edit();
<span class="kw">return </span>EditOutcome::Transition(Transition::Push(
<span class="kw">super</span>::ResolveBusGate::new_state(ctx, app, <span class="macro">vec!</span>[(r, distance)]),
));
}
}
<span class="macro">mut_edits!</span>(app).roads.insert(
r,
RoadFilter::new_by_user(distance, app.session.filter_type),
);
<span class="macro">mut_edits!</span>(app)
.roads
.insert(r, RoadFilter::new_by_user(distance, filter_type));
}
redraw_all_filters(ctx, app);
EditOutcome::Transition(Transition::Recreate)

View File

@ -81,6 +81,15 @@
<span id="81">81</span>
<span id="82">82</span>
<span id="83">83</span>
<span id="84">84</span>
<span id="85">85</span>
<span id="86">86</span>
<span id="87">87</span>
<span id="88">88</span>
<span id="89">89</span>
<span id="90">90</span>
<span id="91">91</span>
<span id="92">92</span>
</pre><pre class="rust"><code><span class="kw">use </span>geom::PolyLine;
<span class="kw">use </span>widgetry::EventCtx;
@ -125,27 +134,36 @@
<span class="kw">continue</span>;
}
<span class="kw">if let </span><span class="prelude-val">Some</span>((pt, <span class="kw">_</span>)) = road.center_pts.intersection(<span class="kw-2">&amp;</span>path) {
<span class="kw">if </span>road.oneway_for_driving().is_some() {
oneways.push(<span class="kw-2">*</span>r);
<span class="kw">continue</span>;
}
<span class="kw">let </span>dist = road
.center_pts
.dist_along_of_point(pt)
.map(|pair| pair.<span class="number">0</span>)
.unwrap_or(road.center_pts.length() / <span class="number">2.0</span>);
<span class="kw">if </span>app.session.filter_type != FilterType::BusGate
<span class="kw">if </span>road.oneway_for_driving().is_some() {
<span class="kw">if </span>app.session.layers.autofix_one_ways {
<span class="kw">super</span>::fix_oneway_and_add_filter(ctx, app, <span class="kw-2">&amp;</span>[(<span class="kw-2">*</span>r, dist)]);
} <span class="kw">else </span>{
oneways.push((<span class="kw-2">*</span>r, dist));
}
<span class="kw">continue</span>;
}
<span class="kw">let </span><span class="kw-2">mut </span>filter_type = app.session.filter_type;
<span class="kw">if </span>filter_type != FilterType::BusGate
&amp;&amp; !app.per_map.map.get_bus_routes_on_road(<span class="kw-2">*</span>r).is_empty()
{
bus_roads.push((<span class="kw-2">*</span>r, dist));
<span class="kw">continue</span>;
<span class="kw">if </span>app.session.layers.autofix_bus_gates {
filter_type = FilterType::BusGate;
} <span class="kw">else </span>{
bus_roads.push((<span class="kw-2">*</span>r, dist));
<span class="kw">continue</span>;
}
}
<span class="macro">mut_edits!</span>(app)
.roads
.insert(<span class="kw-2">*</span>r, RoadFilter::new_by_user(dist, app.session.filter_type));
.insert(<span class="kw-2">*</span>r, RoadFilter::new_by_user(dist, filter_type));
}
}
<span class="kw">for </span>i <span class="kw">in </span><span class="kw-2">&amp;</span>neighbourhood.interior_intersections {

View File

@ -444,16 +444,6 @@
<span id="444">444</span>
<span id="445">445</span>
<span id="446">446</span>
<span id="447">447</span>
<span id="448">448</span>
<span id="449">449</span>
<span id="450">450</span>
<span id="451">451</span>
<span id="452">452</span>
<span id="453">453</span>
<span id="454">454</span>
<span id="455">455</span>
<span id="456">456</span>
</pre><pre class="rust"><code><span class="kw">pub mod </span>filters;
<span class="kw">pub mod </span>freehand_filters;
<span class="kw">pub mod </span>one_ways;
@ -469,7 +459,7 @@
<span class="kw">use </span>widgetry::tools::{PolyLineLasso, PopupMsg};
<span class="kw">use </span>widgetry::{
Color, ControlState, DrawBaselayer, EventCtx, GeomBatch, GfxCtx, Key, Line, Outcome, Panel,
RewriteColor, State, Text, Texture, Widget,
RewriteColor, State, Text, Texture, Toggle, Widget,
};
<span class="kw">use crate</span>::{
@ -642,11 +632,11 @@
<span class="kw">struct </span>ResolveOneWayAndFilter {
panel: Panel,
roads: Vec&lt;RoadID&gt;,
roads: Vec&lt;(RoadID, Distance)&gt;,
}
<span class="kw">impl </span>ResolveOneWayAndFilter {
<span class="kw">fn </span>new_state(ctx: <span class="kw-2">&amp;mut </span>EventCtx, roads: Vec&lt;RoadID&gt;) -&gt; Box&lt;<span class="kw">dyn </span>State&lt;App&gt;&gt; {
<span class="kw">fn </span>new_state(ctx: <span class="kw-2">&amp;mut </span>EventCtx, roads: Vec&lt;(RoadID, Distance)&gt;) -&gt; Box&lt;<span class="kw">dyn </span>State&lt;App&gt;&gt; {
<span class="kw">let </span><span class="kw-2">mut </span>txt = Text::new();
txt.add_line(Line(<span class="string">&quot;Warning&quot;</span>).small_heading());
txt.add_line(<span class="string">&quot;A modal filter cannot be placed on a one-way street.&quot;</span>);
@ -655,20 +645,8 @@
<span class="kw">let </span>panel = Panel::new_builder(Widget::col(<span class="macro">vec!</span>[
txt.into_widget(ctx),
Widget::row(<span class="macro">vec!</span>[
ctx.style()
.btn_solid_primary
.text(<span class="kw">if </span>roads.len() == <span class="number">1 </span>{
<span class="string">&quot;Change to a two-way street and add a filter&quot;</span>.to_string()
} <span class="kw">else </span>{
<span class="macro">format!</span>(
<span class="string">&quot;Change {} one-way streets to two-way and add filters&quot;</span>,
roads.len()
)
})
.build_def(ctx),
ctx.style().btn_outline.text(<span class="string">&quot;Cancel&quot;</span>).build_def(ctx),
]),
Toggle::checkbox(ctx, <span class="string">&quot;Don&#39;t show this warning again&quot;</span>, <span class="prelude-val">None</span>, <span class="bool-val">true</span>),
ctx.style().btn_solid_primary.text(<span class="string">&quot;OK&quot;</span>).build_def(ctx),
]))
.build(ctx);
@ -678,48 +656,12 @@
<span class="kw">impl </span>State&lt;App&gt; <span class="kw">for </span>ResolveOneWayAndFilter {
<span class="kw">fn </span>event(<span class="kw-2">&amp;mut </span><span class="self">self</span>, ctx: <span class="kw-2">&amp;mut </span>EventCtx, app: <span class="kw-2">&amp;mut </span>App) -&gt; Transition {
<span class="kw">if let </span>Outcome::Clicked(x) = <span class="self">self</span>.panel.event(ctx) {
<span class="kw">if </span>x == <span class="string">&quot;Cancel&quot; </span>{
<span class="kw">return </span>Transition::Pop;
}
<span class="kw">if let </span>Outcome::Clicked(<span class="kw">_</span>) = <span class="self">self</span>.panel.event(ctx) {
<span class="comment">// OK is the only choice
</span>app.session.layers.autofix_one_ways =
<span class="self">self</span>.panel.is_checked(<span class="string">&quot;Don&#39;t show this warning again&quot;</span>);
<span class="kw">let </span>driving_side = app.per_map.map.get_config().driving_side;
<span class="kw">let </span><span class="kw-2">mut </span>edits = app.per_map.map.get_edits().clone();
<span class="kw">for </span>r <span class="kw">in </span><span class="kw-2">&amp;</span><span class="self">self</span>.roads {
edits
.commands
.push(app.per_map.map.edit_road_cmd(<span class="kw-2">*</span>r, |new| {
LaneSpec::toggle_road_direction(<span class="kw-2">&amp;mut </span>new.lanes_ltr, driving_side);
<span class="comment">// Maybe we just flipped a one-way forwards to a one-way backwards. So one more
// time to make it two-way
</span><span class="kw">if </span>LaneSpec::oneway_for_driving(<span class="kw-2">&amp;</span>new.lanes_ltr) == <span class="prelude-val">Some</span>(Direction::Back) {
LaneSpec::toggle_road_direction(<span class="kw-2">&amp;mut </span>new.lanes_ltr, driving_side);
}
}));
}
ctx.loading_screen(<span class="string">&quot;apply edits&quot;</span>, |<span class="kw">_</span>, timer| {
app.per_map.map.must_apply_edits(edits, timer);
});
app.per_map.proposals.before_edit();
<span class="kw">for </span>r <span class="kw">in </span><span class="kw-2">&amp;</span><span class="self">self</span>.roads {
<span class="kw">let </span>r = <span class="kw-2">*</span>r;
<span class="kw">let </span>road = app.per_map.map.get_r(r);
<span class="kw">let </span>r_edit = app.per_map.map.get_r_edit(r);
<span class="kw">if </span>r_edit == EditRoad::get_orig_from_osm(road, app.per_map.map.get_config()) {
<span class="macro">mut_edits!</span>(app).one_ways.remove(<span class="kw-2">&amp;</span>r);
} <span class="kw">else </span>{
<span class="macro">mut_edits!</span>(app).one_ways.insert(r, r_edit);
}
<span class="macro">mut_edits!</span>(app).roads.insert(
r,
RoadFilter::new_by_user(road.length() / <span class="number">2.0</span>, app.session.filter_type),
);
}
redraw_all_filters(ctx, app);
fix_oneway_and_add_filter(ctx, app, <span class="kw-2">&amp;</span><span class="self">self</span>.roads);
<span class="kw">return </span>Transition::Multi(<span class="macro">vec!</span>[Transition::Pop, Transition::Recreate]);
}
@ -736,6 +678,45 @@
}
}
<span class="kw">fn </span>fix_oneway_and_add_filter(ctx: <span class="kw-2">&amp;mut </span>EventCtx, app: <span class="kw-2">&amp;mut </span>App, roads: <span class="kw-2">&amp;</span>[(RoadID, Distance)]) {
<span class="kw">let </span>driving_side = app.per_map.map.get_config().driving_side;
<span class="kw">let </span><span class="kw-2">mut </span>edits = app.per_map.map.get_edits().clone();
<span class="kw">for </span>(r, <span class="kw">_</span>) <span class="kw">in </span>roads {
edits
.commands
.push(app.per_map.map.edit_road_cmd(<span class="kw-2">*</span>r, |new| {
LaneSpec::toggle_road_direction(<span class="kw-2">&amp;mut </span>new.lanes_ltr, driving_side);
<span class="comment">// Maybe we just flipped a one-way forwards to a one-way backwards. So one more
// time to make it two-way
</span><span class="kw">if </span>LaneSpec::oneway_for_driving(<span class="kw-2">&amp;</span>new.lanes_ltr) == <span class="prelude-val">Some</span>(Direction::Back) {
LaneSpec::toggle_road_direction(<span class="kw-2">&amp;mut </span>new.lanes_ltr, driving_side);
}
}));
}
ctx.loading_screen(<span class="string">&quot;apply edits&quot;</span>, |<span class="kw">_</span>, timer| {
app.per_map.map.must_apply_edits(edits, timer);
});
app.per_map.proposals.before_edit();
<span class="kw">for </span>(r, dist) <span class="kw">in </span>roads {
<span class="kw">let </span>r = <span class="kw-2">*</span>r;
<span class="kw">let </span>road = app.per_map.map.get_r(r);
<span class="kw">let </span>r_edit = app.per_map.map.get_r_edit(r);
<span class="kw">if </span>r_edit == EditRoad::get_orig_from_osm(road, app.per_map.map.get_config()) {
<span class="macro">mut_edits!</span>(app).one_ways.remove(<span class="kw-2">&amp;</span>r);
} <span class="kw">else </span>{
<span class="macro">mut_edits!</span>(app).one_ways.insert(r, r_edit);
}
<span class="macro">mut_edits!</span>(app)
.roads
.insert(r, RoadFilter::new_by_user(<span class="kw-2">*</span>dist, app.session.filter_type));
}
redraw_all_filters(ctx, app);
}
<span class="kw">struct </span>ResolveBusGate {
panel: Panel,
roads: Vec&lt;(RoadID, Distance)&gt;,
@ -747,7 +728,8 @@
app: <span class="kw-2">&amp;mut </span>App,
roads: Vec&lt;(RoadID, Distance)&gt;,
) -&gt; Box&lt;<span class="kw">dyn </span>State&lt;App&gt;&gt; {
<span class="comment">// TODO This&#39;ll mess up the panel, but we don&#39;t have easy access to the panel here
<span class="comment">// TODO This&#39;ll mess up the placement, but we don&#39;t have easy access to the bottom panel
// here
</span>app.session.layers.show_bus_routes(ctx, <span class="kw-2">&amp;</span>app.cs, <span class="prelude-val">None</span>);
<span class="kw">let </span><span class="kw-2">mut </span>txt = Text::new();
@ -768,14 +750,8 @@
<span class="kw">let </span>panel = Panel::new_builder(Widget::col(<span class="macro">vec!</span>[
txt.into_widget(ctx),
Widget::row(<span class="macro">vec!</span>[
<span class="comment">// TODO Just have pictures?
</span>ctx.style()
.btn_solid_primary
.text(<span class="string">&quot;Place bus gates&quot;</span>)
.build_def(ctx),
ctx.style().btn_outline.text(<span class="string">&quot;Cancel&quot;</span>).build_def(ctx),
]),
Toggle::checkbox(ctx, <span class="string">&quot;Don&#39;t show this warning again&quot;</span>, <span class="prelude-val">None</span>, <span class="bool-val">true</span>),
ctx.style().btn_solid_primary.text(<span class="string">&quot;OK&quot;</span>).build_def(ctx),
]))
.build(ctx);
@ -785,16 +761,20 @@
<span class="kw">impl </span>State&lt;App&gt; <span class="kw">for </span>ResolveBusGate {
<span class="kw">fn </span>event(<span class="kw-2">&amp;mut </span><span class="self">self</span>, ctx: <span class="kw-2">&amp;mut </span>EventCtx, app: <span class="kw-2">&amp;mut </span>App) -&gt; Transition {
<span class="kw">if let </span>Outcome::Clicked(x) = <span class="self">self</span>.panel.event(ctx) {
<span class="kw">if </span>x == <span class="string">&quot;Place bus gates&quot; </span>{
app.per_map.proposals.before_edit();
<span class="kw">for </span>(r, dist) <span class="kw">in </span><span class="self">self</span>.roads.drain(..) {
<span class="macro">mut_edits!</span>(app)
.roads
.insert(r, RoadFilter::new_by_user(dist, FilterType::BusGate));
}
redraw_all_filters(ctx, app);
<span class="kw">if let </span>Outcome::Clicked(<span class="kw">_</span>) = <span class="self">self</span>.panel.event(ctx) {
<span class="comment">// OK is the only choice
</span>app.session.layers.autofix_bus_gates =
<span class="self">self</span>.panel.is_checked(<span class="string">&quot;Don&#39;t show this warning again&quot;</span>);
<span class="comment">// Force the panel to show the new checkbox state
</span>app.session.layers.show_bus_routes(ctx, <span class="kw-2">&amp;</span>app.cs, <span class="prelude-val">None</span>);
app.per_map.proposals.before_edit();
<span class="kw">for </span>(r, dist) <span class="kw">in </span><span class="self">self</span>.roads.drain(..) {
<span class="macro">mut_edits!</span>(app)
.roads
.insert(r, RoadFilter::new_by_user(dist, FilterType::BusGate));
}
redraw_all_filters(ctx, app);
<span class="kw">return </span>Transition::Multi(<span class="macro">vec!</span>[Transition::Pop, Transition::Recreate]);
}

View File

@ -174,7 +174,7 @@
</span><span class="kw">pub const </span>RUSTDOC_VERSION: <span class="kw-2">&amp;</span>str = <span class="string">r&quot;rustdoc 1.65.0 (897e37553 2022-11-02)&quot;</span>;
<span class="attribute">#[doc=<span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]
#[allow(dead_code)]
</span><span class="kw">pub const </span>BUILT_TIME_UTC: <span class="kw-2">&amp;</span>str = <span class="string">r&quot;Fri, 11 Nov 2022 21:49:17 +0000&quot;</span>;
</span><span class="kw">pub const </span>BUILT_TIME_UTC: <span class="kw-2">&amp;</span>str = <span class="string">r&quot;Sat, 12 Nov 2022 19:10:15 +0000&quot;</span>;
<span class="attribute">#[doc=<span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]
#[allow(dead_code)]
</span><span class="kw">pub const </span>CFG_TARGET_ARCH: <span class="kw-2">&amp;</span>str = <span class="string">r&quot;x86_64&quot;</span>;