This commit is contained in:
dabreegster 2021-09-28 16:51:54 +00:00
parent e2c594734e
commit 984022ac88
29 changed files with 484 additions and 157 deletions

File diff suppressed because one or more lines are too long

View File

@ -367,8 +367,8 @@ call this to handle all other events. <a href="#method.other_event">Read more</a
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/quick_sketch.rs.html#118-122" title="goto source code">[src]</a></div><a href="#method.draw-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-62" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-62" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-62" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-62" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&amp;mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-63" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#98-166" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-63" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt; for <a class="struct" href="../ungap/route/struct.RoutePlanner.html" title="struct game::ungap::route::RoutePlanner">RoutePlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#99-157" title="goto source code">[src]</a></div><a href="#method.event-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -&gt; Transition&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt;</h4></div></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><div id="method.draw-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#159-165" title="goto source code">[src]</a></div><a href="#method.draw-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-63" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#100-168" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-63" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt; for <a class="struct" href="../ungap/route/struct.RoutePlanner.html" title="struct game::ungap::route::RoutePlanner">RoutePlanner</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-63" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#101-159" title="goto source code">[src]</a></div><a href="#method.event-63" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -&gt; Transition&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt;</h4></div></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><div id="method.draw-64" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/ungap/route/mod.rs.html#161-167" title="goto source code">[src]</a></div><a href="#method.draw-64" class="anchor"></a><h4 class="code-header">fn <a class="fnname">draw</a>(&amp;self, g: &amp;mut GfxCtx&lt;'_&gt;, app: &amp;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>)</h4></div></summary><div class='docblock'><p>Draw</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.draw_baselayer-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.draw_baselayer-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&amp;self) -&gt; DrawBaselayer</h4></div></summary><div class='docblock'><p>Specifies what to draw before draw()</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.on_destroy-63" class="method trait-impl has-srclink"><div class="rightside"></div><a href="#method.on_destroy-63" class="anchor"></a><h4 class="code-header">fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&amp;mut self, &amp;mut EventCtx&lt;'_&gt;, <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.reference.html">&amp;mut </a>A)</h4></div></summary><div class='docblock'><p>Before this state is popped or replaced, call this.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-State%3CApp%3E-7" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#82-124" title="goto source code">[src]</a></div><a href="#impl-State%3CApp%3E-7" class="anchor"></a><h3 class="code-header in-band">impl State&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt; for <a class="struct" href="../debug/path_counter/struct.PathCounter.html" title="struct game::debug::path_counter::PathCounter">PathCounter</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.event-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/game/debug/path_counter.rs.html#83-112" title="goto source code">[src]</a></div><a href="#method.event-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">event</a>(&amp;mut self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;mut <a class="struct" href="struct.App.html" title="struct game::app::App">App</a>) -&gt; Transition&lt;<a class="struct" href="struct.App.html" title="struct game::app::App">App</a>&gt;</h4></div></summary><div class='docblock'><p>Respond to a UI event, such as input or time passing.</p>

View File

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

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `route` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, route"><title>game::ungap::route - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module route</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><div id="sidebar-vars" data-name="route" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">ungap</a>::<wbr><a class="mod" href="#">route</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/ungap/route/mod.rs.html#1-166" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<!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 `route` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, route"><title>game::ungap::route - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module route</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><div id="sidebar-vars" data-name="route" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">game</a>::<wbr><a href="../index.html">ungap</a>::<wbr><a class="mod" href="#">route</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../src/game/ungap/route/mod.rs.html#1-168" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="mod" href="files/index.html" title="game::ungap::route::files mod">files</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="results/index.html" title="game::ungap::route::results mod">results</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.RoutePlanner.html" title="game::ungap::route::RoutePlanner struct">RoutePlanner</a></div><div class="item-right docblock-short"></div></div><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="constant" href="constant.MAX_AVOID_PARAM.html" title="game::ungap::route::MAX_AVOID_PARAM constant">MAX_AVOID_PARAM</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>

View File

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

View File

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

View File

