mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-23 08:54:30 +03:00
deploy: f8dafeb7cd
This commit is contained in:
parent
2066189645
commit
2bfa0b996c
@ -5,7 +5,7 @@
|
||||
</a><h2 class="location"><a href="#">Module edit</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../ltn/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">ltn</a>::<wbr><a class="mod" href="#">edit</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#1-495">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">ltn</a>::<wbr><a class="mod" href="#">edit</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#1-492">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="filters/index.html" title="ltn::edit::filters mod">filters</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="freehand_filters/index.html" title="ltn::edit::freehand_filters mod">freehand_filters</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="one_ways/index.html" title="ltn::edit::one_ways mod">one_ways</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="shortcuts/index.html" title="ltn::edit::shortcuts mod">shortcuts</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EditNeighbourhood.html" title="ltn::edit::EditNeighbourhood struct">EditNeighbourhood</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ResolveBusGate.html" title="ltn::edit::ResolveBusGate struct">ResolveBusGate</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ResolveOneWayAndFilter.html" title="ltn::edit::ResolveOneWayAndFilter struct">ResolveOneWayAndFilter</a><span title="Restricted Visibility"> 🔒</span> </div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.EditMode.html" title="ltn::edit::EditMode enum">EditMode</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.EditOutcome.html" title="ltn::edit::EditOutcome enum">EditOutcome</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Obj.html" title="ltn::edit::Obj enum">Obj</a></div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
|
||||
|
@ -8,9 +8,9 @@
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">ltn</a>::<wbr><a href="index.html">edit</a>::<wbr><a class="struct" href="#">ResolveBusGate</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#412-415">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>struct ResolveBusGate {
|
||||
panel: Panel,
|
||||
roads: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>)>,
|
||||
}</code></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.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>)></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#417-461">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#418-460">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>, <br> roads: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>)><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>>></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CSimpleApp%3CSession%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#463-495">source</a></span><a href="#impl-State%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>> for <a class="struct" href="struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#464-485">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>></h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#487-489">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#491-494">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, 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="../struct.Session.html" title="struct ltn::Session">Session</a>>)</h4></section></summary><div class='docblock'><p>Draw</p>
|
||||
}</code></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.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>)></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#417-458">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><section id="method.new_state" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#418-457">source</a></span><a href="#method.new_state" class="anchor"></a><h4 class="code-header">fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>, <br> roads: <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>, <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>)><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>>></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-State%3CSimpleApp%3CSession%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#460-492">source</a></span><a href="#impl-State%3CSimpleApp%3CSession%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>> for <a class="struct" href="struct.ResolveBusGate.html" title="struct ltn::edit::ResolveBusGate">ResolveBusGate</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.event" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#461-482">source</a></span><a href="#method.event" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>>></h4></section></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw_baselayer" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#484-486">source</a></span><a href="#method.draw_baselayer" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</h4></section></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.draw" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/edit/mod.rs.html#488-491">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, 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="../struct.Session.html" title="struct ltn::Session">Session</a>>)</h4></section></summary><div class='docblock'><p>Draw</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.on_destroy" class="method trait-impl has-srclink"><a href="#method.on_destroy" class="anchor"></a><h4 class="code-header">fn <a class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&mut </a>A)</h4></section></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recreate" class="method trait-impl has-srclink"><a href="#method.recreate" class="anchor"></a><h4 class="code-header">fn <a class="fnname">recreate</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.reference.html">&mut </a>A<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<A> + 'static, <a class="struct" href="https://doc.rust-lang.org/1.63.0/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></h4></section></summary><div class='docblock'><p>Respond to <code>Transition::Recreate</code> by assuming state in the app has changed, but preserving
|
||||
the <code>State</code>-specific state appropriately. <a>Read more</a></p>
|
||||
|
@ -5,6 +5,6 @@
|
||||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
|
||||
<a href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div>
|
||||
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-e828072489b7169e/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = r"Thu, 01 Sep 2022 09:12:05 +0000";</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-e828072489b7169e/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.str.html">str</a> = r"Thu, 01 Sep 2022 10:59:58 +0000";</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
|
||||
</body></html>
|
@ -496,9 +496,6 @@
|
||||
<span id="490">490</span>
|
||||
<span id="491">491</span>
|
||||
<span id="492">492</span>
|
||||
<span id="493">493</span>
|
||||
<span id="494">494</span>
|
||||
<span id="495">495</span>
|
||||
</pre><pre class="rust"><code><span class="kw">mod</span> <span class="ident">filters</span>;
|
||||
<span class="kw">mod</span> <span class="ident">freehand_filters</span>;
|
||||
<span class="kw">mod</span> <span class="ident">one_ways</span>;
|
||||
@ -927,18 +924,15 @@
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="ident">Line</span>(<span class="string">"Warning"</span>).<span class="ident">small_heading</span>());
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">"A regular modal filter would impact bus routes here."</span>);
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">"A bus gate uses signage and camera enforcement to only allow buses"</span>);
|
||||
<span class="comment">// TODO Enable after regenerating maps with correct route names</span>
|
||||
<span class="kw">if</span> <span class="bool-val">false</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">""</span>);
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">"The following bus routes cross this road:"</span>);
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">""</span>);
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="string">"The following bus routes cross this road:"</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">routes</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||||
<span class="kw">for</span> (<span class="ident">r</span>, <span class="kw">_</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">roads</span> {
|
||||
<span class="ident">routes</span>.<span class="ident">extend</span>(<span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_bus_routes_on_road</span>(<span class="kw-2">*</span><span class="ident">r</span>));
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">route</span> <span class="kw">in</span> <span class="ident">routes</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="macro">format!</span>(<span class="string">"- {route}"</span>));
|
||||
}
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">routes</span> <span class="op">=</span> <span class="ident">BTreeSet::new</span>();
|
||||
<span class="kw">for</span> (<span class="ident">r</span>, <span class="kw">_</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">roads</span> {
|
||||
<span class="ident">routes</span>.<span class="ident">extend</span>(<span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_bus_routes_on_road</span>(<span class="kw-2">*</span><span class="ident">r</span>));
|
||||
}
|
||||
<span class="kw">for</span> <span class="ident">route</span> <span class="kw">in</span> <span class="ident">routes</span> {
|
||||
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="macro">format!</span>(<span class="string">"- {route}"</span>));
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">Panel::new_builder</span>(<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
|
||||
|
@ -180,7 +180,7 @@
|
||||
<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">r"rustdoc 1.63.0 (4b91a6ea7 2022-08-08)"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The build time in RFC2822, UTC."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Thu, 01 Sep 2022 09:12:05 +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">r"Thu, 01 Sep 2022 10:59:58 +0000"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"x86_64"</span>;
|
||||
|
Loading…
Reference in New Issue
Block a user