mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
deploy: affd582093
This commit is contained in:
parent
ecb7f3171b
commit
cb71951387
@ -113,12 +113,12 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
|||||||
</div><h4 id="method.draw-11" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/routes.rs.html#419-430" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-11" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/routes.rs.html#419-430" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer-10" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-10" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy-10" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-10" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-11" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></code><a href="#impl-State%3CApp%3E-11" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#179-439" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-11" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#180-410" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-11" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></code><a href="#impl-State%3CApp%3E-11" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#176-436" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-11" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#177-407" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw_baselayer-11" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/debug/mod.rs.html#412-414" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-11" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/debug/mod.rs.html#409-411" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw-12" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#416-438" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-12" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#413-435" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy-11" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-11" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-12" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E-12" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#858-887" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-12" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#859-885" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-12" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E-12" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#855-884" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-12" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#856-882" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw-13" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#886" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-13" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#883" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer-12" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-12" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy-12" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-12" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-13" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/collisions/struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-State%3CApp%3E-13" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#267-325" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-13" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/collisions.rs.html#268-300" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-13" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/collisions/struct.CollisionsViewer.html" title="struct game::devtools::collisions::CollisionsViewer">CollisionsViewer</a></code><a href="#impl-State%3CApp%3E-13" class="anchor"></a><a class="srclink" href="../../src/game/devtools/collisions.rs.html#267-325" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-13" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/collisions.rs.html#268-300" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
@ -133,8 +133,8 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
|||||||
</div><h4 id="method.draw-16" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/kml.rs.html#191-210" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-16" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/kml.rs.html#191-210" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer-15" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-15" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy-15" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-15" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-16" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-State%3CApp%3E-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/polygon.rs.html#51-148" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-16" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#52-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-16" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-State%3CApp%3E-16" class="anchor"></a><a class="srclink" href="../../src/game/devtools/polygon.rs.html#51-144" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-16" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#52-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw-17" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#109-147" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-17" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/devtools/polygon.rs.html#109-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer-16" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-16" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy-16" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-16" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-17" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></code><a href="#impl-State%3CApp%3E-17" class="anchor"></a><a class="srclink" href="../../src/game/devtools/scenario.rs.html#90-122" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-17" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/scenario.rs.html#91-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-17" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/devtools/scenario/struct.ScenarioManager.html" title="struct game::devtools::scenario::ScenarioManager">ScenarioManager</a></code><a href="#impl-State%3CApp%3E-17" class="anchor"></a><a class="srclink" href="../../src/game/devtools/scenario.rs.html#90-122" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-17" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/devtools/scenario.rs.html#91-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
@ -209,9 +209,9 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
|
|||||||
</div><h4 id="method.draw_baselayer-32" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/layer/mod.rs.html#253-255" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-32" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/layer/mod.rs.html#253-255" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw-33" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/layer/mod.rs.html#257-260" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-33" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/layer/mod.rs.html#257-260" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy-32" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-32" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-33" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-State%3CApp%3E-33" class="anchor"></a><a class="srclink" href="../../src/game/pregame/proposals.rs.html#115-155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-33" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#116-145" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-33" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-State%3CApp%3E-33" class="anchor"></a><a class="srclink" href="../../src/game/pregame/proposals.rs.html#113-153" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-33" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#114-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw_baselayer-33" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#147-149" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer-33" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#145-147" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw-34" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#151-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-34" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/proposals.rs.html#149-152" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy-33" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy-33" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div><h3 id="impl-State%3CApp%3E-34" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/struct.TitleScreen.html" title="struct game::pregame::TitleScreen">TitleScreen</a></code><a href="#impl-State%3CApp%3E-34" class="anchor"></a><a class="srclink" href="../../src/game/pregame/mod.rs.html#63-84" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-34" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/mod.rs.html#64-79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
</div></div><h3 id="impl-State%3CApp%3E-34" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/pregame/struct.TitleScreen.html" title="struct game::pregame::TitleScreen">TitleScreen</a></code><a href="#impl-State%3CApp%3E-34" class="anchor"></a><a class="srclink" href="../../src/game/pregame/mod.rs.html#63-84" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event-34" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/pregame/mod.rs.html#64-79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw-35" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#81-83" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw-35" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/pregame/mod.rs.html#81-83" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/app.rs.html#573-576" title="goto source code">[src]</a></span><span class="in-band">Trait <a href="../index.html">game</a>::<wbr><a href="index.html">app</a>::<wbr><a class="trait" href="">ShowObject</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait ShowObject {
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/app.rs.html#573-576" title="goto source code">[src]</a></span><span class="in-band">Trait <a href="../index.html">game</a>::<wbr><a href="index.html">app</a>::<wbr><a class="trait" href="">ShowObject</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait ShowObject {
|
||||||
fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||||
<div class="item-spacer"></div> fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a>;
|
<div class="item-spacer"></div> fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a>;
|
||||||
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><h3 id="tymethod.show" class="method"><code>fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/app.rs.html#574" title="goto source code">[src]</a></h3><h3 id="tymethod.layers" class="method"><code>fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/app.rs.html#575" title="goto source code">[src]</a></h3></div><span class="loading-content">Loading content...</span><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><h3 id="impl-ShowObject" class="impl"><code class="in-band">impl ShowObject for <a class="struct" href="../../game/app/struct.ShowEverything.html" title="struct game::app::ShowEverything">ShowEverything</a></code><a href="#impl-ShowObject" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#590-598" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.show" class="method hidden"><code>fn <a href="#method.show" class="fnname">show</a>(&self, _: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/app.rs.html#591-593" title="goto source code">[src]</a></h4><h4 id="method.layers" class="method hidden"><code>fn <a href="#method.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/app.rs.html#595-597" title="goto source code">[src]</a></h4></div><h3 id="impl-ShowObject-1" class="impl"><code class="in-band">impl ShowObject for <a class="struct" href="../../game/debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></code><a href="#impl-ShowObject-1" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#441-459" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.show-1" class="method hidden"><code>fn <a href="#method.show-1" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/debug/mod.rs.html#442-454" title="goto source code">[src]</a></h4><h4 id="method.layers-1" class="method hidden"><code>fn <a href="#method.layers-1" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/debug/mod.rs.html#456-458" title="goto source code">[src]</a></h4></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../../implementors/game/app/trait.ShowObject.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><h3 id="tymethod.show" class="method"><code>fn <a href="#tymethod.show" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/app.rs.html#574" title="goto source code">[src]</a></h3><h3 id="tymethod.layers" class="method"><code>fn <a href="#tymethod.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/app.rs.html#575" title="goto source code">[src]</a></h3></div><span class="loading-content">Loading content...</span><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><h3 id="impl-ShowObject" class="impl"><code class="in-band">impl ShowObject for <a class="struct" href="../../game/app/struct.ShowEverything.html" title="struct game::app::ShowEverything">ShowEverything</a></code><a href="#impl-ShowObject" class="anchor"></a><a class="srclink" href="../../src/game/app.rs.html#590-598" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.show" class="method hidden"><code>fn <a href="#method.show" class="fnname">show</a>(&self, _: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/app.rs.html#591-593" title="goto source code">[src]</a></h4><h4 id="method.layers" class="method hidden"><code>fn <a href="#method.layers" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/app.rs.html#595-597" title="goto source code">[src]</a></h4></div><h3 id="impl-ShowObject-1" class="impl"><code class="in-band">impl ShowObject for <a class="struct" href="../../game/debug/struct.DebugMode.html" title="struct game::debug::DebugMode">DebugMode</a></code><a href="#impl-ShowObject-1" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#438-456" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.show-1" class="method hidden"><code>fn <a href="#method.show-1" class="fnname">show</a>(&self, obj: &<a class="enum" href="../../map_gui/enum.ID.html" title="enum map_gui::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/game/debug/mod.rs.html#439-451" title="goto source code">[src]</a></h4><h4 id="method.layers-1" class="method hidden"><code>fn <a href="#method.layers-1" class="fnname">layers</a>(&self) -> &<a class="struct" href="../../game/app/struct.ShowLayers.html" title="struct game::app::ShowLayers">ShowLayers</a></code><a class="srclink" href="../../src/game/debug/mod.rs.html#453-455" title="goto source code">[src]</a></h4></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../../implementors/game/app/trait.ShowObject.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `calc_all_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calc_all_routes"><title>game::debug::calc_all_routes - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `calc_all_routes` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, calc_all_routes"><title>game::debug::calc_all_routes - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "calc_all_routes", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "calc_all_routes", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#511-532" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">calc_all_routes</a></span></h1><pre class="rust fn">fn calc_all_routes(ctx: &EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#508-529" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">calc_all_routes</a></span></h1><pre class="rust fn">fn calc_all_routes(ctx: &EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `diff_tags` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, diff_tags"><title>game::debug::diff_tags - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `diff_tags` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, diff_tags"><title>game::debug::diff_tags - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "diff_tags", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "diff_tags", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#804-819" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">diff_tags</a></span></h1><pre class="rust fn">fn diff_tags(t1: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, t2: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#801-816" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">diff_tags</a></span></h1><pre class="rust fn">fn diff_tags(t1: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, t2: &<a class="struct" href="../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_banned_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_banned_turns"><title>game::debug::draw_banned_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `draw_banned_turns` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_banned_turns"><title>game::debug::draw_banned_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "draw_banned_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "draw_banned_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#911-941" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">draw_banned_turns</a></span></h1><pre class="rust fn">fn draw_banned_turns(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#908-938" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">draw_banned_turns</a></span></h1><pre class="rust fn">fn draw_banned_turns(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `export_for_leaflet` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, export_for_leaflet"><title>game::debug::export_for_leaflet - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `export_for_leaflet` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, export_for_leaflet"><title>game::debug::export_for_leaflet - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "export_for_leaflet", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "export_for_leaflet", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#889-909" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">export_for_leaflet</a></span></h1><pre class="rust fn">fn export_for_leaflet(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#886-906" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">export_for_leaflet</a></span></h1><pre class="rust fn">fn export_for_leaflet(ctx: &mut EventCtx<'_>, app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_bad_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_bad_signals"><title>game::debug::find_bad_signals - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `find_bad_signals` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_bad_signals"><title>game::debug::find_bad_signals - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_bad_signals", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_bad_signals", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#755-765" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_bad_signals</a></span></h1><pre class="rust fn">fn find_bad_signals(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#752-762" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_bad_signals</a></span></h1><pre class="rust fn">fn find_bad_signals(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_degenerate_roads` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_degenerate_roads"><title>game::debug::find_degenerate_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `find_degenerate_roads` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_degenerate_roads"><title>game::debug::find_degenerate_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_degenerate_roads", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_degenerate_roads", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#767-802" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_degenerate_roads</a></span></h1><pre class="rust fn">fn find_degenerate_roads(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#764-799" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_degenerate_roads</a></span></h1><pre class="rust fn">fn find_degenerate_roads(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `find_large_intersections` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_large_intersections"><title>game::debug::find_large_intersections - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `find_large_intersections` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, find_large_intersections"><title>game::debug::find_large_intersections - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_large_intersections", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "find_large_intersections", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#821-829" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_large_intersections</a></span></h1><pre class="rust fn">fn find_large_intersections(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#818-826" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">find_large_intersections</a></span></h1><pre class="rust fn">fn find_large_intersections(app: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `search_osm` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, search_osm"><title>game::debug::search_osm - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `search_osm` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, search_osm"><title>game::debug::search_osm - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "search_osm", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "search_osm", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#461-503" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">search_osm</a></span></h1><pre class="rust fn">fn search_osm(<br> filter: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#458-500" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="fn" href="">search_osm</a></span></h1><pre class="rust fn">fn search_osm(<br> filter: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
|||||||
<!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 `debug` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, debug"><title>game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `debug` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, debug"><title>game::debug - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module debug</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">game</a></p><script>window.sidebarCurrent = {name: "debug", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module debug</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">game</a></p><script>window.sidebarCurrent = {name: "debug", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1-941" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">game</a>::<wbr><a class="mod" href="">debug</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#1-938" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">game</a>::<wbr><a class="mod" href="">debug</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="mod" href="blocked_by/index.html" title="game::debug::blocked_by mod">blocked_by</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="floodfill/index.html" title="game::debug::floodfill mod">floodfill</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="objects/index.html" title="game::debug::objects mod">objects</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="path_counter/index.html" title="game::debug::path_counter mod">path_counter</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="polygons/index.html" title="game::debug::polygons mod">polygons</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="routes/index.html" title="game::debug::routes mod">routes</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="shared_row/index.html" title="game::debug::shared_row mod">shared_row</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="streetmix/index.html" title="game::debug::streetmix mod">streetmix</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="uber_turns/index.html" title="game::debug::uber_turns mod">uber_turns</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<table><tr class="module-item"><td><a class="mod" href="blocked_by/index.html" title="game::debug::blocked_by mod">blocked_by</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="floodfill/index.html" title="game::debug::floodfill mod">floodfill</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="objects/index.html" title="game::debug::objects mod">objects</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="path_counter/index.html" title="game::debug::path_counter mod">path_counter</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="polygons/index.html" title="game::debug::polygons mod">polygons</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="routes/index.html" title="game::debug::routes mod">routes</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="shared_row/index.html" title="game::debug::shared_row mod">shared_row</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="streetmix/index.html" title="game::debug::streetmix mod">streetmix</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="uber_turns/index.html" title="game::debug::uber_turns mod">uber_turns</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.Actions.html" title="game::debug::Actions struct">Actions</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DebugMode.html" title="game::debug::DebugMode struct">DebugMode</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ScreenshotTest.html" title="game::debug::ScreenshotTest struct">ScreenshotTest</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.SearchResults.html" title="game::debug::SearchResults struct">SearchResults</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.Actions.html" title="game::debug::Actions struct">Actions</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DebugMode.html" title="game::debug::DebugMode struct">DebugMode</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ScreenshotTest.html" title="game::debug::ScreenshotTest struct">ScreenshotTest</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.SearchResults.html" title="game::debug::SearchResults struct">SearchResults</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.calc_all_routes.html" title="game::debug::calc_all_routes fn">calc_all_routes</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.diff_tags.html" title="game::debug::diff_tags fn">diff_tags</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.draw_banned_turns.html" title="game::debug::draw_banned_turns fn">draw_banned_turns</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.export_for_leaflet.html" title="game::debug::export_for_leaflet fn">export_for_leaflet</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_bad_signals.html" title="game::debug::find_bad_signals fn">find_bad_signals</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_degenerate_roads.html" title="game::debug::find_degenerate_roads fn">find_degenerate_roads</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_large_intersections.html" title="game::debug::find_large_intersections fn">find_large_intersections</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.search_osm.html" title="game::debug::search_osm fn">search_osm</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="fn" href="fn.calc_all_routes.html" title="game::debug::calc_all_routes fn">calc_all_routes</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.diff_tags.html" title="game::debug::diff_tags fn">diff_tags</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.draw_banned_turns.html" title="game::debug::draw_banned_turns fn">draw_banned_turns</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.export_for_leaflet.html" title="game::debug::export_for_leaflet fn">export_for_leaflet</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_bad_signals.html" title="game::debug::find_bad_signals fn">find_bad_signals</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_degenerate_roads.html" title="game::debug::find_degenerate_roads fn">find_degenerate_roads</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.find_large_intersections.html" title="game::debug::find_large_intersections fn">find_large_intersections</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.search_osm.html" title="game::debug::search_osm fn">search_osm</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "game";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
|||||||
<!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 `objects` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, objects"><title>game::debug::objects - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `objects` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, objects"><title>game::debug::objects - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module objects</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a></p><script>window.sidebarCurrent = {name: "objects", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module objects</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a></p><script>window.sidebarCurrent = {name: "objects", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/debug/objects.rs.html#1-115" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a class="mod" href="">objects</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/debug/objects.rs.html#1-113" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">debug</a>::<wbr><a class="mod" href="">objects</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.ObjectDebugger.html" title="game::debug::objects::ObjectDebugger struct">ObjectDebugger</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="struct" href="struct.ObjectDebugger.html" title="game::debug::objects::ObjectDebugger struct">ObjectDebugger</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
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
@ -1,12 +1,12 @@
|
|||||||
<!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 `ScreenshotTest` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, ScreenshotTest"><title>game::debug::ScreenshotTest - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `ScreenshotTest` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, ScreenshotTest"><title>game::debug::ScreenshotTest - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ScreenshotTest</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.screenshot_done">screenshot_done</a><a href="#structfield.todo_maps">todo_maps</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "ScreenshotTest", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ScreenshotTest</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.screenshot_done">screenshot_done</a><a href="#structfield.todo_maps">todo_maps</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CApp%3E">State<App></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "ScreenshotTest", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#833-836" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="">ScreenshotTest</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct ScreenshotTest {
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#830-833" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="">ScreenshotTest</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct ScreenshotTest {
|
||||||
todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>>,
|
todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>>,
|
||||||
screenshot_done: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
screenshot_done: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.todo_maps" class="structfield small-section-header"><a href="#structfield.todo_maps" class="anchor field"></a><code>todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>></code></span><span id="structfield.screenshot_done" class="structfield small-section-header"><a href="#structfield.screenshot_done" class="anchor field"></a><code>screenshot_done: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#838-856" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#839-855" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#858-887" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#859-885" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.todo_maps" class="structfield small-section-header"><a href="#structfield.todo_maps" class="anchor field"></a><code>todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>></code></span><span id="structfield.screenshot_done" class="structfield small-section-header"><a href="#structfield.screenshot_done" class="anchor field"></a><code>screenshot_done: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#835-853" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> todo_maps: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#836-852" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../src/game/debug/mod.rs.html#855-884" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../src/game/debug/mod.rs.html#856-882" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#886" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, _: &mut GfxCtx<'_>, _: &<a class="struct" href="../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../src/game/debug/mod.rs.html#883" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../game/debug/struct.ScreenshotTest.html" title="struct game::debug::ScreenshotTest">ScreenshotTest</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!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 `SearchResults` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, SearchResults"><title>game::debug::SearchResults - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `SearchResults` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, SearchResults"><title>game::debug::SearchResults - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct SearchResults</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.draw">draw</a><a href="#structfield.num_matches">num_matches</a><a href="#structfield.query">query</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "SearchResults", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct SearchResults</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.draw">draw</a><a href="#structfield.num_matches">num_matches</a><a href="#structfield.query">query</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">game</a>::<wbr><a href="index.html">debug</a></p><script>window.sidebarCurrent = {name: "SearchResults", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#505-509" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="">SearchResults</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct SearchResults {
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/game/debug/mod.rs.html#502-506" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">game</a>::<wbr><a href="index.html">debug</a>::<wbr><a class="struct" href="">SearchResults</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct SearchResults {
|
||||||
query: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
query: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||||
num_matches: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
num_matches: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||||
draw: Drawable,
|
draw: Drawable,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!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 `polygon` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>game::devtools::polygon - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `polygon` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, polygon"><title>game::devtools::polygon - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">devtools</a></p><script>window.sidebarCurrent = {name: "polygon", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module polygon</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">devtools</a></p><script>window.sidebarCurrent = {name: "polygon", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#1-148" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">devtools</a>::<wbr><a class="mod" href="">polygon</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#1-144" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">devtools</a>::<wbr><a class="mod" href="">polygon</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.PolygonEditor.html" title="game::devtools::polygon::PolygonEditor struct">PolygonEditor</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.PolygonEditor.html" title="game::devtools::polygon::PolygonEditor struct">PolygonEditor</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="constant" href="constant.LAST_PLACED_POINT.html" title="game::devtools::polygon::LAST_PLACED_POINT constant">LAST_PLACED_POINT</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_COLOR.html" title="game::devtools::polygon::POINT_COLOR constant">POINT_COLOR</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_RADIUS.html" title="game::devtools::polygon::POINT_RADIUS constant">POINT_RADIUS</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_TO_MOVE.html" title="game::devtools::polygon::POINT_TO_MOVE constant">POINT_TO_MOVE</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POLYGON_COLOR.html" title="game::devtools::polygon::POLYGON_COLOR constant">POLYGON_COLOR</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="constant" href="constant.LAST_PLACED_POINT.html" title="game::devtools::polygon::LAST_PLACED_POINT constant">LAST_PLACED_POINT</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_COLOR.html" title="game::devtools::polygon::POINT_COLOR constant">POINT_COLOR</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_RADIUS.html" title="game::devtools::polygon::POINT_RADIUS constant">POINT_RADIUS</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POINT_TO_MOVE.html" title="game::devtools::polygon::POINT_TO_MOVE constant">POINT_TO_MOVE</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.POLYGON_COLOR.html" title="game::devtools::polygon::POLYGON_COLOR constant">POLYGON_COLOR</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -8,8 +8,8 @@
|
|||||||
mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
|
||||||
moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.points" class="structfield small-section-header"><a href="#structfield.points" class="anchor field"></a><code>points: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>></code></span><span id="structfield.mouseover_pt" class="structfield small-section-header"><a href="#structfield.mouseover_pt" class="anchor field"></a><code>mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><span id="structfield.moving_pt" class="structfield small-section-header"><a href="#structfield.moving_pt" class="anchor field"></a><code>moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#26-49" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> points: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#27-48" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#51-148" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#52-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.points" class="structfield small-section-header"><a href="#structfield.points" class="anchor field"></a><code>points: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>></code></span><span id="structfield.mouseover_pt" class="structfield small-section-header"><a href="#structfield.mouseover_pt" class="anchor field"></a><code>mouseover_pt: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><span id="structfield.moving_pt" class="structfield small-section-header"><a href="#structfield.moving_pt" class="anchor field"></a><code>moving_pt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#26-49" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> points: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#27-48" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#51-144" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#52-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#109-147" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/devtools/polygon.rs.html#109-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/devtools/polygon/struct.PolygonEditor.html" title="struct game::devtools::polygon::PolygonEditor">PolygonEditor</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `cmp_duration_shorter` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_duration_shorter"><title>game::info::person::cmp_duration_shorter - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `cmp_duration_shorter` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, cmp_duration_shorter"><title>game::info::person::cmp_duration_shorter - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "cmp_duration_shorter", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "cmp_duration_shorter", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#694-708" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">cmp_duration_shorter</a></span></h1><pre class="rust fn">fn cmp_duration_shorter(after: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, before: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -> TextSpan</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#689-703" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">cmp_duration_shorter</a></span></h1><pre class="rust fn">fn cmp_duration_shorter(after: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, before: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -> TextSpan</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `crowd` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, crowd"><title>game::info::person::crowd - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `crowd` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, crowd"><title>game::info::person::crowd - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "crowd", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "crowd", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#453-495" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">crowd</a></span></h1><pre class="rust fn">pub fn crowd(<br> ctx: &EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> members: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.PedestrianID.html" title="struct sim::PedestrianID">PedestrianID</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#448-490" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">crowd</a></span></h1><pre class="rust fn">pub fn crowd(<br> ctx: &EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> members: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../sim/struct.PedestrianID.html" title="struct sim::PedestrianID">PedestrianID</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `current_status` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, current_status"><title>game::info::person::current_status - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `current_status` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, current_status"><title>game::info::person::current_status - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "current_status", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "current_status", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#681-691" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">current_status</a></span></h1><pre class="rust fn">fn current_status(ctx: &EventCtx<'_>, person: &<a class="struct" href="../../../sim/trips/struct.Person.html" title="struct sim::trips::Person">Person</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#676-686" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">current_status</a></span></h1><pre class="rust fn">fn current_status(ctx: &EventCtx<'_>, person: &<a class="struct" href="../../../sim/trips/struct.Person.html" title="struct sim::trips::Person">Person</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `header` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, header"><title>game::info::person::header - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `header` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, header"><title>game::info::person::header - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "header", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "header", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#580-679" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">header</a></span></h1><pre class="rust fn">fn header(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>, <br> tab: <a class="enum" href="../../../game/info/enum.Tab.html" title="enum game::info::Tab">Tab</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#575-674" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">header</a></span></h1><pre class="rust fn">fn header(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>, <br> tab: <a class="enum" href="../../../game/info/enum.Tab.html" title="enum game::info::Tab">Tab</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `parked_car` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parked_car"><title>game::info::person::parked_car - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `parked_car` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parked_car"><title>game::info::person::parked_car - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "parked_car", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "parked_car", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#497-578" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">parked_car</a></span></h1><pre class="rust fn">pub fn parked_car(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#492-573" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">parked_car</a></span></h1><pre class="rust fn">pub fn parked_car(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `schedule` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, schedule"><title>game::info::person::schedule - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `schedule` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, schedule"><title>game::info::person::schedule - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "schedule", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a></p><script>window.sidebarCurrent = {name: "schedule", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#379-451" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">schedule</a></span></h1><pre class="rust fn">pub fn schedule(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#379-446" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a href="index.html">person</a>::<wbr><a class="fn" href="">schedule</a></span></h1><pre class="rust fn">pub fn schedule(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> details: &mut <a class="struct" href="../../../game/info/struct.Details.html" title="struct game::info::Details">Details</a>, <br> id: <a class="struct" href="../../../sim/struct.PersonID.html" title="struct sim::PersonID">PersonID</a>, <br> is_paused: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Widget></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
|||||||
<!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 `person` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, person"><title>game::info::person - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `person` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, person"><title>game::info::person - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module person</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a></p><script>window.sidebarCurrent = {name: "person", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module person</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a></p><script>window.sidebarCurrent = {name: "person", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#1-708" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a class="mod" href="">person</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/info/person.rs.html#1-703" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">info</a>::<wbr><a class="mod" href="">person</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.bio.html" title="game::info::person::bio fn">bio</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.cmp_duration_shorter.html" title="game::info::person::cmp_duration_shorter fn">cmp_duration_shorter</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.crowd.html" title="game::info::person::crowd fn">crowd</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.current_status.html" title="game::info::person::current_status fn">current_status</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.header.html" title="game::info::person::header fn">header</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.parked_car.html" title="game::info::person::parked_car fn">parked_car</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.schedule.html" title="game::info::person::schedule fn">schedule</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.trips.html" title="game::info::person::trips fn">trips</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="fn" href="fn.bio.html" title="game::info::person::bio fn">bio</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.cmp_duration_shorter.html" title="game::info::person::cmp_duration_shorter fn">cmp_duration_shorter</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.crowd.html" title="game::info::person::crowd fn">crowd</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.current_status.html" title="game::info::person::current_status fn">current_status</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.header.html" title="game::info::person::header fn">header</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.parked_car.html" title="game::info::person::parked_car fn">parked_car</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.schedule.html" title="game::info::person::schedule fn">schedule</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.trips.html" title="game::info::person::trips fn">trips</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
<!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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><script>window.sidebarCurrent = {name: "BUILT_TIME_UTC", ty: "constant", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><script>window.sidebarCurrent = {name: "BUILT_TIME_UTC", ty: "constant", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 19 Mar 2021 23:34:02 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-a95c4551e63dceca/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 19 Mar 2021 23:56:44 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
||||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `launch` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, launch"><title>game::pregame::proposals::launch - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `launch` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, launch"><title>game::pregame::proposals::launch - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">proposals</a></p><script>window.sidebarCurrent = {name: "launch", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">proposals</a></p><script>window.sidebarCurrent = {name: "launch", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#157-208" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">proposals</a>::<wbr><a class="fn" href="">launch</a></span></h1><pre class="rust fn">fn launch(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> edits: <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a><br>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#155-206" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">proposals</a>::<wbr><a class="fn" href="">launch</a></span></h1><pre class="rust fn">fn launch(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> edits: <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a><br>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
|||||||
<!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 `proposals` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, proposals"><title>game::pregame::proposals - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `proposals` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, proposals"><title>game::pregame::proposals - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module proposals</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a></p><script>window.sidebarCurrent = {name: "proposals", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module proposals</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a></p><script>window.sidebarCurrent = {name: "proposals", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#1-208" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a class="mod" href="">proposals</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#1-206" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a class="mod" href="">proposals</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.Proposals.html" title="game::pregame::proposals::Proposals struct">Proposals</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.Proposals.html" title="game::pregame::proposals::Proposals struct">Proposals</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.launch.html" title="game::pregame::proposals::launch fn">launch</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="fn" href="fn.launch.html" title="game::pregame::proposals::launch fn">launch</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -6,9 +6,9 @@
|
|||||||
proposals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a>>,
|
proposals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a>>,
|
||||||
current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>,
|
current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>,
|
||||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.proposals" class="structfield small-section-header"><a href="#structfield.proposals" class="anchor field"></a><code>proposals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a>></code></span><span id="structfield.current" class="structfield small-section-header"><a href="#structfield.current" class="anchor field"></a><code>current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#19-113" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#20-112" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#115-155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#116-145" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.proposals" class="structfield small-section-header"><a href="#structfield.proposals" class="anchor field"></a><code>proposals: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a>></code></span><span id="structfield.current" class="structfield small-section-header"><a href="#structfield.current" class="anchor field"></a><code>current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#19-111" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> current: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>>></code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#20-110" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CApp%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-State%3CApp%3E" class="anchor"></a><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#113-153" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Transition<<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>></code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#114-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#147-149" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#145-147" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#151-154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>)</code><a class="srclink" href="../../../src/game/pregame/proposals.rs.html#149-152" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../game/pregame/proposals/struct.Proposals.html" title="struct game::pregame::proposals::Proposals">Proposals</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../src/game/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>game::sandbox::dashboards::parking_overhead::make_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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_table` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>game::sandbox::dashboards::parking_overhead::make_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">parking_overhead</a></p><script>window.sidebarCurrent = {name: "make_table", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">parking_overhead</a></p><script>window.sidebarCurrent = {name: "make_table", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#177-247" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">parking_overhead</a>::<wbr><a class="fn" href="">make_table</a></span></h1><pre class="rust fn">fn make_table(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#177-245" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">parking_overhead</a>::<wbr><a class="fn" href="">make_table</a></span></h1><pre class="rust fn">fn make_table(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
|||||||
<!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 `parking_overhead` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parking_overhead"><title>game::sandbox::dashboards::parking_overhead - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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 `parking_overhead` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parking_overhead"><title>game::sandbox::dashboards::parking_overhead - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module parking_overhead</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a></p><script>window.sidebarCurrent = {name: "parking_overhead", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module parking_overhead</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a></p><script>window.sidebarCurrent = {name: "parking_overhead", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#1-247" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a class="mod" href="">parking_overhead</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#1-245" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a class="mod" href="">parking_overhead</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.Entry.html" title="game::sandbox::dashboards::parking_overhead::Entry struct">Entry</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Filters.html" title="game::sandbox::dashboards::parking_overhead::Filters struct">Filters</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ParkingOverhead.html" title="game::sandbox::dashboards::parking_overhead::ParkingOverhead struct">ParkingOverhead</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.Entry.html" title="game::sandbox::dashboards::parking_overhead::Entry struct">Entry</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Filters.html" title="game::sandbox::dashboards::parking_overhead::Filters struct">Filters</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ParkingOverhead.html" title="game::sandbox::dashboards::parking_overhead::ParkingOverhead struct">ParkingOverhead</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.make_table.html" title="game::sandbox::dashboards::parking_overhead::make_table fn">make_table</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.produce_raw_data.html" title="game::sandbox::dashboards::parking_overhead::produce_raw_data fn">produce_raw_data</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="fn" href="fn.make_table.html" title="game::sandbox::dashboards::parking_overhead::make_table fn">make_table</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.produce_raw_data.html" title="game::sandbox::dashboards::parking_overhead::produce_raw_data fn">produce_raw_data</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_cancelled_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_cancelled_trips"><title>game::sandbox::dashboards::trip_table::make_table_cancelled_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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_table_cancelled_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_cancelled_trips"><title>game::sandbox::dashboards::trip_table::make_table_cancelled_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_cancelled_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_cancelled_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#515-600" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_cancelled_trips</a></span></h1><pre class="rust fn">fn make_table_cancelled_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#513-598" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_cancelled_trips</a></span></h1><pre class="rust fn">fn make_table_cancelled_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_finished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_finished_trips"><title>game::sandbox::dashboards::trip_table::make_table_finished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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_table_finished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_finished_trips"><title>game::sandbox::dashboards::trip_table::make_table_finished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_finished_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_finished_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#292-513" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_finished_trips</a></span></h1><pre class="rust fn">fn make_table_finished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#292-511" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_finished_trips</a></span></h1><pre class="rust fn">fn make_table_finished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_unfinished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_unfinished_trips"><title>game::sandbox::dashboards::trip_table::make_table_unfinished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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_table_unfinished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_unfinished_trips"><title>game::sandbox::dashboards::trip_table::make_table_unfinished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_unfinished_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a></p><script>window.sidebarCurrent = {name: "make_table_unfinished_trips", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#602-700" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_unfinished_trips</a></span></h1><pre class="rust fn">fn make_table_unfinished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.UnfinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::UnfinishedTrip">UnfinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#600-698" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a href="index.html">trip_table</a>::<wbr><a class="fn" href="">make_table_unfinished_trips</a></span></h1><pre class="rust fn">fn make_table_unfinished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Table<<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.UnfinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::UnfinishedTrip">UnfinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
|||||||
<!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 `trip_table` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip_table"><title>game::sandbox::dashboards::trip_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
<!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 `trip_table` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip_table"><title>game::sandbox::dashboards::trip_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module trip_table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a></p><script>window.sidebarCurrent = {name: "trip_table", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module trip_table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a></p><script>window.sidebarCurrent = {name: "trip_table", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-700" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a class="mod" href="">trip_table</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-698" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">sandbox</a>::<wbr><a href="../index.html">dashboards</a>::<wbr><a class="mod" href="">trip_table</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.CancelledTrip.html" title="game::sandbox::dashboards::trip_table::CancelledTrip struct">CancelledTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Filters.html" title="game::sandbox::dashboards::trip_table::Filters struct">Filters</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.FinishedTrip.html" title="game::sandbox::dashboards::trip_table::FinishedTrip struct">FinishedTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TripTable.html" title="game::sandbox::dashboards::trip_table::TripTable struct">TripTable</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.UnfinishedTrip.html" title="game::sandbox::dashboards::trip_table::UnfinishedTrip struct">UnfinishedTrip</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.CancelledTrip.html" title="game::sandbox::dashboards::trip_table::CancelledTrip struct">CancelledTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Filters.html" title="game::sandbox::dashboards::trip_table::Filters struct">Filters</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.FinishedTrip.html" title="game::sandbox::dashboards::trip_table::FinishedTrip struct">FinishedTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TripTable.html" title="game::sandbox::dashboards::trip_table::TripTable struct">TripTable</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.UnfinishedTrip.html" title="game::sandbox::dashboards::trip_table::UnfinishedTrip struct">UnfinishedTrip</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.make_table_cancelled_trips.html" title="game::sandbox::dashboards::trip_table::make_table_cancelled_trips fn">make_table_cancelled_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_table_finished_trips.html" title="game::sandbox::dashboards::trip_table::make_table_finished_trips fn">make_table_finished_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_table_unfinished_trips.html" title="game::sandbox::dashboards::trip_table::make_table_unfinished_trips fn">make_table_unfinished_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.produce_raw_data.html" title="game::sandbox::dashboards::trip_table::produce_raw_data fn">produce_raw_data</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="fn" href="fn.make_table_cancelled_trips.html" title="game::sandbox::dashboards::trip_table::make_table_cancelled_trips fn">make_table_cancelled_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_table_finished_trips.html" title="game::sandbox::dashboards::trip_table::make_table_finished_trips fn">make_table_finished_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_table_unfinished_trips.html" title="game::sandbox::dashboards::trip_table::make_table_unfinished_trips fn">make_table_unfinished_trips</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.produce_raw_data.html" title="game::sandbox::dashboards::trip_table::produce_raw_data fn">produce_raw_data</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
|||||||
(function() {var implementors = {};
|
(function() {var implementors = {};
|
||||||
implementors["geom"] = [{"text":"impl From<LonLat> for Point<f64>","synthetic":false,"types":[]},{"text":"impl From<Polygon<f64>> for Polygon","synthetic":false,"types":[]},{"text":"impl From<Polygon> for Polygon<f64>","synthetic":false,"types":[]},{"text":"impl From<Pt2D> for Coordinate<f64>","synthetic":false,"types":[]},{"text":"impl From<Pt2D> for Point<f64>","synthetic":false,"types":[]},{"text":"impl From<Coordinate<f64>> for Pt2D","synthetic":false,"types":[]},{"text":"impl From<Point<f64>> for Pt2D","synthetic":false,"types":[]},{"text":"impl From<Ring> for LineString<f64>","synthetic":false,"types":[]},{"text":"impl From<LineString<f64>> for Ring","synthetic":false,"types":[]},{"text":"impl From<f64> for CornerRadii","synthetic":false,"types":[]}];
|
implementors["geom"] = [{"text":"impl From<LonLat> for Point<f64>","synthetic":false,"types":[]},{"text":"impl From<Polygon<f64>> for Polygon","synthetic":false,"types":[]},{"text":"impl From<Polygon> for Polygon<f64>","synthetic":false,"types":[]},{"text":"impl From<Pt2D> for Coordinate<f64>","synthetic":false,"types":[]},{"text":"impl From<Pt2D> for Point<f64>","synthetic":false,"types":[]},{"text":"impl From<Coordinate<f64>> for Pt2D","synthetic":false,"types":[]},{"text":"impl From<Point<f64>> for Pt2D","synthetic":false,"types":[]},{"text":"impl From<Ring> for LineString<f64>","synthetic":false,"types":[]},{"text":"impl From<LineString<f64>> for Ring","synthetic":false,"types":[]},{"text":"impl From<f64> for CornerRadii","synthetic":false,"types":[]}];
|
||||||
implementors["sim"] = [{"text":"impl From<NormalParkingSimState> for ParkingSimState","synthetic":false,"types":[]},{"text":"impl From<InfiniteParkingSimState> for ParkingSimState","synthetic":false,"types":[]},{"text":"impl From<Time> for AnyTime","synthetic":false,"types":[]},{"text":"impl From<f64> for AnyTime","synthetic":false,"types":[]}];
|
implementors["sim"] = [{"text":"impl From<NormalParkingSimState> for ParkingSimState","synthetic":false,"types":[]},{"text":"impl From<InfiniteParkingSimState> for ParkingSimState","synthetic":false,"types":[]},{"text":"impl From<Time> for AnyTime","synthetic":false,"types":[]},{"text":"impl From<f64> for AnyTime","synthetic":false,"types":[]}];
|
||||||
implementors["widgetry"] = [{"text":"impl From<Color> for Fill","synthetic":false,"types":[]},{"text":"impl From<Texture> for Fill","synthetic":false,"types":[]},{"text":"impl From<Key> for Option<MultiKey>","synthetic":false,"types":[]},{"text":"impl From<Key> for MultiKey","synthetic":false,"types":[]},{"text":"impl<F: Into<Fill>> From<Vec<(F, Polygon), Global>> for GeomBatch","synthetic":false,"types":[]},{"text":"impl From<Color> for RewriteColor","synthetic":false,"types":[]},{"text":"impl From<LogicalPosition<f64>> for ScreenPt","synthetic":false,"types":[]},{"text":"impl From<LogicalSize<f64>> for ScreenDims","synthetic":false,"types":[]},{"text":"impl From<ScreenDims> for LogicalSize<f64>","synthetic":false,"types":[]},{"text":"impl From<f64> for ScreenDims","synthetic":false,"types":[]},{"text":"impl From<(f64, f64)> for ScreenDims","synthetic":false,"types":[]},{"text":"impl From<f64> for CornerRounding","synthetic":false,"types":[]},{"text":"impl From<CornerRadii> for CornerRounding","synthetic":false,"types":[]},{"text":"impl From<usize> for EdgeInsets","synthetic":false,"types":[]},{"text":"impl From<f64> for EdgeInsets","synthetic":false,"types":[]},{"text":"impl From<EdgeInsets> for Rect<Dimension>","synthetic":false,"types":[]}];
|
implementors["widgetry"] = [{"text":"impl From<Color> for Fill","synthetic":false,"types":[]},{"text":"impl From<Texture> for Fill","synthetic":false,"types":[]},{"text":"impl From<Key> for Option<MultiKey>","synthetic":false,"types":[]},{"text":"impl From<Key> for MultiKey","synthetic":false,"types":[]},{"text":"impl<F: Into<Fill>> From<Vec<(F, Polygon), Global>> for GeomBatch","synthetic":false,"types":[]},{"text":"impl From<Color> for RewriteColor","synthetic":false,"types":[]},{"text":"impl From<LogicalPosition<f64>> for ScreenPt","synthetic":false,"types":[]},{"text":"impl From<LogicalSize<f64>> for ScreenDims","synthetic":false,"types":[]},{"text":"impl From<ScreenDims> for LogicalSize<f64>","synthetic":false,"types":[]},{"text":"impl From<f64> for ScreenDims","synthetic":false,"types":[]},{"text":"impl From<(f64, f64)> for ScreenDims","synthetic":false,"types":[]},{"text":"impl<AsStrRef: AsRef<str>> From<AsStrRef> for TextSpan","synthetic":false,"types":[]},{"text":"impl From<TextSpan> for Text","synthetic":false,"types":[]},{"text":"impl<AsStrRef: AsRef<str>> From<AsStrRef> for Text","synthetic":false,"types":[]},{"text":"impl From<f64> for CornerRounding","synthetic":false,"types":[]},{"text":"impl From<CornerRadii> for CornerRounding","synthetic":false,"types":[]},{"text":"impl From<usize> for EdgeInsets","synthetic":false,"types":[]},{"text":"impl From<f64> for EdgeInsets","synthetic":false,"types":[]},{"text":"impl From<EdgeInsets> for Rect<Dimension>","synthetic":false,"types":[]}];
|
||||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,5 +1,5 @@
|
|||||||
<!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 `colors` mod in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, colors"><title>map_gui::tools::colors - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!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 `colors` mod in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, colors"><title>map_gui::tools::colors - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module colors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a></p><script>window.sidebarCurrent = {name: "colors", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module colors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a></p><script>window.sidebarCurrent = {name: "colors", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_gui/tools/colors.rs.html#1-415" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="">colors</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_gui/tools/colors.rs.html#1-413" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_gui</a>::<wbr><a href="../index.html">tools</a>::<wbr><a class="mod" href="">colors</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.ColorDiscrete.html" title="map_gui::tools::colors::ColorDiscrete struct">ColorDiscrete</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorLegend.html" title="map_gui::tools::colors::ColorLegend struct">ColorLegend</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorNetwork.html" title="map_gui::tools::colors::ColorNetwork struct">ColorNetwork</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorScale.html" title="map_gui::tools::colors::ColorScale struct">ColorScale</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DivergingScale.html" title="map_gui::tools::colors::DivergingScale struct">DivergingScale</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="struct" href="struct.ColorDiscrete.html" title="map_gui::tools::colors::ColorDiscrete struct">ColorDiscrete</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorLegend.html" title="map_gui::tools::colors::ColorLegend struct">ColorLegend</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorNetwork.html" title="map_gui::tools::colors::ColorNetwork struct">ColorNetwork</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ColorScale.html" title="map_gui::tools::colors::ColorScale struct">ColorScale</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DivergingScale.html" title="map_gui::tools::colors::DivergingScale struct">DivergingScale</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
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
@ -7,7 +7,7 @@
|
|||||||
zoomed: Drawable,
|
zoomed: Drawable,
|
||||||
}</pre></div><div class="docblock"><p>Display a message dialog.</p>
|
}</pre></div><div class="docblock"><p>Display a message dialog.</p>
|
||||||
</div><h2 id="fields" class="fields small-section-header">
|
</div><h2 id="fields" class="fields small-section-header">
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.unzoomed" class="structfield small-section-header"><a href="#structfield.unzoomed" class="anchor field"></a><code>unzoomed: Drawable</code></span><span id="structfield.zoomed" class="structfield small-section-header"><a href="#structfield.zoomed" class="anchor field"></a><code>zoomed: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#135-176" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a><A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><I><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#136-148" title="goto source code">[src]</a></h4><h4 id="method.also_draw" class="method"><code>pub fn <a href="#method.also_draw" class="fnname">also_draw</a><A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><I>, <br> unzoomed: Drawable, <br> zoomed: Drawable<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#150-175" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> State<A> for <a class="struct" href="../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#178-207" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#179-192" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.unzoomed" class="structfield small-section-header"><a href="#structfield.unzoomed" class="anchor field"></a><code>unzoomed: Drawable</code></span><span id="structfield.zoomed" class="structfield small-section-header"><a href="#structfield.zoomed" class="anchor field"></a><code>zoomed: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#135-176" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a><A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#136-148" title="goto source code">[src]</a></h4><h4 id="method.also_draw" class="method"><code>pub fn <a href="#method.also_draw" class="fnname">also_draw</a><A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>, <br> unzoomed: Drawable, <br> zoomed: Drawable<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#150-175" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> State<A> for <a class="struct" href="../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#178-207" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#179-192" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#194-196" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#194-196" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#198-206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../src/map_gui/tools/ui.rs.html#198-206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
zoomed: Drawable,
|
zoomed: Drawable,
|
||||||
}</pre></div><div class="docblock"><p>Display a message dialog.</p>
|
}</pre></div><div class="docblock"><p>Display a message dialog.</p>
|
||||||
</div><h2 id="fields" class="fields small-section-header">
|
</div><h2 id="fields" class="fields small-section-header">
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.unzoomed" class="structfield small-section-header"><a href="#structfield.unzoomed" class="anchor field"></a><code>unzoomed: Drawable</code></span><span id="structfield.zoomed" class="structfield small-section-header"><a href="#structfield.zoomed" class="anchor field"></a><code>zoomed: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#135-176" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a><A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><I><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#136-148" title="goto source code">[src]</a></h4><h4 id="method.also_draw" class="method"><code>pub fn <a href="#method.also_draw" class="fnname">also_draw</a><A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><I>, <br> unzoomed: Drawable, <br> zoomed: Drawable<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#150-175" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> State<A> for <a class="struct" href="../../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#178-207" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#179-192" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.unzoomed" class="structfield small-section-header"><a href="#structfield.unzoomed" class="anchor field"></a><code>unzoomed: Drawable</code></span><span id="structfield.zoomed" class="structfield small-section-header"><a href="#structfield.zoomed" class="anchor field"></a><code>zoomed: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#135-176" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a><A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#136-148" title="goto source code">[src]</a></h4><h4 id="method.also_draw" class="method"><code>pub fn <a href="#method.also_draw" class="fnname">also_draw</a><A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>>(<br> ctx: &mut EventCtx<'_>, <br> title: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> lines: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>>, <br> unzoomed: Drawable, <br> zoomed: Drawable<br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A>></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#150-175" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CA%3E" class="impl"><code class="in-band">impl<A: <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>> State<A> for <a class="struct" href="../../../map_gui/tools/ui/struct.PopupMsg.html" title="struct map_gui::tools::ui::PopupMsg">PopupMsg</a></code><a href="#impl-State%3CA%3E" class="anchor"></a><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#178-207" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(&mut self, ctx: &mut EventCtx<'_>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A) -> Transition<A></code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#179-192" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#194-196" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
</div><h4 id="method.draw_baselayer" class="method hidden"><code>fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#194-196" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#198-206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class="srclink" href="../../../src/map_gui/tools/ui.rs.html#198-206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!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 `game` mod in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, game"><title>santa::game - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `game` mod in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, game"><title>santa::game - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module game</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class="location"><a href="../index.html">santa</a></p><script>window.sidebarCurrent = {name: "game", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module game</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class="location"><a href="../index.html">santa</a></p><script>window.sidebarCurrent = {name: "game", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/santa/game.rs.html#1-700" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">santa</a>::<wbr><a class="mod" href="">game</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/santa/game.rs.html#1-697" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">santa</a>::<wbr><a class="mod" href="">game</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.EnergylessArrow.html" title="santa::game::EnergylessArrow struct">EnergylessArrow</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Game.html" title="santa::game::Game struct">Game</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.GameState.html" title="santa::game::GameState struct">GameState</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MinimapController.html" title="santa::game::MinimapController struct">MinimapController</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.EnergylessArrow.html" title="santa::game::EnergylessArrow struct">EnergylessArrow</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Game.html" title="santa::game::Game struct">Game</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.GameState.html" title="santa::game::GameState struct">GameState</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MinimapController.html" title="santa::game::MinimapController struct">MinimapController</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="constant" href="constant.ACQUIRE_BOOST_RATE.html" title="santa::game::ACQUIRE_BOOST_RATE constant">ACQUIRE_BOOST_RATE</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.BOOST_SPEED_MULTIPLIER.html" title="santa::game::BOOST_SPEED_MULTIPLIER constant">BOOST_SPEED_MULTIPLIER</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.HANGRY_SPEED_MULTIPLIER.html" title="santa::game::HANGRY_SPEED_MULTIPLIER constant">HANGRY_SPEED_MULTIPLIER</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.MAX_BOOST.html" title="santa::game::MAX_BOOST constant">MAX_BOOST</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
<table><tr class="module-item"><td><a class="constant" href="constant.ACQUIRE_BOOST_RATE.html" title="santa::game::ACQUIRE_BOOST_RATE constant">ACQUIRE_BOOST_RATE</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.BOOST_SPEED_MULTIPLIER.html" title="santa::game::BOOST_SPEED_MULTIPLIER constant">BOOST_SPEED_MULTIPLIER</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.HANGRY_SPEED_MULTIPLIER.html" title="santa::game::HANGRY_SPEED_MULTIPLIER constant">HANGRY_SPEED_MULTIPLIER</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.MAX_BOOST.html" title="santa::game::MAX_BOOST constant">MAX_BOOST</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "santa";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
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
@ -1,9 +1,9 @@
|
|||||||
<!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 `MinimapController` struct in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, MinimapController"><title>santa::game::MinimapController - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!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 `MinimapController` struct in crate `santa`."><meta name="keywords" content="rust, rustlang, rust-lang, MinimapController"><title>santa::game::MinimapController - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct MinimapController</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-MinimapControls%3CSimpleApp%3CSession%3E%3E">MinimapControls<SimpleApp<Session>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">santa</a>::<wbr><a href="index.html">game</a></p><script>window.sidebarCurrent = {name: "MinimapController", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../santa/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct MinimapController</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-MinimapControls%3CSimpleApp%3CSession%3E%3E">MinimapControls<SimpleApp<Session>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">santa</a>::<wbr><a href="index.html">game</a></p><script>window.sidebarCurrent = {name: "MinimapController", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/santa/game.rs.html#672" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">game</a>::<wbr><a class="struct" href="">MinimapController</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct MinimapController;</pre></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-MinimapControls%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../map_gui/tools/minimap/trait.MinimapControls.html" title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/game/struct.MinimapController.html" title="struct santa::game::MinimapController">MinimapController</a></code><a href="#impl-MinimapControls%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/game.rs.html#674-700" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.has_zorder" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder" class="fnname">has_zorder</a>(&self, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/santa/game.rs.html#675-677" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/santa/game.rs.html#669" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">santa</a>::<wbr><a href="index.html">game</a>::<wbr><a class="struct" href="">MinimapController</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct MinimapController;</pre></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-MinimapControls%3CSimpleApp%3CSession%3E%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../map_gui/tools/minimap/trait.MinimapControls.html" title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>> for <a class="struct" href="../../santa/game/struct.MinimapController.html" title="struct santa::game::MinimapController">MinimapController</a></code><a href="#impl-MinimapControls%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><a class="srclink" href="../../src/santa/game.rs.html#671-697" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.has_zorder" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder" class="fnname">has_zorder</a>(&self, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/santa/game.rs.html#672-674" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||||||
zoomed in, placed beneath the zoom column. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder">Read more</a></p>
|
zoomed in, placed beneath the zoom column. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder">Read more</a></p>
|
||||||
</div><h4 id="method.make_legend" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend" class="fnname">make_legend</a>(<br> &self, <br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Widget</code><a class="srclink" href="../../src/santa/game.rs.html#679-699" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
</div><h4 id="method.make_legend" class="method hidden"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend" class="fnname">make_legend</a>(<br> &self, <br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../../santa/session/struct.Session.html" title="struct santa::session::Session">Session</a>><br>) -> Widget</code><a class="srclink" href="../../src/santa/game.rs.html#676-696" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||||||
minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend">Read more</a></p>
|
minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend">Read more</a></p>
|
||||||
</div><h4 id="method.has_layer" class="method hidden"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer" class="fnname">has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#38-40" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
</div><h4 id="method.has_layer" class="method hidden"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer" class="fnname">has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#38-40" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||||||
recalculated. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer">Read more</a></p>
|
recalculated. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer">Read more</a></p>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -980,9 +980,9 @@
|
|||||||
|
|
||||||
<span class="ident">HoverOnBuilding</span> {
|
<span class="ident">HoverOnBuilding</span> {
|
||||||
<span class="ident">tooltip</span>: <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">time</span>) <span class="op">=</span> <span class="ident">isochrone</span>.<span class="ident">time_to_reach_building</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">hover_id</span>) {
|
<span class="ident">tooltip</span>: <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">time</span>) <span class="op">=</span> <span class="ident">isochrone</span>.<span class="ident">time_to_reach_building</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">hover_id</span>) {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} away"</span>, <span class="ident">time</span>)))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} away"</span>, <span class="ident">time</span>))
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"This is more than 15 minutes away"</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"This is more than 15 minutes away"</span>)
|
||||||
},
|
},
|
||||||
<span class="ident">drawn_route</span>: <span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">batch</span>),
|
<span class="ident">drawn_route</span>: <span class="ident">ctx</span>.<span class="ident">upload</span>(<span class="ident">batch</span>),
|
||||||
}
|
}
|
||||||
@ -1044,7 +1044,7 @@
|
|||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Type"</span>,
|
<span class="string">"Type"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">x</span>.<span class="ident">amenity_type</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="ident">x</span>.<span class="ident">amenity_type</span>).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> {
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> {
|
||||||
<span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">amenity_type</span>.<span class="ident">clone</span>())
|
<span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">amenity_type</span>.<span class="ident">clone</span>())
|
||||||
})),
|
})),
|
||||||
@ -1054,7 +1054,7 @@
|
|||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Time to reach"</span>,
|
<span class="string">"Time to reach"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_away</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">duration_away</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_away</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_away</span>))),
|
||||||
);
|
);
|
||||||
|
@ -522,7 +522,7 @@
|
|||||||
<span class="kw">let</span> <span class="ident">challenge</span> <span class="op">=</span> <span class="ident">Challenge</span>::<span class="ident">all</span>().<span class="ident">remove</span>(<span class="ident">name</span>).<span class="ident">unwrap</span>().<span class="ident">remove</span>(<span class="ident">current</span>);
|
<span class="kw">let</span> <span class="ident">challenge</span> <span class="op">=</span> <span class="ident">Challenge</span>::<span class="ident">all</span>().<span class="ident">remove</span>(<span class="ident">name</span>).<span class="ident">unwrap</span>().<span class="ident">remove</span>(<span class="ident">current</span>);
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">challenge</span>.<span class="ident">description</span> {
|
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">challenge</span>.<span class="ident">description</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">l</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">l</span>);
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">inner_col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">inner_col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[
|
||||||
@ -535,14 +535,14 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">scores</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">high_scores</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">challenge</span>.<span class="ident">gameplay</span>) {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">scores</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">high_scores</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">challenge</span>.<span class="ident">gameplay</span>) {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} high scores:"</span>, <span class="ident">scores</span>.<span class="ident">len</span>())));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} high scores:"</span>, <span class="ident">scores</span>.<span class="ident">len</span>()));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Goal: {}"</span>, <span class="ident">scores</span>[<span class="number">0</span>].<span class="ident">goal</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Goal: {}"</span>, <span class="ident">scores</span>[<span class="number">0</span>].<span class="ident">goal</span>));
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">idx</span> <span class="op">=</span> <span class="number">1</span>;
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">idx</span> <span class="op">=</span> <span class="number">1</span>;
|
||||||
<span class="kw">for</span> <span class="ident">score</span> <span class="kw">in</span> <span class="ident">scores</span> {
|
<span class="kw">for</span> <span class="ident">score</span> <span class="kw">in</span> <span class="ident">scores</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"{}) {}, using proposal: {}"</span>,
|
<span class="string">"{}) {}, using proposal: {}"</span>,
|
||||||
<span class="ident">idx</span>, <span class="ident">score</span>.<span class="ident">score</span>, <span class="ident">score</span>.<span class="ident">edits_name</span>
|
<span class="ident">idx</span>, <span class="ident">score</span>.<span class="ident">score</span>, <span class="ident">score</span>.<span class="ident">edits_name</span>
|
||||||
)));
|
));
|
||||||
<span class="ident">idx</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
<span class="ident">idx</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
||||||
}
|
}
|
||||||
<span class="ident">inner_col</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">inner_col</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
@ -723,7 +723,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">dev</span> <span class="op">&&</span> <span class="op">!</span><span class="ident">g</span>.<span class="ident">is_screencap</span>() {
|
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">dev</span> <span class="op">&&</span> <span class="op">!</span><span class="ident">g</span>.<span class="ident">is_screencap</span>() {
|
||||||
<span class="kw">let</span> <span class="ident">dev_batch</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"DEV"</span>)).<span class="ident">bg</span>(<span class="ident">Color</span>::<span class="ident">RED</span>).<span class="ident">render</span>(<span class="ident">g</span>);
|
<span class="kw">let</span> <span class="ident">dev_batch</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"DEV"</span>).<span class="ident">bg</span>(<span class="ident">Color</span>::<span class="ident">RED</span>).<span class="ident">render</span>(<span class="ident">g</span>);
|
||||||
<span class="kw">let</span> <span class="ident">dims</span> <span class="op">=</span> <span class="ident">dev_batch</span>.<span class="ident">get_dims</span>();
|
<span class="kw">let</span> <span class="ident">dims</span> <span class="op">=</span> <span class="ident">dev_batch</span>.<span class="ident">get_dims</span>();
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(<span class="ident">dev_batch</span>.<span class="ident">translate</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(<span class="ident">dev_batch</span>.<span class="ident">translate</span>(
|
||||||
<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span> <span class="op">-</span> <span class="ident">dims</span>.<span class="ident">width</span> <span class="op">-</span> <span class="number">10.0</span>,
|
<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span> <span class="op">-</span> <span class="ident">dims</span>.<span class="ident">width</span> <span class="op">-</span> <span class="number">10.0</span>,
|
||||||
|
@ -312,7 +312,7 @@
|
|||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
||||||
]),
|
]),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Root causes"</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Root causes"</span>)
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
.<span class="ident">named</span>(<span class="string">"root causes"</span>),
|
.<span class="ident">named</span>(<span class="string">"root causes"</span>),
|
||||||
]))
|
]))
|
||||||
|
@ -939,9 +939,6 @@
|
|||||||
<span id="936">936</span>
|
<span id="936">936</span>
|
||||||
<span id="937">937</span>
|
<span id="937">937</span>
|
||||||
<span id="938">938</span>
|
<span id="938">938</span>
|
||||||
<span id="939">939</span>
|
|
||||||
<span id="940">940</span>
|
|
||||||
<span id="941">941</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashSet</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashSet</span>;
|
||||||
|
|
||||||
@ -1102,19 +1099,16 @@
|
|||||||
<span class="kw">fn</span> <span class="ident">reset_info</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>) {
|
<span class="kw">fn</span> <span class="ident">reset_info</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>) {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="self">self</span>.<span class="ident">hidden</span>.<span class="ident">is_empty</span>() {
|
<span class="kw">if</span> <span class="op">!</span><span class="self">self</span>.<span class="ident">hidden</span>.<span class="ident">is_empty</span>() {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Hiding {} things"</span>, <span class="self">self</span>.<span class="ident">hidden</span>.<span class="ident">len</span>())));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Hiding {} things"</span>, <span class="self">self</span>.<span class="ident">hidden</span>.<span class="ident">len</span>()));
|
||||||
}
|
}
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">ref</span> <span class="ident">results</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">search_results</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">ref</span> <span class="ident">results</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">search_results</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Search for {} has {} results"</span>,
|
<span class="string">"Search for {} has {} results"</span>,
|
||||||
<span class="ident">results</span>.<span class="ident">query</span>, <span class="ident">results</span>.<span class="ident">num_matches</span>
|
<span class="ident">results</span>.<span class="ident">query</span>, <span class="ident">results</span>.<span class="ident">num_matches</span>
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">n</span>, <span class="kw">_</span>)) <span class="op">=</span> <span class="self">self</span>.<span class="ident">all_routes</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">n</span>, <span class="kw">_</span>)) <span class="op">=</span> <span class="self">self</span>.<span class="ident">all_routes</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Showing {} routes"</span>, <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">n</span>)));
|
||||||
<span class="string">"Showing {} routes"</span>,
|
|
||||||
<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">n</span>)
|
|
||||||
)));
|
|
||||||
}
|
}
|
||||||
<span class="self">self</span>.<span class="ident">panel</span>
|
<span class="self">self</span>.<span class="ident">panel</span>
|
||||||
.<span class="ident">replace</span>(<span class="ident">ctx</span>, <span class="string">"current info"</span>, <span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
.<span class="ident">replace</span>(<span class="ident">ctx</span>, <span class="string">"current info"</span>, <span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
@ -114,13 +114,11 @@
|
|||||||
<span id="111">111</span>
|
<span id="111">111</span>
|
||||||
<span id="112">112</span>
|
<span id="112">112</span>
|
||||||
<span id="113">113</span>
|
<span id="113">113</span>
|
||||||
<span id="114">114</span>
|
|
||||||
<span id="115">115</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">ID</span>;
|
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">ID</span>;
|
||||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">Map</span>, <span class="ident">PathConstraints</span>};
|
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">Map</span>, <span class="ident">PathConstraints</span>};
|
||||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">AgentID</span>, <span class="ident">Sim</span>};
|
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">AgentID</span>, <span class="ident">Sim</span>};
|
||||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">GfxCtx</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Text</span>};
|
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">GfxCtx</span>, <span class="ident">Key</span>, <span class="ident">Text</span>};
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||||
|
|
||||||
@ -131,16 +129,14 @@
|
|||||||
<span class="kw">if</span> <span class="ident">g</span>.<span class="ident">is_key_down</span>(<span class="ident">Key</span>::<span class="ident">LeftControl</span>) {
|
<span class="kw">if</span> <span class="ident">g</span>.<span class="ident">is_key_down</span>(<span class="ident">Key</span>::<span class="ident">LeftControl</span>) {
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor_in_map_space</span>() {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor_in_map_space</span>() {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">pt</span>.<span class="ident">to_string</span>()));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">pt</span>.<span class="ident">to_string</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">pt</span>.<span class="ident">to_gps</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_gps_bounds</span>()).<span class="ident">to_string</span>());
|
||||||
<span class="ident">pt</span>.<span class="ident">to_gps</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_gps_bounds</span>()).<span class="ident">to_string</span>(),
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{:?}"</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor</span>()));
|
||||||
));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"zoom: {}"</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_zoom</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{:?}"</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">get_cursor</span>())));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"zoom: {}"</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_zoom</span>)));
|
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
|
||||||
<span class="string">"cam_x = {}, cam_y = {}"</span>,
|
<span class="string">"cam_x = {}, cam_y = {}"</span>,
|
||||||
<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_x</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_y</span>
|
<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_x</span>, <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">cam_y</span>
|
||||||
)));
|
));
|
||||||
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@
|
|||||||
} {
|
} {
|
||||||
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">cnt</span>.<span class="ident">get</span>(<span class="ident">r</span>);
|
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">cnt</span>.<span class="ident">get</span>(<span class="ident">r</span>);
|
||||||
<span class="kw">if</span> <span class="ident">n</span> <span class="op">></span> <span class="number">0</span> {
|
<span class="kw">if</span> <span class="ident">n</span> <span class="op">></span> <span class="number">0</span> {
|
||||||
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">n</span>))));
|
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">n</span>)));
|
||||||
}
|
}
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> <span class="op">=</span> <span class="prelude-val">None</span>;
|
||||||
|
@ -254,7 +254,7 @@
|
|||||||
<span class="kw">match</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">items</span>[<span class="self">self</span>.<span class="ident">idx</span>] {
|
<span class="kw">match</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">items</span>[<span class="self">self</span>.<span class="ident">idx</span>] {
|
||||||
<span class="ident">Item</span>::<span class="ident">Point</span>(<span class="ident">pt</span>) <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Item</span>::<span class="ident">Point</span>(<span class="ident">pt</span>) <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>()))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>())
|
||||||
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
||||||
.<span class="ident">render</span>(<span class="ident">g</span>)
|
.<span class="ident">render</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="kw-2">*</span><span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="kw-2">*</span><span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
||||||
@ -263,7 +263,7 @@
|
|||||||
<span class="ident">Item</span>::<span class="ident">Triangle</span>(<span class="kw-2">ref</span> <span class="ident">tri</span>) <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Item</span>::<span class="ident">Triangle</span>(<span class="kw-2">ref</span> <span class="ident">tri</span>) <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="kw-2">&</span>[<span class="ident">tri</span>.<span class="ident">pt1</span>, <span class="ident">tri</span>.<span class="ident">pt2</span>, <span class="ident">tri</span>.<span class="ident">pt3</span>] {
|
<span class="kw">for</span> <span class="ident">pt</span> <span class="kw">in</span> <span class="kw-2">&</span>[<span class="ident">tri</span>.<span class="ident">pt1</span>, <span class="ident">tri</span>.<span class="ident">pt2</span>, <span class="ident">tri</span>.<span class="ident">pt3</span>] {
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>()))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>())
|
||||||
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
||||||
.<span class="ident">render</span>(<span class="ident">g</span>)
|
.<span class="ident">render</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="kw-2">*</span><span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="kw-2">*</span><span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
||||||
@ -274,7 +274,7 @@
|
|||||||
<span class="ident">Item</span>::<span class="ident">Polygon</span>(<span class="kw-2">ref</span> <span class="ident">poly</span>) <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Item</span>::<span class="ident">Polygon</span>(<span class="kw-2">ref</span> <span class="ident">poly</span>) <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">selected</span>, <span class="ident">poly</span>.<span class="ident">clone</span>());
|
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">selected</span>, <span class="ident">poly</span>.<span class="ident">clone</span>());
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>()))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="self">self</span>.<span class="ident">idx</span>.<span class="ident">to_string</span>())
|
||||||
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
||||||
.<span class="ident">render</span>(<span class="ident">g</span>)
|
.<span class="ident">render</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="ident">poly</span>.<span class="ident">center</span>()).<span class="ident">to_pt</span>()),
|
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="ident">poly</span>.<span class="ident">center</span>()).<span class="ident">to_pt</span>()),
|
||||||
@ -283,7 +283,7 @@
|
|||||||
}
|
}
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">center</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pt</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">center</span> {
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"c"</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"c"</span>)
|
||||||
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)
|
||||||
.<span class="ident">render</span>(<span class="ident">g</span>)
|
.<span class="ident">render</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
.<span class="ident">centered_on</span>(<span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">map_to_screen</span>(<span class="ident">pt</span>).<span class="ident">to_pt</span>()),
|
||||||
|
@ -882,8 +882,8 @@
|
|||||||
<span class="kw">let</span> <span class="ident">current</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">current_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>);
|
<span class="kw">let</span> <span class="ident">current</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">current_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>);
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">append_all</span>(<span class="ident">cmp_count</span>(<span class="ident">current</span>, <span class="ident">baseline</span>));
|
<span class="ident">txt</span>.<span class="ident">append_all</span>(<span class="ident">cmp_count</span>(<span class="ident">current</span>, <span class="ident">baseline</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} baseline"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">baseline</span>))));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} baseline"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">baseline</span>)));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} now"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">current</span>))));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} now"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">current</span>)));
|
||||||
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">txt</span>);
|
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">txt</span>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -568,13 +568,13 @@
|
|||||||
<span class="kw">for</span> (<span class="ident">r</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">per_road</span>.<span class="ident">borrow</span>() {
|
<span class="kw">for</span> (<span class="ident">r</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">per_road</span>.<span class="ident">borrow</span>() {
|
||||||
<span class="ident">tooltips</span>.<span class="ident">push</span>((
|
<span class="ident">tooltips</span>.<span class="ident">push</span>((
|
||||||
<span class="ident">map</span>.<span class="ident">get_r</span>(<span class="kw-2">*</span><span class="ident">r</span>).<span class="ident">get_thick_polygon</span>(<span class="ident">map</span>),
|
<span class="ident">map</span>.<span class="ident">get_r</span>(<span class="kw-2">*</span><span class="ident">r</span>).<span class="ident">get_thick_polygon</span>(<span class="ident">map</span>),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="kw-2">*</span><span class="ident">cnt</span>)))),
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="kw-2">*</span><span class="ident">cnt</span>))),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
<span class="kw">for</span> (<span class="ident">i</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">per_intersection</span>.<span class="ident">borrow</span>() {
|
<span class="kw">for</span> (<span class="ident">i</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">per_intersection</span>.<span class="ident">borrow</span>() {
|
||||||
<span class="ident">tooltips</span>.<span class="ident">push</span>((
|
<span class="ident">tooltips</span>.<span class="ident">push</span>((
|
||||||
<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="kw-2">*</span><span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">clone</span>(),
|
<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="kw-2">*</span><span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">clone</span>(),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="kw-2">*</span><span class="ident">cnt</span>)))),
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} collisions"</span>, <span class="ident">prettyprint_usize</span>(<span class="kw-2">*</span><span class="ident">cnt</span>))),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
<span class="kw">let</span> <span class="ident">tooltips</span> <span class="op">=</span> <span class="ident">MapspaceTooltips</span>::<span class="ident">new</span>(
|
<span class="kw">let</span> <span class="ident">tooltips</span> <span class="op">=</span> <span class="ident">MapspaceTooltips</span>::<span class="ident">new</span>(
|
||||||
|
@ -246,19 +246,19 @@
|
|||||||
<span class="ident">by_type</span>.<span class="ident">add</span>(<span class="prelude-val">None</span>, <span class="kw-2">*</span><span class="ident">cnt</span>);
|
<span class="ident">by_type</span>.<span class="ident">add</span>(<span class="prelude-val">None</span>, <span class="kw-2">*</span><span class="ident">cnt</span>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">breakdown</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Breakdown by type"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">breakdown</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Breakdown by type"</span>);
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">list</span> <span class="op">=</span> <span class="ident">by_type</span>.<span class="ident">consume</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">list</span> <span class="op">=</span> <span class="ident">by_type</span>.<span class="ident">consume</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span>();
|
||||||
<span class="ident">list</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">cnt</span>)<span class="op">|</span> <span class="kw-2">*</span><span class="ident">cnt</span>);
|
<span class="ident">list</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">cnt</span>)<span class="op">|</span> <span class="kw-2">*</span><span class="ident">cnt</span>);
|
||||||
<span class="ident">list</span>.<span class="ident">reverse</span>();
|
<span class="ident">list</span>.<span class="ident">reverse</span>();
|
||||||
<span class="kw">let</span> <span class="ident">sum</span> <span class="op">=</span> <span class="ident">per_bldg</span>.<span class="ident">sum</span>() <span class="kw">as</span> <span class="ident">f64</span>;
|
<span class="kw">let</span> <span class="ident">sum</span> <span class="op">=</span> <span class="ident">per_bldg</span>.<span class="ident">sum</span>() <span class="kw">as</span> <span class="ident">f64</span>;
|
||||||
<span class="kw">for</span> (<span class="ident">category</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">list</span> {
|
<span class="kw">for</span> (<span class="ident">category</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="ident">list</span> {
|
||||||
<span class="ident">breakdown</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">breakdown</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"{}: {}%"</span>,
|
<span class="string">"{}: {}%"</span>,
|
||||||
<span class="ident">category</span>
|
<span class="ident">category</span>
|
||||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">to_string</span>())
|
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">to_string</span>())
|
||||||
.<span class="ident">unwrap_or</span>(<span class="string">"other"</span>.<span class="ident">to_string</span>()),
|
.<span class="ident">unwrap_or</span>(<span class="string">"other"</span>.<span class="ident">to_string</span>()),
|
||||||
((<span class="ident">cnt</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">/</span> <span class="ident">sum</span> <span class="op">*</span> <span class="number">100.0</span>) <span class="kw">as</span> <span class="ident">usize</span>
|
((<span class="ident">cnt</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">/</span> <span class="ident">sum</span> <span class="op">*</span> <span class="number">100.0</span>) <span class="kw">as</span> <span class="ident">usize</span>
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">PopularDestinations</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">PopularDestinations</span> {
|
||||||
@ -323,16 +323,16 @@
|
|||||||
|
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ID</span>::<span class="ident">Building</span>(<span class="ident">b</span>)) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ID</span>::<span class="ident">Building</span>(<span class="ident">b</span>)) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">current_selection</span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"{} trips to here"</span>,
|
<span class="string">"{} trips to here"</span>,
|
||||||
<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">per_bldg</span>.<span class="ident">get</span>(<span class="ident">b</span>))
|
<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">per_bldg</span>.<span class="ident">get</span>(<span class="ident">b</span>))
|
||||||
)));
|
));
|
||||||
<span class="kw">for</span> <span class="ident">a</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">amenities</span> {
|
<span class="kw">for</span> <span class="ident">a</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">amenities</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">" {} ({})"</span>,
|
<span class="string">" {} ({})"</span>,
|
||||||
<span class="ident">a</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
<span class="ident">a</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
||||||
<span class="ident">a</span>.<span class="ident">amenity_type</span>
|
<span class="ident">a</span>.<span class="ident">amenity_type</span>
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
||||||
}
|
}
|
||||||
|
@ -619,7 +619,7 @@
|
|||||||
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">Color</span>::<span class="ident">BLUE</span>, <span class="ident">obj</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>());
|
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">Color</span>::<span class="ident">BLUE</span>, <span class="ident">obj</span>.<span class="ident">polygon</span>.<span class="ident">clone</span>());
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="kw">for</span> (<span class="ident">k</span>, <span class="ident">v</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">obj</span>.<span class="ident">attribs</span> {
|
<span class="kw">for</span> (<span class="ident">k</span>, <span class="ident">v</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">obj</span>.<span class="ident">attribs</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} = {}"</span>, <span class="ident">k</span>, <span class="ident">v</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} = {}"</span>, <span class="ident">k</span>, <span class="ident">v</span>));
|
||||||
}
|
}
|
||||||
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">txt</span>);
|
||||||
|
|
||||||
|
@ -145,10 +145,6 @@
|
|||||||
<span id="142">142</span>
|
<span id="142">142</span>
|
||||||
<span id="143">143</span>
|
<span id="143">143</span>
|
||||||
<span id="144">144</span>
|
<span id="144">144</span>
|
||||||
<span id="145">145</span>
|
|
||||||
<span id="146">146</span>
|
|
||||||
<span id="147">147</span>
|
|
||||||
<span id="148">148</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">LonLat</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Circle</span>, <span class="ident">Distance</span>, <span class="ident">LonLat</span>, <span class="ident">Pt2D</span>, <span class="ident">Ring</span>};
|
||||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||||
@ -288,11 +284,7 @@
|
|||||||
|
|
||||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">mouseover_pt</span>.<span class="ident">is_some</span>() {
|
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">mouseover_pt</span>.<span class="ident">is_some</span>() {
|
||||||
<span class="ident">CommonState</span>::<span class="ident">draw_custom_osd</span>(
|
<span class="ident">CommonState</span>::<span class="ident">draw_custom_osd</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"hold left Control to move point"</span>));
|
||||||
<span class="ident">g</span>,
|
|
||||||
<span class="ident">app</span>,
|
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"hold left Control to move point"</span>)),
|
|
||||||
);
|
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">CommonState</span>::<span class="ident">draw_osd</span>(<span class="ident">g</span>, <span class="ident">app</span>);
|
<span class="ident">CommonState</span>::<span class="ident">draw_osd</span>(<span class="ident">g</span>, <span class="ident">app</span>);
|
||||||
}
|
}
|
||||||
|
@ -1000,7 +1000,7 @@
|
|||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">event</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="ident">event</span>)
|
||||||
.<span class="ident">with_bg</span>()
|
.<span class="ident">with_bg</span>()
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
||||||
.<span class="ident">scale</span>(<span class="number">0.5</span>)
|
.<span class="ident">scale</span>(<span class="number">0.5</span>)
|
||||||
@ -1015,7 +1015,7 @@
|
|||||||
}
|
}
|
||||||
<span class="comment">// TODO Refactor</span>
|
<span class="comment">// TODO Refactor</span>
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">event</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="ident">event</span>)
|
||||||
.<span class="ident">with_bg</span>()
|
.<span class="ident">with_bg</span>()
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
||||||
.<span class="ident">scale</span>(<span class="number">0.5</span>)
|
.<span class="ident">scale</span>(<span class="number">0.5</span>)
|
||||||
@ -1041,7 +1041,7 @@
|
|||||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>), <span class="ident">Color</span>::<span class="ident">RED</span>)),
|
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>), <span class="ident">Color</span>::<span class="ident">RED</span>)),
|
||||||
);
|
);
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">event</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">event</span>)
|
||||||
.<span class="ident">with_bg</span>()
|
.<span class="ident">with_bg</span>()
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">g</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||||
@ -1051,7 +1051,7 @@
|
|||||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">RED</span>, <span class="ident">Ring</span>::<span class="ident">must_new</span>(<span class="self">self</span>.<span class="ident">pts</span>.<span class="ident">clone</span>()).<span class="ident">to_polygon</span>());
|
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">RED</span>, <span class="ident">Ring</span>::<span class="ident">must_new</span>(<span class="self">self</span>.<span class="ident">pts</span>.<span class="ident">clone</span>()).<span class="ident">to_polygon</span>());
|
||||||
<span class="comment">// TODO Refactor plz</span>
|
<span class="comment">// TODO Refactor plz</span>
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">event</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">event</span>)
|
||||||
.<span class="ident">with_bg</span>()
|
.<span class="ident">with_bg</span>()
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">g</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">g</span>)
|
||||||
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
.<span class="ident">scale</span>(<span class="number">0.75</span>)
|
||||||
|
@ -433,7 +433,7 @@
|
|||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="kw-2">*</span><span class="ident">i</span>).<span class="ident">offset</span> <span class="op">-</span> <span class="ident">base_offset</span>;
|
<span class="kw">let</span> <span class="ident">offset</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_traffic_signal</span>(<span class="kw-2">*</span><span class="ident">i</span>).<span class="ident">offset</span> <span class="op">-</span> <span class="ident">base_offset</span>;
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">offset</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">offset</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))
|
||||||
.<span class="ident">bg</span>(<span class="ident">Color</span>::<span class="ident">PURPLE</span>)
|
.<span class="ident">bg</span>(<span class="ident">Color</span>::<span class="ident">PURPLE</span>)
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">ctx</span>)
|
||||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAlpha</span>(<span class="number">0.8</span>))
|
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">ChangeAlpha</span>(<span class="number">0.8</span>))
|
||||||
|
@ -455,10 +455,10 @@
|
|||||||
|
|
||||||
<span class="kw">fn</span> <span class="ident">make_instructions</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">allow_through_traffic</span>: <span class="kw-2">&</span><span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
<span class="kw">fn</span> <span class="ident">make_instructions</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">allow_through_traffic</span>: <span class="kw-2">&</span><span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||||
<span class="kw">if</span> <span class="ident">allow_through_traffic</span> <span class="op">=</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">TripMode</span>::<span class="ident">all</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>() {
|
<span class="kw">if</span> <span class="ident">allow_through_traffic</span> <span class="op">=</span><span class="op">=</span> <span class="kw-2">&</span><span class="ident">TripMode</span>::<span class="ident">all</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>() {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(
|
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||||
<span class="string">"Through-traffic is allowed for everyone, meaning this is just a normal public road. \
|
<span class="string">"Through-traffic is allowed for everyone, meaning this is just a normal public road. \
|
||||||
Would you like to restrict it?"</span>,
|
Would you like to restrict it?"</span>,
|
||||||
))
|
)
|
||||||
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">30</span>)
|
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">30</span>)
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.50.0 (cb75ad5db 2021-02-10)"</span>;
|
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.50.0 (cb75ad5db 2021-02-10)"</span>;
|
||||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 19 Mar 2021 23:34:02 +0000"</span>;
|
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 19 Mar 2021 23:56:44 +0000"</span>;
|
||||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||||
|
@ -370,23 +370,23 @@
|
|||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
|
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">is_empty</span>() {
|
<span class="kw">if</span> <span class="op">!</span><span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">is_empty</span>() {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
<span class="kw">if</span> <span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">len</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> {
|
<span class="kw">if</span> <span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">len</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"1 amenity:"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"1 amenity:"</span>);
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} amenities:"</span>, <span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">len</span>())));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} amenities:"</span>, <span class="ident">b</span>.<span class="ident">amenities</span>.<span class="ident">len</span>()));
|
||||||
}
|
}
|
||||||
<span class="kw">for</span> <span class="ident">a</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">b</span>.<span class="ident">amenities</span> {
|
<span class="kw">for</span> <span class="ident">a</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">b</span>.<span class="ident">amenities</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">" {} ({})"</span>,
|
<span class="string">" {} ({})"</span>,
|
||||||
<span class="ident">a</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
<span class="ident">a</span>.<span class="ident">names</span>.<span class="ident">get</span>(<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
||||||
<span class="ident">a</span>.<span class="ident">amenity_type</span>
|
<span class="ident">a</span>.<span class="ident">amenity_type</span>
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">infinite_parking</span>() {
|
<span class="kw">if</span> <span class="op">!</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">infinite_parking</span>() {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pl</span>) <span class="op">=</span> <span class="ident">app</span>
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">pl</span>) <span class="op">=</span> <span class="ident">app</span>
|
||||||
.<span class="ident">primary</span>
|
.<span class="ident">primary</span>
|
||||||
.<span class="ident">sim</span>
|
.<span class="ident">sim</span>
|
||||||
@ -413,7 +413,7 @@
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"No nearby parking available"</span>))
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"No nearby parking available"</span>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Total"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Total"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(
|
<span class="ident">txt</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">": {} boardings, {} alightings"</span>,
|
<span class="string">": {} boardings, {} alightings"</span>,
|
||||||
@ -484,7 +484,7 @@
|
|||||||
.<span class="ident">secondary</span>(),
|
.<span class="ident">secondary</span>(),
|
||||||
);
|
);
|
||||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_routes_serving_stop</span>(<span class="ident">id</span>) {
|
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_routes_serving_stop</span>(<span class="ident">id</span>) {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Route {}"</span>, <span class="ident">r</span>.<span class="ident">short_name</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Route {}"</span>, <span class="ident">r</span>.<span class="ident">short_name</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(
|
<span class="ident">txt</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">": {} boardings, {} alightings"</span>,
|
<span class="string">": {} boardings, {} alightings"</span>,
|
||||||
@ -585,7 +585,7 @@
|
|||||||
<span class="ident">header_btns</span>(<span class="ident">ctx</span>),
|
<span class="ident">header_btns</span>(<span class="ident">ctx</span>),
|
||||||
]));
|
]));
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(
|
<span class="ident">rows</span>.<span class="ident">push</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">route</span>.<span class="ident">full_name</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="kw-2">&</span><span class="ident">route</span>.<span class="ident">full_name</span>)
|
||||||
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">20</span>)
|
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">20</span>)
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
);
|
);
|
||||||
@ -761,11 +761,11 @@
|
|||||||
<span class="comment">// TODO Unit test</span>
|
<span class="comment">// TODO Unit test</span>
|
||||||
<span class="kw">fn</span> <span class="ident">describe_schedule</span>(<span class="ident">route</span>: <span class="kw-2">&</span><span class="ident">BusRoute</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Text</span> {
|
<span class="kw">fn</span> <span class="ident">describe_schedule</span>(<span class="ident">route</span>: <span class="kw-2">&</span><span class="ident">BusRoute</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Text</span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"{} {}s run this route daily"</span>,
|
<span class="string">"{} {}s run this route daily"</span>,
|
||||||
<span class="ident">route</span>.<span class="ident">spawn_times</span>.<span class="ident">len</span>(),
|
<span class="ident">route</span>.<span class="ident">spawn_times</span>.<span class="ident">len</span>(),
|
||||||
<span class="ident">route</span>.<span class="ident">plural_noun</span>()
|
<span class="ident">route</span>.<span class="ident">plural_noun</span>()
|
||||||
)));
|
));
|
||||||
|
|
||||||
<span class="kw">if</span> <span class="bool-val">false</span> {
|
<span class="kw">if</span> <span class="bool-val">false</span> {
|
||||||
<span class="comment">// Compress the times</span>
|
<span class="comment">// Compress the times</span>
|
||||||
@ -778,12 +778,12 @@
|
|||||||
<span class="kw">if</span> <span class="prelude-val">Some</span>(<span class="ident">new_dt</span>) <span class="op">=</span><span class="op">=</span> <span class="ident">dt</span> {
|
<span class="kw">if</span> <span class="prelude-val">Some</span>(<span class="ident">new_dt</span>) <span class="op">=</span><span class="op">=</span> <span class="ident">dt</span> {
|
||||||
<span class="ident">last</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="kw-2">*</span><span class="ident">t</span>);
|
<span class="ident">last</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="kw-2">*</span><span class="ident">t</span>);
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Every {} from {} to {}"</span>,
|
<span class="string">"Every {} from {} to {}"</span>,
|
||||||
<span class="ident">dt</span>.<span class="ident">unwrap</span>(),
|
<span class="ident">dt</span>.<span class="ident">unwrap</span>(),
|
||||||
<span class="ident">start</span>.<span class="ident">ampm_tostring</span>(),
|
<span class="ident">start</span>.<span class="ident">ampm_tostring</span>(),
|
||||||
<span class="ident">l</span>.<span class="ident">ampm_tostring</span>()
|
<span class="ident">l</span>.<span class="ident">ampm_tostring</span>()
|
||||||
)));
|
));
|
||||||
<span class="ident">start</span> <span class="op">=</span> <span class="ident">l</span>;
|
<span class="ident">start</span> <span class="op">=</span> <span class="ident">l</span>;
|
||||||
<span class="ident">last</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="kw-2">*</span><span class="ident">t</span>);
|
<span class="ident">last</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="kw-2">*</span><span class="ident">t</span>);
|
||||||
<span class="ident">dt</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">new_dt</span>);
|
<span class="ident">dt</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">new_dt</span>);
|
||||||
@ -794,16 +794,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="comment">// Handle end</span>
|
<span class="comment">// Handle end</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Every {} from {} to {}"</span>,
|
<span class="string">"Every {} from {} to {}"</span>,
|
||||||
<span class="ident">dt</span>.<span class="ident">unwrap</span>(),
|
<span class="ident">dt</span>.<span class="ident">unwrap</span>(),
|
||||||
<span class="ident">start</span>.<span class="ident">ampm_tostring</span>(),
|
<span class="ident">start</span>.<span class="ident">ampm_tostring</span>(),
|
||||||
<span class="ident">last</span>.<span class="ident">unwrap</span>().<span class="ident">ampm_tostring</span>()
|
<span class="ident">last</span>.<span class="ident">unwrap</span>().<span class="ident">ampm_tostring</span>()
|
||||||
)));
|
));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="comment">// Just list the times</span>
|
<span class="comment">// Just list the times</span>
|
||||||
<span class="kw">for</span> <span class="ident">t</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">route</span>.<span class="ident">spawn_times</span> {
|
<span class="kw">for</span> <span class="ident">t</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">route</span>.<span class="ident">spawn_times</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">t</span>.<span class="ident">ampm_tostring</span>()));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">t</span>.<span class="ident">ampm_tostring</span>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="ident">txt</span>
|
<span class="ident">txt</span>
|
||||||
|
@ -462,7 +462,7 @@
|
|||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">rows</span> <span class="op">=</span> <span class="ident">header</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">details</span>, <span class="ident">id</span>, <span class="ident">Tab</span>::<span class="ident">IntersectionInfo</span>(<span class="ident">id</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">rows</span> <span class="op">=</span> <span class="ident">header</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">details</span>, <span class="ident">id</span>, <span class="ident">Tab</span>::<span class="ident">IntersectionInfo</span>(<span class="ident">id</span>));
|
||||||
<span class="kw">let</span> <span class="ident">i</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">id</span>);
|
<span class="kw">let</span> <span class="ident">i</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">id</span>);
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Connecting"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Connecting"</span>);
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">road_names</span> <span class="op">=</span> <span class="ident">BTreeSet</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">road_names</span> <span class="op">=</span> <span class="ident">BTreeSet</span>::<span class="ident">new</span>();
|
||||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">i</span>.<span class="ident">roads</span> {
|
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">i</span>.<span class="ident">roads</span> {
|
||||||
<span class="ident">road_names</span>.<span class="ident">insert</span>(
|
<span class="ident">road_names</span>.<span class="ident">insert</span>(
|
||||||
@ -473,7 +473,7 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">road_names</span> {
|
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">road_names</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">" {}"</span>, <span class="ident">r</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">" {}"</span>, <span class="ident">r</span>));
|
||||||
}
|
}
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
|
||||||
@ -506,7 +506,7 @@
|
|||||||
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
|
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Since midnight: {} commuters and vehicles crossed"</span>,
|
<span class="string">"Since midnight: {} commuters and vehicles crossed"</span>,
|
||||||
<span class="ident">prettyprint_usize</span>(
|
<span class="ident">prettyprint_usize</span>(
|
||||||
<span class="ident">app</span>.<span class="ident">primary</span>
|
<span class="ident">app</span>.<span class="ident">primary</span>
|
||||||
@ -515,7 +515,7 @@
|
|||||||
.<span class="ident">intersection_thruput</span>
|
.<span class="ident">intersection_thruput</span>
|
||||||
.<span class="ident">total_for</span>(<span class="ident">id</span>)
|
.<span class="ident">total_for</span>(<span class="ident">id</span>)
|
||||||
)
|
)
|
||||||
)));
|
));
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">opts</span>.<span class="ident">to_controls</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">opts</span>.<span class="ident">to_controls</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
||||||
@ -622,7 +622,7 @@
|
|||||||
<span class="ident">outlines</span>.<span class="ident">push</span>(<span class="ident">p</span>);
|
<span class="ident">outlines</span>.<span class="ident">push</span>(<span class="ident">p</span>);
|
||||||
}
|
}
|
||||||
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#A3A3A3"</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>());
|
<span class="ident">batch</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#A3A3A3"</span>), <span class="ident">arrow</span>.<span class="ident">clone</span>());
|
||||||
<span class="ident">tooltips</span>.<span class="ident">push</span>((<span class="ident">arrow</span>, <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">demand</span>)))));
|
<span class="ident">tooltips</span>.<span class="ident">push</span>((<span class="ident">arrow</span>, <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">demand</span>))));
|
||||||
}
|
}
|
||||||
<span class="ident">batch</span>.<span class="ident">extend</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">outlines</span>);
|
<span class="ident">batch</span>.<span class="ident">extend</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">outlines</span>);
|
||||||
|
|
||||||
@ -721,14 +721,14 @@
|
|||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} stages"</span>, <span class="ident">signal</span>.<span class="ident">stages</span>.<span class="ident">len</span>())).<span class="ident">small_heading</span>());
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} stages"</span>, <span class="ident">signal</span>.<span class="ident">stages</span>.<span class="ident">len</span>())).<span class="ident">small_heading</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Signal offset: {}"</span>, <span class="ident">signal</span>.<span class="ident">offset</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Signal offset: {}"</span>, <span class="ident">signal</span>.<span class="ident">offset</span>));
|
||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">total</span> <span class="op">=</span> <span class="ident">Duration</span>::<span class="ident">ZERO</span>;
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">total</span> <span class="op">=</span> <span class="ident">Duration</span>::<span class="ident">ZERO</span>;
|
||||||
<span class="kw">for</span> <span class="ident">s</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">signal</span>.<span class="ident">stages</span> {
|
<span class="kw">for</span> <span class="ident">s</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">signal</span>.<span class="ident">stages</span> {
|
||||||
<span class="ident">total</span> <span class="op">+</span><span class="op">=</span> <span class="ident">s</span>.<span class="ident">stage_type</span>.<span class="ident">simple_duration</span>();
|
<span class="ident">total</span> <span class="op">+</span><span class="op">=</span> <span class="ident">s</span>.<span class="ident">stage_type</span>.<span class="ident">simple_duration</span>();
|
||||||
}
|
}
|
||||||
<span class="comment">// TODO Say "normally" or something?</span>
|
<span class="comment">// TODO Say "normally" or something?</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"One cycle lasts {}"</span>, <span class="ident">total</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"One cycle lasts {}"</span>, <span class="ident">total</span>));
|
||||||
}
|
}
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
}
|
}
|
||||||
|
@ -457,8 +457,8 @@
|
|||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"open {}"</span>, <span class="ident">r</span>.<span class="ident">orig_id</span>.<span class="ident">osm_way_id</span>)),
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"open {}"</span>, <span class="ident">r</span>.<span class="ident">orig_id</span>.<span class="ident">osm_way_id</span>)),
|
||||||
);
|
);
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">""</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Raw OpenStreetMap data"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Raw OpenStreetMap data"</span>);
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
|
||||||
<span class="ident">rows</span>.<span class="ident">extend</span>(<span class="ident">make_table</span>(
|
<span class="ident">rows</span>.<span class="ident">extend</span>(<span class="ident">make_table</span>(
|
||||||
@ -486,11 +486,11 @@
|
|||||||
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">l</span>.<span class="ident">parent</span>);
|
<span class="kw">let</span> <span class="ident">r</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">l</span>.<span class="ident">parent</span>);
|
||||||
|
|
||||||
<span class="comment">// Since this applies to the entire road, ignore lane type.</span>
|
<span class="comment">// Since this applies to the entire road, ignore lane type.</span>
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Traffic over entire road, not just this lane"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Traffic over entire road, not just this lane"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Since midnight: {} commuters and vehicles crossed"</span>,
|
<span class="string">"Since midnight: {} commuters and vehicles crossed"</span>,
|
||||||
<span class="ident">prettyprint_usize</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_analytics</span>().<span class="ident">road_thruput</span>.<span class="ident">total_for</span>(<span class="ident">r</span>.<span class="ident">id</span>))
|
<span class="ident">prettyprint_usize</span>(<span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_analytics</span>().<span class="ident">road_thruput</span>.<span class="ident">total_for</span>(<span class="ident">r</span>.<span class="ident">id</span>))
|
||||||
)));
|
));
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>));
|
||||||
|
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">opts</span>.<span class="ident">to_controls</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
<span class="ident">rows</span>.<span class="ident">push</span>(<span class="ident">opts</span>.<span class="ident">to_controls</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
||||||
|
@ -704,11 +704,6 @@
|
|||||||
<span id="701">701</span>
|
<span id="701">701</span>
|
||||||
<span id="702">702</span>
|
<span id="702">702</span>
|
||||||
<span id="703">703</span>
|
<span id="703">703</span>
|
||||||
<span id="704">704</span>
|
|
||||||
<span id="705">705</span>
|
|
||||||
<span id="706">706</span>
|
|
||||||
<span id="707">707</span>
|
|
||||||
<span id="708">708</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">BTreeMap</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">BTreeMap</span>;
|
||||||
|
|
||||||
@ -1121,12 +1116,7 @@
|
|||||||
<span class="ident">TripEndpoint</span>::<span class="ident">SuddenlyAppear</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="string">"suddenly appear"</span>.<span class="ident">to_string</span>(),
|
<span class="ident">TripEndpoint</span>::<span class="ident">SuddenlyAppear</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="string">"suddenly appear"</span>.<span class="ident">to_string</span>(),
|
||||||
};
|
};
|
||||||
<span class="ident">rows</span>.<span class="ident">push</span>(
|
<span class="ident">rows</span>.<span class="ident">push</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">" Spends {} at {}"</span>, <span class="ident">trip</span>.<span class="ident">departure</span> <span class="op">-</span> <span class="ident">last_t</span>, <span class="ident">at</span>)).<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
<span class="string">" Spends {} at {}"</span>,
|
|
||||||
<span class="ident">trip</span>.<span class="ident">departure</span> <span class="op">-</span> <span class="ident">last_t</span>,
|
|
||||||
<span class="ident">at</span>
|
|
||||||
)))
|
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
|
||||||
);
|
);
|
||||||
<span class="comment">// TODO Ideally end time if we know</span>
|
<span class="comment">// TODO Ideally end time if we know</span>
|
||||||
<span class="ident">last_t</span> <span class="op">=</span> <span class="ident">trip</span>.<span class="ident">departure</span>;
|
<span class="ident">last_t</span> <span class="op">=</span> <span class="ident">trip</span>.<span class="ident">departure</span>;
|
||||||
|
@ -1526,7 +1526,7 @@
|
|||||||
norm_color,
|
norm_color,
|
||||||
build_text(app, &msgs, norm_distance),
|
build_text(app, &msgs, norm_distance),
|
||||||
));
|
));
|
||||||
let mut display_txt = Text::from(Line(&p.phase_type.describe(map)));
|
let mut display_txt = Text::from(&p.phase_type.describe(map));
|
||||||
display_txt.add(Line(format!(
|
display_txt.add(Line(format!(
|
||||||
" Road: {}",
|
" Road: {}",
|
||||||
map.get_r(lane_detail.parent)
|
map.get_r(lane_detail.parent)
|
||||||
@ -1554,7 +1554,7 @@
|
|||||||
build_text(app, &msgs, norm_distance),
|
build_text(app, &msgs, norm_distance),
|
||||||
));
|
));
|
||||||
|
|
||||||
let mut display_txt = Text::from(Line(&p.phase_type.describe(map)));
|
let mut display_txt = Text::from(&p.phase_type.describe(map));
|
||||||
display_txt.add(Line(format!(" Intersection: {}", id.parent)));
|
display_txt.add(Line(format!(" Intersection: {}", id.parent)));
|
||||||
display_txt.add(Line(format!(
|
display_txt.add(Line(format!(
|
||||||
" Delay: {}",
|
" Delay: {}",
|
||||||
@ -1636,7 +1636,7 @@
|
|||||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||||
.<span class="ident">btn_plain</span>
|
.<span class="ident">btn_plain</span>
|
||||||
.<span class="ident">icon</span>(<span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
.<span class="ident">icon</span>(<span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">name</span>)))
|
.<span class="ident">tooltip</span>(<span class="ident">name</span>)
|
||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to start of {}"</span>, <span class="ident">trip_id</span>))
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to start of {}"</span>, <span class="ident">trip_id</span>))
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1669,7 +1669,7 @@
|
|||||||
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
<span class="ident">ctx</span>.<span class="ident">style</span>()
|
||||||
.<span class="ident">btn_plain</span>
|
.<span class="ident">btn_plain</span>
|
||||||
.<span class="ident">icon</span>(<span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
.<span class="ident">icon</span>(<span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">name</span>)))
|
.<span class="ident">tooltip</span>(<span class="ident">name</span>)
|
||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to goal of {}"</span>, <span class="ident">trip_id</span>))
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to goal of {}"</span>, <span class="ident">trip_id</span>))
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1744,10 +1744,10 @@
|
|||||||
.<span class="ident">btn_plain</span>
|
.<span class="ident">btn_plain</span>
|
||||||
.<span class="ident">icon</span>(<span class="string">"system/assets/speed/jump_to_time.svg"</span>)
|
.<span class="ident">icon</span>(<span class="string">"system/assets/speed/jump_to_time.svg"</span>)
|
||||||
.<span class="ident">tooltip</span>({
|
.<span class="ident">tooltip</span>({
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"This will jump to "</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"This will jump to "</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">trip</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#F9EC51"</span>)));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">trip</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#F9EC51"</span>)));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"The simulation will continue, and your score"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"The simulation will continue, and your score"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"will be calculated at this new time."</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"will be calculated at this new time."</span>);
|
||||||
<span class="ident">txt</span>
|
<span class="ident">txt</span>
|
||||||
})
|
})
|
||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to {}"</span>, <span class="ident">trip</span>.<span class="ident">departure</span>))
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to {}"</span>, <span class="ident">trip</span>.<span class="ident">departure</span>))
|
||||||
@ -1763,10 +1763,10 @@
|
|||||||
.<span class="ident">btn_plain</span>
|
.<span class="ident">btn_plain</span>
|
||||||
.<span class="ident">icon</span>(<span class="string">"system/assets/speed/jump_to_time.svg"</span>)
|
.<span class="ident">icon</span>(<span class="string">"system/assets/speed/jump_to_time.svg"</span>)
|
||||||
.<span class="ident">tooltip</span>({
|
.<span class="ident">tooltip</span>({
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"This will jump to "</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"This will jump to "</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">t</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#F9EC51"</span>)));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">t</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#F9EC51"</span>)));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"The simulation will continue, and your score"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"The simulation will continue, and your score"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"will be calculated at this new time."</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"will be calculated at this new time."</span>);
|
||||||
<span class="ident">txt</span>
|
<span class="ident">txt</span>
|
||||||
})
|
})
|
||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to {}"</span>, <span class="ident">t</span>))
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="macro">format</span><span class="macro">!</span>(<span class="string">"jump to {}"</span>, <span class="ident">t</span>))
|
||||||
|
@ -487,7 +487,7 @@
|
|||||||
.<span class="ident">road_thruput</span>
|
.<span class="ident">road_thruput</span>
|
||||||
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">r</span>, <span class="macro">btreeset</span><span class="macro">!</span> { <span class="ident">AgentType</span>::<span class="ident">Bike</span> });
|
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">r</span>, <span class="macro">btreeset</span><span class="macro">!</span> { <span class="ident">AgentType</span>::<span class="ident">Bike</span> });
|
||||||
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
||||||
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>))));
|
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -765,7 +765,7 @@
|
|||||||
.<span class="ident">road_thruput</span>
|
.<span class="ident">road_thruput</span>
|
||||||
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">r</span>, <span class="self">self</span>.<span class="ident">agent_types</span>.<span class="ident">clone</span>());
|
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">r</span>, <span class="self">self</span>.<span class="ident">agent_types</span>.<span class="ident">clone</span>());
|
||||||
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
||||||
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>))));
|
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="prelude-val">Some</span>(<span class="ident">ID</span>::<span class="ident">Intersection</span>(<span class="ident">i</span>)) <span class="op">=</span><span class="op">></span> {
|
<span class="prelude-val">Some</span>(<span class="ident">ID</span>::<span class="ident">Intersection</span>(<span class="ident">i</span>)) <span class="op">=</span><span class="op">></span> {
|
||||||
@ -776,7 +776,7 @@
|
|||||||
.<span class="ident">intersection_thruput</span>
|
.<span class="ident">intersection_thruput</span>
|
||||||
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">i</span>, <span class="self">self</span>.<span class="ident">agent_types</span>.<span class="ident">clone</span>());
|
.<span class="ident">total_for_with_agent_types</span>(<span class="ident">i</span>, <span class="self">self</span>.<span class="ident">agent_types</span>.<span class="ident">clone</span>());
|
||||||
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
<span class="kw">if</span> <span class="ident">cnt</span> <span class="op">></span> <span class="number">0</span> {
|
||||||
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>))));
|
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">prettyprint_usize</span>(<span class="ident">cnt</span>)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||||
|
@ -505,7 +505,7 @@
|
|||||||
<span class="kw">let</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[
|
||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"A/B STREET"</span>).<span class="ident">display_title</span>());
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"A/B STREET"</span>).<span class="ident">display_title</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Created by Dustin Carlino, Yuwen Li, & Michael Kirk"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Created by Dustin Carlino, Yuwen Li, & Michael Kirk"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>).<span class="ident">centered_horiz</span>()
|
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>).<span class="ident">centered_horiz</span>()
|
||||||
},
|
},
|
||||||
<span class="ident">Widget</span>::<span class="ident">row</span>({
|
<span class="ident">Widget</span>::<span class="ident">row</span>({
|
||||||
|
@ -207,8 +207,6 @@
|
|||||||
<span id="204">204</span>
|
<span id="204">204</span>
|
||||||
<span id="205">205</span>
|
<span id="205">205</span>
|
||||||
<span id="206">206</span>
|
<span id="206">206</span>
|
||||||
<span id="207">207</span>
|
|
||||||
<span id="208">208</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
|
||||||
|
|
||||||
@ -243,7 +241,7 @@
|
|||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">edits</span>.<span class="ident">proposal_description</span>[<span class="number">0</span>]).<span class="ident">small_heading</span>());
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="kw-2">&</span><span class="ident">edits</span>.<span class="ident">proposal_description</span>[<span class="number">0</span>]).<span class="ident">small_heading</span>());
|
||||||
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">edits</span>.<span class="ident">proposal_description</span>.<span class="ident">iter</span>().<span class="ident">skip</span>(<span class="number">1</span>) {
|
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">edits</span>.<span class="ident">proposal_description</span>.<span class="ident">iter</span>().<span class="ident">skip</span>(<span class="number">1</span>) {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">l</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">l</span>);
|
||||||
}
|
}
|
||||||
<span class="ident">current_tab</span>.<span class="ident">push</span>(
|
<span class="ident">current_tab</span>.<span class="ident">push</span>(
|
||||||
<span class="ident">txt</span>.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">70</span>)
|
<span class="ident">txt</span>.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">70</span>)
|
||||||
@ -295,11 +293,9 @@
|
|||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"A/B STREET"</span>).<span class="ident">display_title</span>());
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"A/B STREET"</span>).<span class="ident">display_title</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"PROPOSALS"</span>).<span class="ident">big_heading_styled</span>());
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"PROPOSALS"</span>).<span class="ident">big_heading_styled</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"These are proposed changes to Seattle made by community members."</span>);
|
||||||
<span class="string">"These are proposed changes to Seattle made by community members."</span>,
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Contact dabreegster@gmail.com to add your idea here!"</span>);
|
||||||
));
|
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Contact dabreegster@gmail.com to add your idea here!"</span>));
|
|
||||||
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>).<span class="ident">centered_horiz</span>().<span class="ident">margin_below</span>(<span class="number">20</span>)
|
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>).<span class="ident">centered_horiz</span>().<span class="ident">margin_below</span>(<span class="number">20</span>)
|
||||||
},
|
},
|
||||||
<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="ident">buttons</span>).<span class="ident">flex_wrap</span>(<span class="ident">ctx</span>, <span class="ident">Percent</span>::<span class="ident">int</span>(<span class="number">80</span>)),
|
<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="ident">buttons</span>).<span class="ident">flex_wrap</span>(<span class="ident">ctx</span>, <span class="ident">Percent</span>::<span class="ident">int</span>(<span class="number">80</span>)),
|
||||||
|
@ -1016,14 +1016,14 @@
|
|||||||
<span class="kw">fn</span> <span class="ident">redraw_panel</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">state</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">PanelState</span><span class="op">></span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
<span class="kw">fn</span> <span class="ident">redraw_panel</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">state</span>: <span class="prelude-ty">Option</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">PanelState</span><span class="op">></span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">state</span>) <span class="op">=</span> <span class="ident">state</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">state</span>) <span class="op">=</span> <span class="ident">state</span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"Total: {} trips"</span>,
|
<span class="string">"Total: {} trips"</span>,
|
||||||
<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">state</span>.<span class="ident">total_trips</span>)
|
<span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>(<span class="ident">state</span>.<span class="ident">total_trips</span>)
|
||||||
)));
|
));
|
||||||
|
|
||||||
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">state</span>.<span class="ident">building_counts</span> {
|
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">cnt</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">state</span>.<span class="ident">building_counts</span> {
|
||||||
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">cnt</span> <span class="op">!</span><span class="op">=</span> <span class="number">0</span> {
|
<span class="kw">if</span> <span class="kw-2">*</span><span class="ident">cnt</span> <span class="op">!</span><span class="op">=</span> <span class="number">0</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}: {}"</span>, <span class="ident">name</span>, <span class="ident">cnt</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}: {}"</span>, <span class="ident">name</span>, <span class="ident">cnt</span>));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,8 +246,6 @@
|
|||||||
<span id="243">243</span>
|
<span id="243">243</span>
|
||||||
<span id="244">244</span>
|
<span id="244">244</span>
|
||||||
<span id="245">245</span>
|
<span id="245">245</span>
|
||||||
<span id="246">246</span>
|
|
||||||
<span id="247">247</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Duration</span>;
|
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Duration</span>;
|
||||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">TripEndpoint</span>, <span class="ident">TripID</span>, <span class="ident">TripPhaseType</span>};
|
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">TripEndpoint</span>, <span class="ident">TripID</span>, <span class="ident">TripPhaseType</span>};
|
||||||
@ -462,29 +460,27 @@
|
|||||||
<span class="ident">table</span>.<span class="ident">static_col</span>(<span class="string">"Trip ID"</span>, <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">trip</span>.<span class="number">0</span>.<span class="ident">to_string</span>()));
|
<span class="ident">table</span>.<span class="ident">static_col</span>(<span class="string">"Trip ID"</span>, <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">trip</span>.<span class="number">0</span>.<span class="ident">to_string</span>()));
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Total duration"</span>,
|
<span class="string">"Total duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">total_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">total_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
|
||||||
}),
|
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">total_duration</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">total_duration</span>))),
|
||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Driving duration"</span>,
|
<span class="string">"Driving duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">driving_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">driving_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">driving_duration</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">driving_duration</span>))),
|
||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Parking duration"</span>,
|
<span class="string">"Parking duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">parking_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">parking_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">parking_duration</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">parking_duration</span>))),
|
||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Walking duration"</span>,
|
<span class="string">"Walking duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">walking_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">walking_duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">walking_duration</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">walking_duration</span>))),
|
||||||
);
|
);
|
||||||
|
@ -699,8 +699,6 @@
|
|||||||
<span id="696">696</span>
|
<span id="696">696</span>
|
||||||
<span id="697">697</span>
|
<span id="697">697</span>
|
||||||
<span id="698">698</span>
|
<span id="698">698</span>
|
||||||
<span id="699">699</span>
|
|
||||||
<span id="700">700</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>};
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>};
|
||||||
|
|
||||||
@ -756,7 +754,7 @@
|
|||||||
<span class="ident">prettyprint_usize</span>(<span class="ident">finished</span>),
|
<span class="ident">prettyprint_usize</span>(<span class="ident">finished</span>),
|
||||||
<span class="ident">percent</span>(<span class="ident">finished</span>),
|
<span class="ident">percent</span>(<span class="ident">finished</span>),
|
||||||
))
|
))
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Finished Trips"</span>)));
|
.<span class="ident">tooltip</span>(<span class="string">"Finished Trips"</span>);
|
||||||
|
|
||||||
<span class="kw">let</span> <span class="ident">finished_trips_table</span> <span class="op">=</span> <span class="ident">make_table_finished_trips</span>(<span class="ident">app</span>);
|
<span class="kw">let</span> <span class="ident">finished_trips_table</span> <span class="op">=</span> <span class="ident">make_table_finished_trips</span>(<span class="ident">app</span>);
|
||||||
<span class="kw">let</span> <span class="ident">finished_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="ident">finished_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
@ -772,7 +770,7 @@
|
|||||||
.<span class="ident">style</span>()
|
.<span class="ident">style</span>()
|
||||||
.<span class="ident">btn_tab</span>
|
.<span class="ident">btn_tab</span>
|
||||||
.<span class="ident">text</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Cancelled Trips: {}"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">cancelled</span>)))
|
.<span class="ident">text</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Cancelled Trips: {}"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">cancelled</span>)))
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Cancelled Trips"</span>)));
|
.<span class="ident">tooltip</span>(<span class="string">"Cancelled Trips"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">cancelled_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="ident">cancelled_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">cancelled_trips_table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
<span class="ident">cancelled_trips_table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||||
<span class="ident">Filler</span>::<span class="ident">square_width</span>(<span class="ident">ctx</span>, <span class="number">0.15</span>)
|
<span class="ident">Filler</span>::<span class="ident">square_width</span>(<span class="ident">ctx</span>, <span class="number">0.15</span>)
|
||||||
@ -790,7 +788,7 @@
|
|||||||
<span class="ident">prettyprint_usize</span>(<span class="ident">unfinished</span>),
|
<span class="ident">prettyprint_usize</span>(<span class="ident">unfinished</span>),
|
||||||
<span class="ident">percent</span>(<span class="ident">unfinished</span>)
|
<span class="ident">percent</span>(<span class="ident">unfinished</span>)
|
||||||
))
|
))
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Unfinished Trips"</span>)));
|
.<span class="ident">tooltip</span>(<span class="string">"Unfinished Trips"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">unfinished_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="ident">unfinished_trips_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">unfinished_trips_table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
<span class="ident">unfinished_trips_table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
|
||||||
<span class="ident">Filler</span>::<span class="ident">square_width</span>(<span class="ident">ctx</span>, <span class="number">0.15</span>)
|
<span class="ident">Filler</span>::<span class="ident">square_width</span>(<span class="ident">ctx</span>, <span class="number">0.15</span>)
|
||||||
@ -1152,14 +1150,12 @@
|
|||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Departure"</span>,
|
<span class="string">"Departure"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>())).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Duration"</span>,
|
<span class="string">"Duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">duration_after</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_after</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
|
||||||
}),
|
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_after</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_after</span>))),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1204,12 +1200,12 @@
|
|||||||
|
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Time spent waiting"</span>,
|
<span class="string">"Time spent waiting"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">waiting</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">waiting</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">waiting</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">waiting</span>))),
|
||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Percent waiting"</span>,
|
<span class="string">"Percent waiting"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">percent_waiting</span>.<span class="ident">to_string</span>())).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">percent_waiting</span>.<span class="ident">to_string</span>()).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">percent_waiting</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">percent_waiting</span>))),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1286,14 +1282,14 @@
|
|||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Departure"</span>,
|
<span class="string">"Departure"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>())).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
||||||
);
|
);
|
||||||
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">has_prebaked</span>().<span class="ident">is_some</span>() {
|
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">has_prebaked</span>().<span class="ident">is_some</span>() {
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Estimated duration"</span>,
|
<span class="string">"Estimated duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_before</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">duration_before</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_before</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_before</span>))),
|
||||||
);
|
);
|
||||||
@ -1387,14 +1383,14 @@
|
|||||||
);
|
);
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Departure"</span>,
|
<span class="string">"Departure"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>())).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>()).<span class="ident">render</span>(<span class="ident">ctx</span>)),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
||||||
);
|
);
|
||||||
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">has_prebaked</span>().<span class="ident">is_some</span>() {
|
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">has_prebaked</span>().<span class="ident">is_some</span>() {
|
||||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||||
<span class="string">"Estimated duration"</span>,
|
<span class="string">"Estimated duration"</span>,
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_before</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">x</span>.<span class="ident">duration_before</span>.<span class="ident">to_string</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)).<span class="ident">render</span>(<span class="ident">ctx</span>)
|
||||||
}),
|
}),
|
||||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_before</span>))),
|
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_before</span>))),
|
||||||
);
|
);
|
||||||
|
@ -417,11 +417,11 @@
|
|||||||
<span class="ident">Line</span>(<span class="string">"Created by Dustin Carlino, Yuwen Li, & Michael Kirk"</span>)
|
<span class="ident">Line</span>(<span class="string">"Created by Dustin Carlino, Yuwen Li, & Michael Kirk"</span>)
|
||||||
.<span class="ident">small</span>()
|
.<span class="ident">small</span>()
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(
|
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||||
<span class="string">"A/B Street is a traffic simulation game based on OpenStreetMap. You \
|
<span class="string">"A/B Street is a traffic simulation game based on OpenStreetMap. You \
|
||||||
can modify roads and intersections, measure the effects on different \
|
can modify roads and intersections, measure the effects on different \
|
||||||
groups, and advocate for your proposal."</span>,
|
groups, and advocate for your proposal."</span>,
|
||||||
))
|
)
|
||||||
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">50</span>)
|
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">50</span>)
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
<span class="string">"This is a simplified version. Check out the full version below."</span>
|
<span class="string">"This is a simplified version. Check out the full version below."</span>
|
||||||
|
@ -482,11 +482,11 @@
|
|||||||
}
|
}
|
||||||
<span class="string">"hint"</span> <span class="op">=</span><span class="op">></span> {
|
<span class="string">"hint"</span> <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="comment">// TODO Multiple hints. Point to follow button.</span>
|
<span class="comment">// TODO Multiple hints. Point to follow button.</span>
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Hints"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Hints"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Use the locator at the top right to find the VIP."</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Use the locator at the top right to find the VIP."</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"You can wait for one of their trips to begin or end."</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"You can wait for one of their trips to begin or end."</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Focus on trips spent mostly waiting"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"Focus on trips spent mostly waiting"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">contents</span> <span class="op">=</span> <span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>);
|
<span class="kw">let</span> <span class="ident">contents</span> <span class="op">=</span> <span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>);
|
||||||
<span class="kw">return</span> <span class="prelude-val">Some</span>(<span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">FYI</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">contents</span>, <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)));
|
<span class="kw">return</span> <span class="prelude-val">Some</span>(<span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">FYI</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">contents</span>, <span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">panel_bg</span>)));
|
||||||
}
|
}
|
||||||
@ -512,7 +512,7 @@
|
|||||||
|
|
||||||
<span class="kw">fn</span> <span class="ident">recreate_panels</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
<span class="kw">fn</span> <span class="ident">recreate_panels</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||||
<span class="kw">let</span> (<span class="ident">before</span>, <span class="ident">after</span>, <span class="ident">done</span>) <span class="op">=</span> <span class="ident">get_score</span>(<span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">trips</span>);
|
<span class="kw">let</span> (<span class="ident">before</span>, <span class="ident">after</span>, <span class="ident">done</span>) <span class="op">=</span> <span class="ident">get_score</span>(<span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">trips</span>);
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Total time: {} ("</span>, <span class="ident">after</span>)));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Total time: {} ("</span>, <span class="ident">after</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">append_all</span>(<span class="ident">cmp_duration_shorter</span>(<span class="ident">app</span>, <span class="ident">after</span>, <span class="ident">before</span>));
|
<span class="ident">txt</span>.<span class="ident">append_all</span>(<span class="ident">cmp_duration_shorter</span>(<span class="ident">app</span>, <span class="ident">after</span>, <span class="ident">before</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">")"</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">")"</span>));
|
||||||
|
|
||||||
|
@ -563,8 +563,8 @@
|
|||||||
}
|
}
|
||||||
<span class="string">"hint"</span> <span class="op">=</span><span class="op">></span> {
|
<span class="string">"hint"</span> <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="comment">// TODO Multiple hints. Point to layers.</span>
|
<span class="comment">// TODO Multiple hints. Point to layers.</span>
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Hint"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Hint"</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">add_appended</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="ident">txt</span>.<span class="ident">add_appended</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">Line</span>(<span class="string">"Press "</span>),
|
<span class="ident">Line</span>(<span class="string">"Press "</span>),
|
||||||
<span class="ident">Key</span>::<span class="ident">L</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
<span class="ident">Key</span>::<span class="ident">L</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
||||||
|
@ -741,11 +741,11 @@
|
|||||||
<span class="ident">Line</span>(<span class="string">"Modify traffic patterns"</span>)
|
<span class="ident">Line</span>(<span class="string">"Modify traffic patterns"</span>)
|
||||||
.<span class="ident">small_heading</span>()
|
.<span class="ident">small_heading</span>()
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(
|
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||||
<span class="string">"This scenario determines the exact trips everybody takes, when they leave, where \
|
<span class="string">"This scenario determines the exact trips everybody takes, when they leave, where \
|
||||||
they go, and how they choose to get there. You can modify those patterns here. \
|
they go, and how they choose to get there. You can modify those patterns here. \
|
||||||
The modifications apply in order."</span>,
|
The modifications apply in order."</span>,
|
||||||
))
|
)
|
||||||
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">50</span>)
|
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">50</span>)
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
];
|
];
|
||||||
|
@ -1882,7 +1882,7 @@
|
|||||||
<span class="ident">Task</span>::<span class="ident">Nil</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
<span class="ident">Task</span>::<span class="ident">Nil</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
||||||
<span class="ident">Task</span>::<span class="ident">Camera</span> <span class="op">=</span><span class="op">></span> <span class="string">"Put out the fire at the fire station"</span>,
|
<span class="ident">Task</span>::<span class="ident">Camera</span> <span class="op">=</span><span class="op">></span> <span class="string">"Put out the fire at the fire station"</span>,
|
||||||
<span class="ident">Task</span>::<span class="ident">InspectObjects</span> <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Task</span>::<span class="ident">InspectObjects</span> <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Find one of each:"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Find one of each:"</span>);
|
||||||
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">done</span>) <span class="kw">in</span> <span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">done</span>) <span class="kw">in</span> <span class="macro">vec</span><span class="macro">!</span>[
|
||||||
(<span class="string">"bike lane"</span>, <span class="ident">state</span>.<span class="ident">inspected_bike_lane</span>),
|
(<span class="string">"bike lane"</span>, <span class="ident">state</span>.<span class="ident">inspected_bike_lane</span>),
|
||||||
(<span class="string">"building"</span>, <span class="ident">state</span>.<span class="ident">inspected_building</span>),
|
(<span class="string">"building"</span>, <span class="ident">state</span>.<span class="ident">inspected_building</span>),
|
||||||
@ -1892,14 +1892,14 @@
|
|||||||
<span class="kw">if</span> <span class="ident">done</span> {
|
<span class="kw">if</span> <span class="ident">done</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"[X] {}"</span>, <span class="ident">name</span>)).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"[X] {}"</span>, <span class="ident">name</span>)).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"[ ] {}"</span>, <span class="ident">name</span>)));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"[ ] {}"</span>, <span class="ident">name</span>));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<span class="kw">return</span> <span class="ident">txt</span>;
|
<span class="kw">return</span> <span class="ident">txt</span>;
|
||||||
}
|
}
|
||||||
<span class="ident">Task</span>::<span class="ident">TimeControls</span> <span class="op">=</span><span class="op">></span> <span class="string">"Wait until after 5pm"</span>,
|
<span class="ident">Task</span>::<span class="ident">TimeControls</span> <span class="op">=</span><span class="op">></span> <span class="string">"Wait until after 5pm"</span>,
|
||||||
<span class="ident">Task</span>::<span class="ident">PauseResume</span> <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Task</span>::<span class="ident">PauseResume</span> <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"[ ] Pause/resume "</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"[ ] Pause/resume "</span>);
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} times"</span>, <span class="number">3</span> <span class="op">-</span> <span class="ident">state</span>.<span class="ident">num_pauses</span>)).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} times"</span>, <span class="number">3</span> <span class="op">-</span> <span class="ident">state</span>.<span class="ident">num_pauses</span>)).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
<span class="kw">return</span> <span class="ident">txt</span>;
|
<span class="kw">return</span> <span class="ident">txt</span>;
|
||||||
}
|
}
|
||||||
@ -1909,17 +1909,17 @@
|
|||||||
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">following_car</span> {
|
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">following_car</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] follow the target car"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] follow the target car"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[ ] follow the target car"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"[ ] follow the target car"</span>);
|
||||||
}
|
}
|
||||||
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">car_parked</span> {
|
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">car_parked</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] wait for them to park"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] wait for them to park"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[ ] wait for them to park"</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"[ ] wait for them to park"</span>);
|
||||||
}
|
}
|
||||||
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">prank_done</span> {
|
<span class="kw">if</span> <span class="ident">state</span>.<span class="ident">prank_done</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] click car and press c to draw WASH ME"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[X] click car and press c to draw WASH ME"</span>).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
} <span class="kw">else</span> {
|
} <span class="kw">else</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"[ ] click car and press "</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"[ ] click car and press "</span>);
|
||||||
<span class="comment">// TODO ctx.style().hotkey_color</span>
|
<span class="comment">// TODO ctx.style().hotkey_color</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">Key</span>::<span class="ident">C</span>.<span class="ident">describe</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">Key</span>::<span class="ident">C</span>.<span class="ident">describe</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">" to draw WASH ME"</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">" to draw WASH ME"</span>));
|
||||||
@ -1930,7 +1930,7 @@
|
|||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(
|
||||||
<span class="string">"1) Find a road with almost no parking spots available"</span>,
|
<span class="string">"1) Find a road with almost no parking spots available"</span>,
|
||||||
));
|
));
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"2) Click it and press "</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">"2) Click it and press "</span>);
|
||||||
<span class="comment">// TODO ctx.style().hotkey_color</span>
|
<span class="comment">// TODO ctx.style().hotkey_color</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">Key</span>::<span class="ident">C</span>.<span class="ident">describe</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="ident">Key</span>::<span class="ident">C</span>.<span class="ident">describe</span>()).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">GREEN</span>));
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">" to check the occupancy"</span>));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">" to check the occupancy"</span>));
|
||||||
@ -1938,14 +1938,14 @@
|
|||||||
}
|
}
|
||||||
<span class="ident">Task</span>::<span class="ident">WatchBikes</span> <span class="op">=</span><span class="op">></span> <span class="string">"Watch for 3 minutes"</span>,
|
<span class="ident">Task</span>::<span class="ident">WatchBikes</span> <span class="op">=</span><span class="op">></span> <span class="string">"Watch for 3 minutes"</span>,
|
||||||
<span class="ident">Task</span>::<span class="ident">FixBikes</span> <span class="op">=</span><span class="op">></span> {
|
<span class="ident">Task</span>::<span class="ident">FixBikes</span> <span class="op">=</span><span class="op">></span> {
|
||||||
<span class="kw">return</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="kw">return</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"[ ] Complete all trips {} faster"</span>,
|
<span class="string">"[ ] Complete all trips {} faster"</span>,
|
||||||
<span class="ident">CAR_BIKE_CONTENTION_GOAL</span>
|
<span class="ident">CAR_BIKE_CONTENTION_GOAL</span>
|
||||||
)));
|
));
|
||||||
}
|
}
|
||||||
<span class="ident">Task</span>::<span class="ident">Done</span> <span class="op">=</span><span class="op">></span> <span class="string">"Tutorial complete!"</span>,
|
<span class="ident">Task</span>::<span class="ident">Done</span> <span class="op">=</span><span class="op">></span> <span class="string">"Tutorial complete!"</span>,
|
||||||
};
|
};
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">simple</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">simple</span>)
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">fn</span> <span class="ident">label</span>(<span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span> {
|
<span class="kw">fn</span> <span class="ident">label</span>(<span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span> {
|
||||||
@ -2154,7 +2154,7 @@
|
|||||||
.<span class="ident">disabled</span>(<span class="self">self</span>.<span class="ident">current</span>.<span class="ident">stage</span> <span class="op">=</span><span class="op">=</span> <span class="number">0</span>)
|
.<span class="ident">disabled</span>(<span class="self">self</span>.<span class="ident">current</span>.<span class="ident">stage</span> <span class="op">=</span><span class="op">=</span> <span class="number">0</span>)
|
||||||
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">"previous tutorial"</span>),
|
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">"previous tutorial"</span>),
|
||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Task {}"</span>, <span class="self">self</span>.<span class="ident">current</span>.<span class="ident">stage</span> <span class="op">+</span> <span class="number">1</span>)));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Task {}"</span>, <span class="self">self</span>.<span class="ident">current</span>.<span class="ident">stage</span> <span class="op">+</span> <span class="number">1</span>));
|
||||||
<span class="comment">// TODO Smaller font and use alpha for the "/9" part</span>
|
<span class="comment">// TODO Smaller font and use alpha for the "/9" part</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"/{}"</span>, <span class="self">self</span>.<span class="ident">stages</span>.<span class="ident">len</span>())).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>)));
|
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"/{}"</span>, <span class="self">self</span>.<span class="ident">stages</span>.<span class="ident">len</span>())).<span class="ident">fg</span>(<span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.7</span>)));
|
||||||
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
@ -2233,10 +2233,10 @@
|
|||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[{
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">stage</span>().<span class="ident">task</span>.<span class="ident">label</span>()).<span class="ident">small_heading</span>());
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">stage</span>().<span class="ident">task</span>.<span class="ident">label</span>()).<span class="ident">small_heading</span>());
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">""</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="string">""</span>);
|
||||||
|
|
||||||
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">lines</span> {
|
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">lines</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">l</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">l</span>);
|
||||||
}
|
}
|
||||||
<span class="ident">txt</span>.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">30</span>).<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
<span class="ident">txt</span>.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">30</span>).<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
}];
|
}];
|
||||||
|
@ -819,12 +819,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">use</span> <span class="ident">widgetry</span>::<span class="ident">DrawWithTooltips</span>;
|
<span class="kw">use</span> <span class="ident">widgetry</span>::<span class="ident">DrawWithTooltips</span>;
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tooltip_text</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Finished Trips"</span>));
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tooltip_text</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Finished Trips"</span>);
|
||||||
<span class="ident">tooltip_text</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">tooltip_text</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"{} ({}% of total)"</span>,
|
<span class="string">"{} ({}% of total)"</span>,
|
||||||
<span class="ident">prettyprint_usize</span>(<span class="ident">finished</span>),
|
<span class="ident">prettyprint_usize</span>(<span class="ident">finished</span>),
|
||||||
(<span class="ident">ratio</span> <span class="op">*</span> <span class="number">100.0</span>) <span class="kw">as</span> <span class="ident">usize</span>
|
(<span class="ident">ratio</span> <span class="op">*</span> <span class="number">100.0</span>) <span class="kw">as</span> <span class="ident">usize</span>
|
||||||
)));
|
));
|
||||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">baseline_finished</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">baseline_finished_trips</span> {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">baseline_finished</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">baseline_finished_trips</span> {
|
||||||
<span class="comment">// TODO: up/down icons</span>
|
<span class="comment">// TODO: up/down icons</span>
|
||||||
<span class="kw">let</span> <span class="ident">line</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">baseline_finished</span> <span class="op">></span> <span class="ident">finished</span> {
|
<span class="kw">let</span> <span class="ident">line</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">baseline_finished</span> <span class="op">></span> <span class="ident">finished</span> {
|
||||||
|
@ -490,7 +490,7 @@
|
|||||||
.<span class="ident">btn_tab</span>
|
.<span class="ident">btn_tab</span>
|
||||||
.<span class="ident">text</span>(<span class="string">"Jump to time"</span>)
|
.<span class="ident">text</span>(<span class="string">"Jump to time"</span>)
|
||||||
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">T</span>)
|
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">T</span>)
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Jump to time"</span>)));
|
.<span class="ident">tooltip</span>(<span class="string">"Jump to time"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">jump_to_time_content</span> <span class="op">=</span> {
|
<span class="kw">let</span> <span class="ident">jump_to_time_content</span> <span class="op">=</span> {
|
||||||
<span class="comment">// TODO Auto-fill width?</span>
|
<span class="comment">// TODO Auto-fill width?</span>
|
||||||
<span class="kw">let</span> <span class="ident">slider_width</span> <span class="op">=</span> <span class="number">500.0</span>;
|
<span class="kw">let</span> <span class="ident">slider_width</span> <span class="op">=</span> <span class="number">500.0</span>;
|
||||||
@ -529,7 +529,7 @@
|
|||||||
.<span class="ident">btn_tab</span>
|
.<span class="ident">btn_tab</span>
|
||||||
.<span class="ident">text</span>(<span class="string">"Jump to delay"</span>)
|
.<span class="ident">text</span>(<span class="string">"Jump to delay"</span>)
|
||||||
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">D</span>)
|
.<span class="ident">hotkey</span>(<span class="ident">Key</span>::<span class="ident">D</span>)
|
||||||
.<span class="ident">tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Jump to delay"</span>)));
|
.<span class="ident">tooltip</span>(<span class="string">"Jump to delay"</span>);
|
||||||
<span class="kw">let</span> <span class="ident">jump_to_delay_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="kw">let</span> <span class="ident">jump_to_delay_content</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">Line</span>(<span class="string">"Jump to next"</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
<span class="ident">Line</span>(<span class="string">"Jump to next"</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
|
@ -564,7 +564,7 @@
|
|||||||
<span class="ident">Key</span>::<span class="ident">I</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
<span class="ident">Key</span>::<span class="ident">I</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
||||||
<span class="ident">Line</span>(<span class="string">" to create a new intersection"</span>),
|
<span class="ident">Line</span>(<span class="string">" to create a new intersection"</span>),
|
||||||
]);
|
]);
|
||||||
<span class="ident">instructions</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="string">"Hover on an intersection, then..."</span>));
|
<span class="ident">instructions</span>.<span class="ident">add</span>(<span class="string">"Hover on an intersection, then..."</span>);
|
||||||
<span class="ident">instructions</span>.<span class="ident">add_appended</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="ident">instructions</span>.<span class="ident">add_appended</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">Line</span>(<span class="string">"- Press "</span>),
|
<span class="ident">Line</span>(<span class="string">"- Press "</span>),
|
||||||
<span class="ident">Key</span>::<span class="ident">R</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
<span class="ident">Key</span>::<span class="ident">R</span>.<span class="ident">txt</span>(<span class="ident">ctx</span>),
|
||||||
|
@ -814,7 +814,7 @@
|
|||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FileLoader</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FileLoader</span> {
|
||||||
<span class="ident">response</span>: <span class="ident">rx</span>,
|
<span class="ident">response</span>: <span class="ident">rx</span>,
|
||||||
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
||||||
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Loading {}..."</span>, <span class="ident">url</span>)))),
|
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Loading {}..."</span>, <span class="ident">url</span>))),
|
||||||
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
||||||
<span class="ident">url</span>,
|
<span class="ident">url</span>,
|
||||||
})
|
})
|
||||||
@ -933,7 +933,7 @@
|
|||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">RawFileLoader</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">RawFileLoader</span> {
|
||||||
<span class="ident">response</span>: <span class="ident">rx</span>,
|
<span class="ident">response</span>: <span class="ident">rx</span>,
|
||||||
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
||||||
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Loading {}..."</span>, <span class="ident">url</span>)))),
|
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"Loading {}..."</span>, <span class="ident">url</span>))),
|
||||||
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
||||||
<span class="ident">url</span>,
|
<span class="ident">url</span>,
|
||||||
})
|
})
|
||||||
@ -1037,7 +1037,7 @@
|
|||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FutureLoader</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FutureLoader</span> {
|
||||||
<span class="ident">loading_title</span>: <span class="ident">loading_title</span>.<span class="ident">to_string</span>(),
|
<span class="ident">loading_title</span>: <span class="ident">loading_title</span>.<span class="ident">to_string</span>(),
|
||||||
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
||||||
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">loading_title</span>))),
|
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">loading_title</span>)),
|
||||||
<span class="ident">receiver</span>,
|
<span class="ident">receiver</span>,
|
||||||
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
||||||
})
|
})
|
||||||
@ -1059,7 +1059,7 @@
|
|||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FutureLoader</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">FutureLoader</span> {
|
||||||
<span class="ident">loading_title</span>: <span class="ident">loading_title</span>.<span class="ident">to_string</span>(),
|
<span class="ident">loading_title</span>: <span class="ident">loading_title</span>.<span class="ident">to_string</span>(),
|
||||||
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
<span class="ident">started</span>: <span class="ident">Instant</span>::<span class="ident">now</span>(),
|
||||||
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">loading_title</span>))),
|
<span class="ident">panel</span>: <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">loading_title</span>)),
|
||||||
<span class="ident">receiver</span>,
|
<span class="ident">receiver</span>,
|
||||||
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
<span class="ident">on_load</span>: <span class="prelude-val">Some</span>(<span class="ident">on_load</span>),
|
||||||
<span class="ident">runtime</span>,
|
<span class="ident">runtime</span>,
|
||||||
|
@ -527,7 +527,7 @@
|
|||||||
<span class="ident">Circle</span>::<span class="ident">new</span>(<span class="ident">center</span>, <span class="ident">radius</span>).<span class="ident">to_partial_polygon</span>(<span class="ident">percent</span>),
|
<span class="ident">Circle</span>::<span class="ident">new</span>(<span class="ident">center</span>, <span class="ident">radius</span>).<span class="ident">to_partial_polygon</span>(<span class="ident">percent</span>),
|
||||||
);
|
);
|
||||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}"</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>)))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{}"</span>, <span class="ident">idx</span> <span class="op">+</span> <span class="number">1</span>))
|
||||||
.<span class="ident">render_autocropped</span>(<span class="ident">prerender</span>)
|
.<span class="ident">render_autocropped</span>(<span class="ident">prerender</span>)
|
||||||
.<span class="ident">scale</span>(<span class="number">0.1</span>)
|
.<span class="ident">scale</span>(<span class="number">0.1</span>)
|
||||||
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
|
.<span class="ident">centered_on</span>(<span class="ident">center</span>),
|
||||||
|
@ -832,7 +832,7 @@
|
|||||||
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">color</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">poly</span>.<span class="ident">clone</span>());
|
<span class="ident">g</span>.<span class="ident">draw_polygon</span>(<span class="ident">color</span>.<span class="ident">alpha</span>(<span class="number">0.5</span>), <span class="ident">poly</span>.<span class="ident">clone</span>());
|
||||||
<span class="ident">g</span>.<span class="ident">unfork</span>();
|
<span class="ident">g</span>.<span class="ident">unfork</span>();
|
||||||
|
|
||||||
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">nice_map_name</span>(<span class="ident">name</span>))));
|
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">nice_map_name</span>(<span class="ident">name</span>)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -414,8 +414,6 @@
|
|||||||
<span id="411">411</span>
|
<span id="411">411</span>
|
||||||
<span id="412">412</span>
|
<span id="412">412</span>
|
||||||
<span id="413">413</span>
|
<span id="413">413</span>
|
||||||
<span id="414">414</span>
|
|
||||||
<span id="415">415</span>
|
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
|
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashMap</span>;
|
||||||
|
|
||||||
@ -519,7 +517,7 @@
|
|||||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ColorLegend</span> {}
|
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ColorLegend</span> {}
|
||||||
|
|
||||||
<span class="kw">impl</span> <span class="ident">ColorLegend</span> {
|
<span class="kw">impl</span> <span class="ident">ColorLegend</span> {
|
||||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">row</span><span class="op"><</span><span class="ident">S</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">String</span><span class="op">></span><span class="op">></span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">color</span>: <span class="ident">Color</span>, <span class="ident">label</span>: <span class="ident">S</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">row</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">color</span>: <span class="ident">Color</span>, <span class="ident">label</span>: <span class="kw">impl</span> <span class="ident">AsRef</span><span class="op"><</span><span class="ident">str</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||||
<span class="kw">let</span> <span class="ident">radius</span> <span class="op">=</span> <span class="number">15.0</span>;
|
<span class="kw">let</span> <span class="ident">radius</span> <span class="op">=</span> <span class="number">15.0</span>;
|
||||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
<span class="ident">GeomBatch</span>::<span class="ident">from</span>(<span class="macro">vec</span><span class="macro">!</span>[(
|
<span class="ident">GeomBatch</span>::<span class="ident">from</span>(<span class="macro">vec</span><span class="macro">!</span>[(
|
||||||
@ -528,9 +526,7 @@
|
|||||||
)])
|
)])
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
.<span class="ident">centered_vert</span>(),
|
.<span class="ident">centered_vert</span>(),
|
||||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">label</span>))
|
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">label</span>).<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">35</span>).<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
||||||
.<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">35</span>)
|
|
||||||
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@
|
|||||||
<span class="ident">p</span>.<span class="ident">communicate_start</span>(<span class="prelude-val">None</span>)
|
<span class="ident">p</span>.<span class="ident">communicate_start</span>(<span class="prelude-val">None</span>)
|
||||||
.<span class="ident">limit_time</span>(<span class="ident">Duration</span>::<span class="ident">from_millis</span>(<span class="number">0</span>)),
|
.<span class="ident">limit_time</span>(<span class="ident">Duration</span>::<span class="ident">from_millis</span>(<span class="number">0</span>)),
|
||||||
);
|
);
|
||||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"Starting command..."</span>)));
|
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">Text</span>::<span class="ident">from</span>(<span class="string">"Starting command..."</span>));
|
||||||
<span class="kw">let</span> <span class="ident">max_capacity</span> <span class="op">=</span>
|
<span class="kw">let</span> <span class="ident">max_capacity</span> <span class="op">=</span>
|
||||||
(<span class="number">0.8</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_height</span> <span class="op">/</span> <span class="ident">ctx</span>.<span class="ident">default_line_height</span>()) <span class="kw">as</span> <span class="ident">usize</span>;
|
(<span class="number">0.8</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_height</span> <span class="op">/</span> <span class="ident">ctx</span>.<span class="ident">default_line_height</span>()) <span class="kw">as</span> <span class="ident">usize</span>;
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">RunCommand</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">RunCommand</span> {
|
||||||
@ -284,7 +284,7 @@
|
|||||||
.<span class="ident">small_heading</span>(),
|
.<span class="ident">small_heading</span>(),
|
||||||
);
|
);
|
||||||
<span class="kw">for</span> <span class="ident">line</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">lines</span> {
|
<span class="kw">for</span> <span class="ident">line</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">lines</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">line</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">line</span>);
|
||||||
}
|
}
|
||||||
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">txt</span>);
|
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">make_loading_screen</span>(<span class="ident">txt</span>);
|
||||||
|
|
||||||
|
@ -407,10 +407,10 @@
|
|||||||
{
|
{
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"What cross street?"</span>).<span class="ident">small_heading</span>());
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="string">"What cross street?"</span>).<span class="ident">small_heading</span>());
|
||||||
<span class="comment">// TODO This isn't so clear...</span>
|
<span class="comment">// TODO This isn't so clear...</span>
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||||
<span class="string">"(Or just quit to go to {})"</span>,
|
<span class="string">"(Or just quit to go to {})"</span>,
|
||||||
<span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">first</span>[<span class="number">0</span>]).<span class="ident">get_name</span>(<span class="ident">app</span>.<span class="ident">opts</span>().<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
<span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">first</span>[<span class="number">0</span>]).<span class="ident">get_name</span>(<span class="ident">app</span>.<span class="ident">opts</span>().<span class="ident">language</span>.<span class="ident">as_ref</span>()),
|
||||||
)));
|
));
|
||||||
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
<span class="ident">txt</span>.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
|
||||||
},
|
},
|
||||||
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
<span class="ident">ctx</span>.<span class="ident">style</span>().<span class="ident">btn_close_widget</span>(<span class="ident">ctx</span>),
|
||||||
|
@ -344,10 +344,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">impl</span> <span class="ident">PopupMsg</span> {
|
<span class="kw">impl</span> <span class="ident">PopupMsg</span> {
|
||||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AppLike</span>, <span class="ident">I</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">String</span><span class="op">></span><span class="op">></span>(
|
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AppLike</span><span class="op">></span>(
|
||||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||||
<span class="ident">title</span>: <span class="kw-2">&</span><span class="ident">str</span>,
|
<span class="ident">title</span>: <span class="kw-2">&</span><span class="ident">str</span>,
|
||||||
<span class="ident">lines</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">I</span><span class="op">></span>,
|
<span class="ident">lines</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">impl</span> <span class="ident">AsRef</span><span class="op"><</span><span class="ident">str</span><span class="op">></span><span class="op">></span>,
|
||||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">A</span><span class="op">></span><span class="op">></span> {
|
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">A</span><span class="op">></span><span class="op">></span> {
|
||||||
<span class="ident">PopupMsg</span>::<span class="ident">also_draw</span>(
|
<span class="ident">PopupMsg</span>::<span class="ident">also_draw</span>(
|
||||||
<span class="ident">ctx</span>,
|
<span class="ident">ctx</span>,
|
||||||
@ -358,17 +358,17 @@
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">also_draw</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AppLike</span>, <span class="ident">I</span>: <span class="ident">Into</span><span class="op"><</span><span class="ident">String</span><span class="op">></span><span class="op">></span>(
|
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">also_draw</span><span class="op"><</span><span class="ident">A</span>: <span class="ident">AppLike</span><span class="op">></span>(
|
||||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||||
<span class="ident">title</span>: <span class="kw-2">&</span><span class="ident">str</span>,
|
<span class="ident">title</span>: <span class="kw-2">&</span><span class="ident">str</span>,
|
||||||
<span class="ident">lines</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">I</span><span class="op">></span>,
|
<span class="ident">lines</span>: <span class="ident">Vec</span><span class="op"><</span><span class="kw">impl</span> <span class="ident">AsRef</span><span class="op"><</span><span class="ident">str</span><span class="op">></span><span class="op">></span>,
|
||||||
<span class="ident">unzoomed</span>: <span class="ident">Drawable</span>,
|
<span class="ident">unzoomed</span>: <span class="ident">Drawable</span>,
|
||||||
<span class="ident">zoomed</span>: <span class="ident">Drawable</span>,
|
<span class="ident">zoomed</span>: <span class="ident">Drawable</span>,
|
||||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">A</span><span class="op">></span><span class="op">></span> {
|
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op"><</span><span class="ident">A</span><span class="op">></span><span class="op">></span> {
|
||||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">txt</span> <span class="op">=</span> <span class="ident">Text</span>::<span class="ident">new</span>();
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">title</span>).<span class="ident">small_heading</span>());
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">title</span>).<span class="ident">small_heading</span>());
|
||||||
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">lines</span> {
|
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">lines</span> {
|
||||||
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">Line</span>(<span class="ident">l</span>));
|
<span class="ident">txt</span>.<span class="ident">add</span>(<span class="ident">l</span>);
|
||||||
}
|
}
|
||||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">PopupMsg</span> {
|
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">PopupMsg</span> {
|
||||||
<span class="ident">panel</span>: <span class="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
<span class="ident">panel</span>: <span class="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user