@ -1,4 +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 `results` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, results"><title>game::ungap::route::results - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module results</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="results" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">route</a>::<wbr><a class="mod" href="#">results</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../../src/game/ungap/route/results.rs.html#1-414" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.AltRouteResults.html" title="game::ungap::route::results::AltRouteResults struct">AltRouteResults</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RouteResults.html" title="game::ungap::route::results::RouteResults struct">RouteResults</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
<!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 `results` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, results"><title>game::ungap::route::results - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module results</h2><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><div id="sidebar-vars" data-name="results" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">game</a>::<wbr><a href="../../index.html">ungap</a>::<wbr><a href="../index.html">route</a>::<wbr><a class="mod" href="#">results</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../../../src/game/ungap/route/results.rs.html#1-543" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.AltRouteResults.html" title="game::ungap::route::results::AltRouteResults struct">AltRouteResults</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RouteResults.html" title="game::ungap::route::results::RouteResults struct">RouteResults</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.RouteStats.html" title="game::ungap::route::results::RouteStats struct">RouteStats</a></div><div class="item-right docblock-short"></div></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="fn" href="fn.cmp_dist.html" title="game::ungap::route::results::cmp_dist fn">cmp_dist</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="fn" href="fn.cmp_duration.html" title="game::ungap::route::results::cmp_duration fn">cmp_duration</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
<script src="../../../../main.js"></script>
</body></html>

View File

@ -1 +1 @@
initSidebarItems({"struct":[["AltRouteResults",""],["RouteResults",""]]});
initSidebarItems({"fn":[["cmp_dist",""],["cmp_duration",""]],"struct":[["AltRouteResults",""],["RouteResults",""],["RouteStats",""]]});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 `duration` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, duration"><title>geom::duration - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module duration</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="duration" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">geom</a>::<wbr><a class="mod" href="#">duration</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/geom/duration.rs.html#1-426" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<!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 `duration` mod in crate `geom`."><meta name="keywords" content="rust, rustlang, rust-lang, duration"><title>geom::duration - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../geom/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module duration</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="duration" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input"name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">geom</a>::<wbr><a class="mod" href="#">duration</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/geom/duration.rs.html#1-434" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.Duration.html" title="geom::duration::Duration struct">Duration</a></div><div class="item-right docblock-short"><p>A duration, in seconds. Can be negative.</p>
</div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="geom" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>

File diff suppressed because one or more lines are too long

View File

@ -12,8 +12,8 @@
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#84-86" title="goto source code">[src]</a></div><a href="#method.div-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a></h4></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CDuration%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#113-119" title="goto source code">[src]</a></div><a href="#impl-Mul%3CDuration%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="../duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>&gt; for <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-7" class="type trait-impl has-srclink"><a href="#associatedtype.Output-7" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#116-118" title="goto source code">[src]</a></div><a href="#method.mul-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="../duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -&gt; <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/duration.rs.html#339-345" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="struct" href="../duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/duration.rs.html#342-344" title="goto source code">[src]</a></div><a href="#method.mul" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/duration.rs.html#347-353" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="struct" href="../duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/duration.rs.html#350-352" title="goto source code">[src]</a></div><a href="#method.mul" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#105-111" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-6" class="type trait-impl has-srclink"><a href="#associatedtype.Output-6" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#108-110" title="goto source code">[src]</a></div><a href="#method.mul-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3Cf64%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/geom/speed.rs.html#97-103" title="goto source code">[src]</a></div><a href="#impl-Mul%3Cf64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a>&gt; for <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-5" class="type trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>

File diff suppressed because one or more lines are too long

View File

@ -12,8 +12,8 @@
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#84-86" title="goto source code">[src]</a></div><a href="#method.div-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a></h4></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CDuration%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#113-119" title="goto source code">[src]</a></div><a href="#impl-Mul%3CDuration%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>&gt; for <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-7" class="type trait-impl has-srclink"><a href="#associatedtype.Output-7" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#116-118" title="goto source code">[src]</a></div><a href="#method.mul-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>) -&gt; <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/duration.rs.html#339-345" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="struct" href="duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/duration.rs.html#342-344" title="goto source code">[src]</a></div><a href="#method.mul" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/duration.rs.html#347-353" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="struct" href="duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/duration.rs.html#350-352" title="goto source code">[src]</a></div><a href="#method.mul" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3CSpeed%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#105-111" title="goto source code">[src]</a></div><a href="#impl-Mul%3CSpeed%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-6" class="type trait-impl has-srclink"><a href="#associatedtype.Output-6" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#108-110" title="goto source code">[src]</a></div><a href="#method.mul-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>) -&gt; <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Mul%3Cf64%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/geom/speed.rs.html#97-103" title="goto source code">[src]</a></div><a href="#impl-Mul%3Cf64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.55.0/std/primitive.f64.html">f64</a>&gt; for <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-5" class="type trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></h4></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
(function() {var implementors = {};
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/angle/struct.Angle.html\" title=\"struct geom::angle::Angle\">Angle</a>","synthetic":false,"types":["geom::angle::Angle"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/distance/struct.Distance.html\" title=\"struct geom::distance::Distance\">Distance</a>","synthetic":false,"types":["geom::distance::Distance"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/speed/struct.Speed.html\" title=\"struct geom::speed::Speed\">Speed</a>","synthetic":false,"types":["geom::speed::Speed"]}];
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/angle/struct.Angle.html\" title=\"struct geom::angle::Angle\">Angle</a>","synthetic":false,"types":["geom::angle::Angle"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/distance/struct.Distance.html\" title=\"struct geom::distance::Distance\">Distance</a>","synthetic":false,"types":["geom::distance::Distance"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/duration/struct.Duration.html\" title=\"struct geom::duration::Duration\">Duration</a>","synthetic":false,"types":["geom::duration::Duration"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.55.0/core/ops/arith/trait.Neg.html\" title=\"trait core::ops::arith::Neg\">Neg</a> for <a class=\"struct\" href=\"geom/speed/struct.Speed.html\" title=\"struct geom::speed::Speed\">Speed</a>","synthetic":false,"types":["geom::speed::Speed"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -175,7 +175,7 @@
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;rustdoc 1.55.0 (c8dfcfe04 2021-09-06)&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Mon, 27 Sep 2021 21:41:02 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Tue, 28 Sep 2021 16:50:39 +0000&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;x86_64&quot;</span>;

View File

@ -164,6 +164,8 @@
<span id="164">164</span>
<span id="165">165</span>
<span id="166">166</span>
<span id="167">167</span>
<span id="168">168</span>
</pre><pre class="rust">
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">EventCtx</span>, <span class="ident">GfxCtx</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">Slider</span>, <span class="ident">State</span>, <span class="ident">TextExt</span>, <span class="ident">Widget</span>};
@ -218,6 +220,8 @@
<span class="self">self</span>.<span class="ident">results</span> <span class="op">=</span> <span class="ident">results</span>;
<span class="self">self</span>.<span class="ident">alt_low_stress_route</span> <span class="op">=</span>
<span class="ident">AltRouteResults::low_stress</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="self">self</span>.<span class="ident">waypoints</span>.<span class="ident">get_waypoints</span>());
<span class="self">self</span>.<span class="ident">alt_low_stress_route</span>
.<span class="ident">compare_to_main_route</span>(<span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">results</span>);
<span class="kw">let</span> <span class="ident">params</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">routing_params</span>;
<span class="kw">let</span> <span class="ident">col</span> <span class="op">=</span> <span class="ident">Widget::col</span>(<span class="macro">vec!</span>[

View File

@ -412,6 +412,135 @@
<span id="412">412</span>
<span id="413">413</span>
<span id="414">414</span>
<span id="415">415</span>
<span id="416">416</span>
<span id="417">417</span>
<span id="418">418</span>
<span id="419">419</span>
<span id="420">420</span>
<span id="421">421</span>
<span id="422">422</span>
<span id="423">423</span>
<span id="424">424</span>
<span id="425">425</span>
<span id="426">426</span>
<span id="427">427</span>
<span id="428">428</span>
<span id="429">429</span>
<span id="430">430</span>
<span id="431">431</span>
<span id="432">432</span>
<span id="433">433</span>
<span id="434">434</span>
<span id="435">435</span>
<span id="436">436</span>
<span id="437">437</span>
<span id="438">438</span>
<span id="439">439</span>
<span id="440">440</span>
<span id="441">441</span>
<span id="442">442</span>
<span id="443">443</span>
<span id="444">444</span>
<span id="445">445</span>
<span id="446">446</span>
<span id="447">447</span>
<span id="448">448</span>
<span id="449">449</span>
<span id="450">450</span>
<span id="451">451</span>
<span id="452">452</span>
<span id="453">453</span>
<span id="454">454</span>
<span id="455">455</span>
<span id="456">456</span>
<span id="457">457</span>
<span id="458">458</span>
<span id="459">459</span>
<span id="460">460</span>
<span id="461">461</span>
<span id="462">462</span>
<span id="463">463</span>
<span id="464">464</span>
<span id="465">465</span>
<span id="466">466</span>
<span id="467">467</span>
<span id="468">468</span>
<span id="469">469</span>
<span id="470">470</span>
<span id="471">471</span>
<span id="472">472</span>
<span id="473">473</span>
<span id="474">474</span>
<span id="475">475</span>
<span id="476">476</span>
<span id="477">477</span>
<span id="478">478</span>
<span id="479">479</span>
<span id="480">480</span>
<span id="481">481</span>
<span id="482">482</span>
<span id="483">483</span>
<span id="484">484</span>
<span id="485">485</span>
<span id="486">486</span>
<span id="487">487</span>
<span id="488">488</span>
<span id="489">489</span>
<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>
<span id="496">496</span>
<span id="497">497</span>
<span id="498">498</span>
<span id="499">499</span>
<span id="500">500</span>
<span id="501">501</span>
<span id="502">502</span>
<span id="503">503</span>
<span id="504">504</span>
<span id="505">505</span>
<span id="506">506</span>
<span id="507">507</span>
<span id="508">508</span>
<span id="509">509</span>
<span id="510">510</span>
<span id="511">511</span>
<span id="512">512</span>
<span id="513">513</span>
<span id="514">514</span>
<span id="515">515</span>
<span id="516">516</span>
<span id="517">517</span>
<span id="518">518</span>
<span id="519">519</span>
<span id="520">520</span>
<span id="521">521</span>
<span id="522">522</span>
<span id="523">523</span>
<span id="524">524</span>
<span id="525">525</span>
<span id="526">526</span>
<span id="527">527</span>
<span id="528">528</span>
<span id="529">529</span>
<span id="530">530</span>
<span id="531">531</span>
<span id="532">532</span>
<span id="533">533</span>
<span id="534">534</span>
<span id="535">535</span>
<span id="536">536</span>
<span id="537">537</span>
<span id="538">538</span>
<span id="539">539</span>
<span id="540">540</span>
<span id="541">541</span>
<span id="542">542</span>
<span id="543">543</span>
</pre><pre class="rust">
<span class="kw">use</span> <span class="ident">std::collections::HashSet</span>;
@ -432,6 +561,7 @@
<span class="ident">paths</span>: <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">Path</span>, <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">PolyLine</span><span class="op">&gt;</span>)<span class="op">&gt;</span>,
<span class="comment">// Match each polyline to the index in paths</span>
<span class="ident">closest_path_segment</span>: <span class="ident">FindClosest</span><span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>,
<span class="ident">stats</span>: <span class="ident">RouteStats</span>,
<span class="ident">hover_on_line_plot</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span>(<span class="ident">Distance</span>, <span class="ident">Drawable</span>)<span class="op">&gt;</span>,
<span class="ident">hover_on_route_tooltip</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">Text</span><span class="op">&gt;</span>,
@ -442,6 +572,16 @@
<span class="ident">draw_unprotected_turns</span>: <span class="ident">Drawable</span>,
}
<span class="kw">struct</span> <span class="ident">RouteStats</span> {
<span class="ident">total_distance</span>: <span class="ident">Distance</span>,
<span class="ident">dist_along_high_stress_roads</span>: <span class="ident">Distance</span>,
<span class="ident">total_time</span>: <span class="ident">Duration</span>,
<span class="ident">num_traffic_signals</span>: <span class="ident">usize</span>,
<span class="ident">num_unprotected_turns</span>: <span class="ident">usize</span>,
<span class="ident">total_up</span>: <span class="ident">Distance</span>,
<span class="ident">total_down</span>: <span class="ident">Distance</span>,
}
<span class="kw">impl</span> <span class="ident">RouteResults</span> {
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">main_route</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
@ -549,89 +689,32 @@
}
}
<span class="kw">let</span> <span class="ident">pct_stressful</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">total_distance</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Distance::ZERO</span> {
<span class="number">0.0</span>
} <span class="kw">else</span> {
((<span class="ident">dist_along_high_stress_roads</span> <span class="op">/</span> <span class="ident">total_distance</span>) <span class="op">*</span> <span class="number">100.0</span>).<span class="ident">round</span>()
<span class="kw">let</span> <span class="ident">stats</span> <span class="op">=</span> <span class="ident">RouteStats</span> {
<span class="ident">total_distance</span>,
<span class="ident">dist_along_high_stress_roads</span>,
<span class="ident">total_time</span>,
<span class="ident">num_traffic_signals</span>,
<span class="ident">num_unprotected_turns</span>,
<span class="ident">total_up</span>,
<span class="ident">total_down</span>,
};
<span class="kw">let</span> <span class="ident">widget</span> <span class="op">=</span> <span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Route details&quot;</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Distance: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="ident">total_distance</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot; {} or {}%&quot;</span>,
<span class="ident">dist_along_high_stress_roads</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">pct_stressful</span>
)),
<span class="ident">Line</span>(<span class="string">&quot; along &quot;</span>).<span class="ident">secondary</span>(),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="string">&quot;high-stress roads&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
]),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Estimated time: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="ident">total_time</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Traffic signals crossed: &quot;</span>)
.<span class="ident">secondary</span>()
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="ident">num_traffic_signals</span>.<span class="ident">to_string</span>())
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">&quot;traffic signals&quot;</span>),
]),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Unprotected left turns onto busy roads: &quot;</span>)
.<span class="ident">secondary</span>()
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="ident">num_unprotected_turns</span>.<span class="ident">to_string</span>())
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">&quot;unprotected turns&quot;</span>),
]),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Elevation change: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{}↑, {}↓&quot;</span>,
<span class="ident">total_up</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">total_down</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)
)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">LinePlot::new_widget</span>(
<span class="ident">ctx</span>,
<span class="string">&quot;elevation&quot;</span>,
<span class="macro">vec!</span>[<span class="ident">Series</span> {
<span class="ident">label</span>: <span class="string">&quot;Elevation&quot;</span>.<span class="ident">to_string</span>(),
<span class="ident">color</span>: <span class="ident">Color::RED</span>,
<span class="ident">pts</span>: <span class="ident">elevation_pts</span>,
}],
<span class="ident">PlotOptions</span> {
<span class="ident">filterable</span>: <span class="bool-val">false</span>,
<span class="ident">max_x</span>: <span class="prelude-val">Some</span>(<span class="ident">current_dist</span>.<span class="ident">round_up_for_axis</span>()),
<span class="ident">max_y</span>: <span class="prelude-val">Some</span>(<span class="ident">map</span>.<span class="ident">max_elevation</span>().<span class="ident">round_up_for_axis</span>()),
<span class="ident">disabled</span>: <span class="ident">HashSet::new</span>(),
},
<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>,
),
]);
<span class="kw">let</span> <span class="ident">elevation_plot</span> <span class="op">=</span> <span class="ident">LinePlot::new_widget</span>(
<span class="ident">ctx</span>,
<span class="string">&quot;elevation&quot;</span>,
<span class="macro">vec!</span>[<span class="ident">Series</span> {
<span class="ident">label</span>: <span class="string">&quot;Elevation&quot;</span>.<span class="ident">to_string</span>(),
<span class="ident">color</span>: <span class="ident">Color::RED</span>,
<span class="ident">pts</span>: <span class="ident">elevation_pts</span>,
}],
<span class="ident">PlotOptions</span> {
<span class="ident">filterable</span>: <span class="bool-val">false</span>,
<span class="ident">max_x</span>: <span class="prelude-val">Some</span>(<span class="ident">current_dist</span>.<span class="ident">round_up_for_axis</span>()),
<span class="ident">max_y</span>: <span class="prelude-val">Some</span>(<span class="ident">map</span>.<span class="ident">max_elevation</span>().<span class="ident">round_up_for_axis</span>()),
<span class="ident">disabled</span>: <span class="ident">HashSet::new</span>(),
},
<span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>,
);
<span class="kw">let</span> <span class="ident">widget</span> <span class="op">=</span> <span class="ident">stats</span>.<span class="ident">to_widget</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">elevation_plot</span>);
(
<span class="ident">RouteResults</span> {
@ -643,6 +726,7 @@
<span class="ident">closest_path_segment</span>,
<span class="ident">hover_on_line_plot</span>: <span class="prelude-val">None</span>,
<span class="ident">hover_on_route_tooltip</span>: <span class="prelude-val">None</span>,
<span class="ident">stats</span>,
},
<span class="ident">widget</span>,
)
@ -775,10 +859,85 @@
}
}
<span class="kw">impl</span> <span class="ident">RouteStats</span> {
<span class="kw">fn</span> <span class="ident">to_widget</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">elevation_plot</span>: <span class="ident">Widget</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Widget</span> {
<span class="kw">let</span> <span class="ident">pct_stressful</span> <span class="op">=</span> <span class="kw">if</span> <span class="self">self</span>.<span class="ident">total_distance</span> <span class="op">=</span><span class="op">=</span> <span class="ident">Distance::ZERO</span> {
<span class="number">0.0</span>
} <span class="kw">else</span> {
((<span class="self">self</span>.<span class="ident">dist_along_high_stress_roads</span> <span class="op">/</span> <span class="self">self</span>.<span class="ident">total_distance</span>) <span class="op">*</span> <span class="number">100.0</span>).<span class="ident">round</span>()
};
<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Route details&quot;</span>).<span class="ident">small_heading</span>().<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Distance: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">total_distance</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot; {} or {}%&quot;</span>,
<span class="self">self</span>.<span class="ident">dist_along_high_stress_roads</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">pct_stressful</span>
)),
<span class="ident">Line</span>(<span class="string">&quot; along &quot;</span>).<span class="ident">secondary</span>(),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="string">&quot;high-stress roads&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
]),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Estimated time: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="self">self</span>.<span class="ident">total_time</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Traffic signals crossed: &quot;</span>)
.<span class="ident">secondary</span>()
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="self">self</span>.<span class="ident">num_traffic_signals</span>.<span class="ident">to_string</span>())
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">&quot;traffic signals&quot;</span>),
]),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Unprotected left turns onto busy roads: &quot;</span>)
.<span class="ident">secondary</span>()
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_plain</span>
.<span class="ident">btn</span>()
.<span class="ident">label_underlined_text</span>(<span class="self">self</span>.<span class="ident">num_unprotected_turns</span>.<span class="ident">to_string</span>())
.<span class="ident">build_widget</span>(<span class="ident">ctx</span>, <span class="string">&quot;unprotected turns&quot;</span>),
]),
<span class="ident">Text::from_all</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Elevation change: &quot;</span>).<span class="ident">secondary</span>(),
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{}↑, {}↓&quot;</span>,
<span class="self">self</span>.<span class="ident">total_up</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="self">self</span>.<span class="ident">total_down</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)
)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">elevation_plot</span>,
])
}
}
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">AltRouteResults</span> {
<span class="ident">closest_path_segment</span>: <span class="ident">FindClosest</span><span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>,
<span class="ident">stats</span>: <span class="ident">RouteStats</span>,
<span class="ident">hovering</span>: <span class="ident">bool</span>,
<span class="ident">draw_route</span>: <span class="ident">ToggleZoomed</span>,
<span class="ident">tooltip</span>: <span class="ident">Text</span>,
}
<span class="kw">impl</span> <span class="ident">AltRouteResults</span> {
@ -799,11 +958,71 @@
);
<span class="ident">AltRouteResults</span> {
<span class="ident">closest_path_segment</span>: <span class="ident">results</span>.<span class="ident">closest_path_segment</span>,
<span class="ident">stats</span>: <span class="ident">results</span>.<span class="ident">stats</span>,
<span class="ident">hovering</span>: <span class="bool-val">false</span>,
<span class="ident">draw_route</span>: <span class="ident">results</span>.<span class="ident">draw_route</span>,
<span class="ident">tooltip</span>: <span class="ident">Text::new</span>(),
}
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">compare_to_main_route</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">main</span>: <span class="kw-2">&amp;</span><span class="ident">RouteResults</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::new</span>();
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="ident">Line</span>(<span class="string">&quot;Click to use low-stress route&quot;</span>));
<span class="ident">cmp_dist</span>(
<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">txt</span>,
<span class="ident">app</span>,
<span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_distance</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_distance</span>,
<span class="string">&quot;shorter&quot;</span>,
<span class="string">&quot;longer&quot;</span>,
);
<span class="ident">cmp_duration</span>(
<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">txt</span>,
<span class="ident">app</span>,
<span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_time</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_time</span>,
<span class="string">&quot;shorter&quot;</span>,
<span class="string">&quot;longer&quot;</span>,
);
<span class="ident">cmp_dist</span>(
<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">txt</span>,
<span class="ident">app</span>,
<span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">dist_along_high_stress_roads</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">dist_along_high_stress_roads</span>,
<span class="string">&quot;less on high-stress roads&quot;</span>,
<span class="string">&quot;more on high-stress roads&quot;</span>,
);
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_up</span> <span class="op">!</span><span class="op">=</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_up</span>
<span class="op">|</span><span class="op">|</span> <span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_down</span> <span class="op">!</span><span class="op">=</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_down</span>
{
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="ident">Line</span>(<span class="string">&quot;Elevation change: &quot;</span>));
<span class="kw">let</span> <span class="ident">up</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_up</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_up</span>;
<span class="kw">if</span> <span class="ident">up</span> <span class="op">&lt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">append</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;{} less ↑&quot;</span>, (<span class="op">-</span><span class="ident">up</span>).<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">fg</span>(<span class="ident">Color::GREEN</span>),
);
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">&quot;, &quot;</span>));
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">up</span> <span class="op">&gt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">append</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;{} more ↑&quot;</span>, <span class="ident">up</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))).<span class="ident">fg</span>(<span class="ident">Color::RED</span>),
);
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="string">&quot;, &quot;</span>));
}
<span class="comment">// Unclear if more down should be &quot;good&quot; or &quot;bad&quot;, so we&#39;ll omit color</span>
<span class="kw">let</span> <span class="ident">down</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">stats</span>.<span class="ident">total_down</span> <span class="op">-</span> <span class="ident">main</span>.<span class="ident">stats</span>.<span class="ident">total_down</span>;
<span class="kw">if</span> <span class="ident">down</span> <span class="op">&lt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{} less ↓&quot;</span>,
(<span class="op">-</span><span class="ident">down</span>).<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>)
)));
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">down</span> <span class="op">&gt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">append</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;{} more ↓&quot;</span>, <span class="ident">down</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>))));
}
}
<span class="self">self</span>.<span class="ident">tooltip</span> <span class="op">=</span> <span class="ident">txt</span>;
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>) {
<span class="kw">if</span> <span class="ident">ctx</span>.<span class="ident">redo_mouseover</span>() {
<span class="self">self</span>.<span class="ident">hovering</span> <span class="op">=</span> <span class="bool-val">false</span>;
@ -823,10 +1042,49 @@
<span class="self">self</span>.<span class="ident">draw_route</span>.<span class="ident">draw</span>(<span class="ident">g</span>, <span class="ident">app</span>);
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">hovering</span> {
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">Text::from</span>(<span class="ident">Line</span>(<span class="string">&quot;Click to try this alternate route&quot;</span>)));
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="self">self</span>.<span class="ident">tooltip</span>.<span class="ident">clone</span>());
}
}
}
<span class="kw">fn</span> <span class="ident">cmp_dist</span>(<span class="ident">txt</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Text</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">dist</span>: <span class="ident">Distance</span>, <span class="ident">shorter</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>, <span class="ident">longer</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) {
<span class="kw">if</span> <span class="ident">dist</span> <span class="op">&lt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">add_line</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{} {}&quot;</span>,
(<span class="op">-</span><span class="ident">dist</span>).<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">shorter</span>
))
.<span class="ident">fg</span>(<span class="ident">Color::GREEN</span>),
);
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">dist</span> <span class="op">&gt;</span> <span class="ident">Distance::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">add_line</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;{} {}&quot;</span>, <span class="ident">dist</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>), <span class="ident">longer</span>)).<span class="ident">fg</span>(<span class="ident">Color::RED</span>),
);
}
}
<span class="kw">fn</span> <span class="ident">cmp_duration</span>(<span class="ident">txt</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">Text</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">duration</span>: <span class="ident">Duration</span>, <span class="ident">shorter</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>, <span class="ident">longer</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) {
<span class="kw">if</span> <span class="ident">duration</span> <span class="op">&lt;</span> <span class="ident">Duration::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">add_line</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{} {}&quot;</span>,
(<span class="op">-</span><span class="ident">duration</span>).<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">shorter</span>
))
.<span class="ident">fg</span>(<span class="ident">Color::GREEN</span>),
);
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">duration</span> <span class="op">&gt;</span> <span class="ident">Duration::ZERO</span> {
<span class="ident">txt</span>.<span class="ident">add_line</span>(
<span class="ident">Line</span>(<span class="macro">format!</span>(
<span class="string">&quot;{} {}&quot;</span>,
<span class="ident">duration</span>.<span class="ident">to_string</span>(<span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">opts</span>.<span class="ident">units</span>),
<span class="ident">longer</span>
))
.<span class="ident">fg</span>(<span class="ident">Color::RED</span>),
);
}
}
</pre></div>
</section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="game" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
<script src="../../../../main.js"></script><script src="../../../../source-script.js"></script><script src="../../../../source-files.js"></script>

View File

@ -424,6 +424,14 @@
<span id="424">424</span>
<span id="425">425</span>
<span id="426">426</span>
<span id="427">427</span>
<span id="428">428</span>
<span id="429">429</span>
<span id="430">430</span>
<span id="431">431</span>
<span id="432">432</span>
<span id="433">433</span>
<span id="434">434</span>
</pre><pre class="rust">
<span class="kw">use</span> <span class="ident">std</span>::{<span class="ident">cmp</span>, <span class="ident">ops</span>};
@ -745,6 +753,14 @@
}
}
<span class="kw">impl</span> <span class="ident">ops::Neg</span> <span class="kw">for</span> <span class="ident">Duration</span> {
<span class="kw">type</span> <span class="ident">Output</span> <span class="op">=</span> <span class="ident">Duration</span>;
<span class="kw">fn</span> <span class="ident">neg</span>(<span class="self">self</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Duration</span> {
<span class="ident">Duration::seconds</span>(<span class="op">-</span><span class="self">self</span>.<span class="number">0</span>)
}
}
<span class="kw">impl</span> <span class="ident">ops::Mul</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Duration</span> {
<span class="kw">type</span> <span class="ident">Output</span> <span class="op">=</span> <span class="ident">Duration</span>;