mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 530a9ee4e4
This commit is contained in:
parent
6bb20c4334
commit
0c6dd962f7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Tue, 22 Sep 2020 19:49:32 +0000";</pre><div class='docblock'><p>The built-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="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-3c7487281029702d/out/built.rs.html#49' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Tue, 22 Sep 2020 21:31:47 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `DashTab` enum in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, DashTab"><title>game::sandbox::dashboards::DashTab - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum DashTab</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.ActiveTraffic">ActiveTraffic</a><a href="#variant.CommuterPatterns">CommuterPatterns</a><a href="#variant.ParkingOverhead">ParkingOverhead</a><a href="#variant.TrafficSignals">TrafficSignals</a><a href="#variant.TransitRoutes">TransitRoutes</a><a href="#variant.TripSummaries">TripSummaries</a><a href="#variant.TripTable">TripTable</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.picker">picker</a><a href="#method.transition">transition</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-PartialEq%3CDashTab%3E">PartialEq<DashTab></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a href='index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'DashTab', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18-26' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a href='index.html'>dashboards</a>::<wbr><a class="enum" href=''>DashTab</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum DashTab {
|
||||
TripTable,
|
||||
<!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 `DashTab` enum in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, DashTab"><title>game::sandbox::dashboards::DashTab - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum DashTab</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.ActiveTraffic">ActiveTraffic</a><a href="#variant.CancelledTripTable">CancelledTripTable</a><a href="#variant.CommuterPatterns">CommuterPatterns</a><a href="#variant.FinishedTripTable">FinishedTripTable</a><a href="#variant.ParkingOverhead">ParkingOverhead</a><a href="#variant.TrafficSignals">TrafficSignals</a><a href="#variant.TransitRoutes">TransitRoutes</a><a href="#variant.TripSummaries">TripSummaries</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.picker">picker</a><a href="#method.transition">transition</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-PartialEq%3CDashTab%3E">PartialEq<DashTab></a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a href='index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'DashTab', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#19-28' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a href='index.html'>dashboards</a>::<wbr><a class="enum" href=''>DashTab</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum DashTab {
|
||||
FinishedTripTable,
|
||||
CancelledTripTable,
|
||||
TripSummaries,
|
||||
ParkingOverhead,
|
||||
ActiveTraffic,
|
||||
@ -8,9 +9,11 @@
|
||||
TrafficSignals,
|
||||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<div id="variant.TripTable" class="variant small-section-header"><a href="#variant.TripTable" class="anchor field"></a><code>TripTable</code></div><div id="variant.TripSummaries" class="variant small-section-header"><a href="#variant.TripSummaries" class="anchor field"></a><code>TripSummaries</code></div><div id="variant.ParkingOverhead" class="variant small-section-header"><a href="#variant.ParkingOverhead" class="anchor field"></a><code>ParkingOverhead</code></div><div id="variant.ActiveTraffic" class="variant small-section-header"><a href="#variant.ActiveTraffic" class="anchor field"></a><code>ActiveTraffic</code></div><div id="variant.TransitRoutes" class="variant small-section-header"><a href="#variant.TransitRoutes" class="anchor field"></a><code>TransitRoutes</code></div><div id="variant.CommuterPatterns" class="variant small-section-header"><a href="#variant.CommuterPatterns" class="anchor field"></a><code>CommuterPatterns</code></div><div id="variant.TrafficSignals" class="variant small-section-header"><a href="#variant.TrafficSignals" class="anchor field"></a><code>TrafficSignals</code></div><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#28-78' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.picker' class="method"><code>pub fn <a href='#method.picker' class='fnname'>picker</a>(self, ctx: &EventCtx, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Widget</code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#29-57' title='goto source code'>[src]</a></h4><h4 id='method.transition' class="method"><code>pub fn <a href='#method.transition' class='fnname'>transition</a>(<br> self, <br> ctx: &mut EventCtx, <br> app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="../../../game/game/enum.Transition.html" title="enum game::game::Transition">Transition</a></code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#59-77' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-PartialEq%3CDashTab%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a>> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-PartialEq%3CDashTab%3E' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#17' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
<div id="variant.FinishedTripTable" class="variant small-section-header"><a href="#variant.FinishedTripTable" class="anchor field"></a><code>FinishedTripTable</code></div><div id="variant.CancelledTripTable" class="variant small-section-header"><a href="#variant.CancelledTripTable" class="anchor field"></a><code>CancelledTripTable</code></div><div id="variant.TripSummaries" class="variant small-section-header"><a href="#variant.TripSummaries" class="anchor field"></a><code>TripSummaries</code></div><div id="variant.ParkingOverhead" class="variant small-section-header"><a href="#variant.ParkingOverhead" class="anchor field"></a><code>ParkingOverhead</code></div><div id="variant.ActiveTraffic" class="variant small-section-header"><a href="#variant.ActiveTraffic" class="anchor field"></a><code>ActiveTraffic</code></div><div id="variant.TransitRoutes" class="variant small-section-header"><a href="#variant.TransitRoutes" class="anchor field"></a><code>TransitRoutes</code></div><div id="variant.CommuterPatterns" class="variant small-section-header"><a href="#variant.CommuterPatterns" class="anchor field"></a><code>CommuterPatterns</code></div><div id="variant.TrafficSignals" class="variant small-section-header"><a href="#variant.TrafficSignals" class="anchor field"></a><code>TrafficSignals</code></div><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#30-85' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.picker' class="method"><code>pub fn <a href='#method.picker' class='fnname'>picker</a>(self, ctx: &EventCtx, app: &<a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> Widget</code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#31-59' title='goto source code'>[src]</a></h4><h4 id='method.transition' class="method"><code>pub fn <a href='#method.transition' class='fnname'>transition</a>(<br> self, <br> ctx: &mut EventCtx, <br> app: &mut <a class="struct" href="../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> action: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="../../../game/game/enum.Transition.html" title="enum game::game::Transition">Transition</a></code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#61-84' title='goto source code'>[src]</a></h4></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-PartialEq%3CDashTab%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a>> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-PartialEq%3CDashTab%3E' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#215-217' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#17' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#18' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-Downcast' class='impl'><code class='in-band'>impl<T> Downcast for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, </span></code><a href='#impl-Downcast' class='anchor'></a></h3><div class='impl-items'><h4 id='method.into_any' class="method hidden"><code>fn <a href='#method.into_any' class='fnname'>into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static></code></h4><div class='docblock hidden'><p>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <a href="#tymethod.into_any">Read more</a></p>
|
||||
@ -20,6 +23,10 @@
|
||||
</div></div><h3 id='impl-DowncastSync' class='impl'><code class='in-band'>impl<T> DowncastSync for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, </span></code><a href='#impl-DowncastSync' class='anchor'></a></h3><div class='impl-items'><h4 id='method.into_any_arc' class="method hidden"><code>fn <a href='#method.into_any_arc' class='fnname'>into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>></code></h4><div class='docblock hidden'><p>Convert <code>Arc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Arc<Any></code>. <code>Arc<Any></code> can then be further <code>downcast</code> into <code>Arc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>. <a href="#tymethod.into_any_arc">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#566-570' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#567-569' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#555-562' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#559-561' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id='method.to_owned' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id='method.clone_into' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#603-612' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#609-611' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589-598' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `preview_route` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, preview_route"><title>game::sandbox::dashboards::generic_trip_table::preview_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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>generic_trip_table</a></p><script>window.sidebarCurrent = {name: 'preview_route', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/generic_trip_table.rs.html#125-172' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>generic_trip_table</a>::<wbr><a class="fn" href=''>preview_route</a></span></h1><pre class='rust fn'>fn preview_route(g: &mut GfxCtx, app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, id: <a class="struct" href="../../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `preview_trip` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, preview_trip"><title>game::sandbox::dashboards::generic_trip_table::preview_trip - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>generic_trip_table</a></p><script>window.sidebarCurrent = {name: 'preview_trip', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/generic_trip_table.rs.html#94-123' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>generic_trip_table</a>::<wbr><a class="fn" href=''>preview_trip</a></span></h1><pre class='rust fn'>fn preview_trip(g: &mut GfxCtx, app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, panel: &Panel)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -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 `generic_trip_table` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, generic_trip_table"><title>game::sandbox::dashboards::generic_trip_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module generic_trip_table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'generic_trip_table', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/generic_trip_table.rs.html#1-172' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a class="mod" href=''>generic_trip_table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.GenericTripTable.html" title='game::sandbox::dashboards::generic_trip_table::GenericTripTable struct'>GenericTripTable</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.preview_route.html" title='game::sandbox::dashboards::generic_trip_table::preview_route fn'>preview_route</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.preview_trip.html" title='game::sandbox::dashboards::generic_trip_table::preview_trip fn'>preview_trip</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
initSidebarItems({"fn":[["preview_route",""],["preview_trip",""]],"struct":[["GenericTripTable",""]]});
|
File diff suppressed because one or more lines are too long
@ -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 `dashboards` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, dashboards"><title>game::sandbox::dashboards - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module dashboards</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a></p><script>window.sidebarCurrent = {name: 'dashboards', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#1-78' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a class="mod" href=''>dashboards</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use commuter::<a class="struct" href="../../../game/sandbox/dashboards/commuter/struct.CommuterPatterns.html" title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a>;</code></td></tr><tr><td><code>pub use traffic_signals::<a class="struct" href="../../../game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html" title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a>;</code></td></tr><tr><td><code>pub use trip_table::<a class="struct" href="../../../game/sandbox/dashboards/trip_table/struct.TripTable.html" title="struct game::sandbox::dashboards::trip_table::TripTable">TripTable</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="commuter/index.html" title='game::sandbox::dashboards::commuter mod'>commuter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="misc/index.html" title='game::sandbox::dashboards::misc mod'>misc</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="parking_overhead/index.html" title='game::sandbox::dashboards::parking_overhead mod'>parking_overhead</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="summaries/index.html" title='game::sandbox::dashboards::summaries mod'>summaries</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="table/index.html" title='game::sandbox::dashboards::table mod'>table</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="traffic_signals/index.html" title='game::sandbox::dashboards::traffic_signals mod'>traffic_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="trip_table/index.html" title='game::sandbox::dashboards::trip_table mod'>trip_table</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</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 `dashboards` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, dashboards"><title>game::sandbox::dashboards - 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="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module dashboards</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a></p><script>window.sidebarCurrent = {name: 'dashboards', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/sandbox/dashboards/mod.rs.html#1-85' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>sandbox</a>::<wbr><a class="mod" href=''>dashboards</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use commuter::<a class="struct" href="../../../game/sandbox/dashboards/commuter/struct.CommuterPatterns.html" title="struct game::sandbox::dashboards::commuter::CommuterPatterns">CommuterPatterns</a>;</code></td></tr><tr><td><code>pub use traffic_signals::<a class="struct" href="../../../game/sandbox/dashboards/traffic_signals/struct.TrafficSignalDemand.html" title="struct game::sandbox::dashboards::traffic_signals::TrafficSignalDemand">TrafficSignalDemand</a>;</code></td></tr><tr><td><code>pub use trip_table::<a class="struct" href="../../../game/sandbox/dashboards/trip_table/struct.FinishedTripTable.html" title="struct game::sandbox::dashboards::trip_table::FinishedTripTable">FinishedTripTable</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="commuter/index.html" title='game::sandbox::dashboards::commuter mod'>commuter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="generic_trip_table/index.html" title='game::sandbox::dashboards::generic_trip_table mod'>generic_trip_table</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="misc/index.html" title='game::sandbox::dashboards::misc mod'>misc</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="parking_overhead/index.html" title='game::sandbox::dashboards::parking_overhead mod'>parking_overhead</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="summaries/index.html" title='game::sandbox::dashboards::summaries mod'>summaries</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="table/index.html" title='game::sandbox::dashboards::table mod'>table</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="traffic_signals/index.html" title='game::sandbox::dashboards::traffic_signals mod'>traffic_signals</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="trip_table/index.html" title='game::sandbox::dashboards::trip_table mod'>trip_table</a></td><td class='docblock-short'></td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table><tr class='module-item'><td><a class="enum" href="enum.DashTab.html" title='game::sandbox::dashboards::DashTab enum'>DashTab</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel"><title>game::sandbox::dashboards::parking_overhead::make_panel - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'make_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#217-250' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>make_panel</a></span></h1><pre class='rust fn'>fn make_panel(<br> ctx: &mut EventCtx, <br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> table: &<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel"><title>game::sandbox::dashboards::parking_overhead::make_panel - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'make_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#158-191' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>make_panel</a></span></h1><pre class='rust fn'>fn make_panel(<br> ctx: &mut EventCtx, <br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> table: &<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>game::sandbox::dashboards::parking_overhead::make_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'make_table', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#154-215' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>game::sandbox::dashboards::parking_overhead::make_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'make_table', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#95-156' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>, <a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Filters.html" title="struct game::sandbox::dashboards::parking_overhead::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `produce_raw_data` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, produce_raw_data"><title>game::sandbox::dashboards::parking_overhead::produce_raw_data - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'produce_raw_data', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#96-152' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>produce_raw_data</a></span></h1><pre class='rust fn'>fn produce_raw_data(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!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 `produce_raw_data` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, produce_raw_data"><title>game::sandbox::dashboards::parking_overhead::produce_raw_data - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'produce_raw_data', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#37-93' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="fn" href=''>produce_raw_data</a></span></h1><pre class='rust fn'>fn produce_raw_data(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/parking_overhead/struct.Entry.html" title="struct game::sandbox::dashboards::parking_overhead::Entry">Entry</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `parking_overhead` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parking_overhead"><title>game::sandbox::dashboards::parking_overhead - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module parking_overhead</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'parking_overhead', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#1-250' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a class="mod" href=''>parking_overhead</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `parking_overhead` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, parking_overhead"><title>game::sandbox::dashboards::parking_overhead - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module parking_overhead</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'parking_overhead', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#1-191' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a class="mod" href=''>parking_overhead</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Entry.html" title='game::sandbox::dashboards::parking_overhead::Entry struct'>Entry</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filters.html" title='game::sandbox::dashboards::parking_overhead::Filters struct'>Filters</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.ParkingOverhead.html" title='game::sandbox::dashboards::parking_overhead::ParkingOverhead struct'>ParkingOverhead</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.make_panel.html" title='game::sandbox::dashboards::parking_overhead::make_panel fn'>make_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_table.html" title='game::sandbox::dashboards::parking_overhead::make_table fn'>make_table</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.produce_raw_data.html" title='game::sandbox::dashboards::parking_overhead::produce_raw_data fn'>produce_raw_data</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Entry` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Entry"><title>game::sandbox::dashboards::parking_overhead::Entry - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Entry</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.driving_duration">driving_duration</a><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.parking_duration">parking_duration</a><a href="#structfield.percent_overhead">percent_overhead</a><a href="#structfield.starts_off_map">starts_off_map</a><a href="#structfield.total_duration">total_duration</a><a href="#structfield.trip">trip</a><a href="#structfield.walking_duration">walking_duration</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'Entry', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#80-89' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="struct" href=''>Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Entry {
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Entry` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Entry"><title>game::sandbox::dashboards::parking_overhead::Entry - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Entry</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.driving_duration">driving_duration</a><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.parking_duration">parking_duration</a><a href="#structfield.percent_overhead">percent_overhead</a><a href="#structfield.starts_off_map">starts_off_map</a><a href="#structfield.total_duration">total_duration</a><a href="#structfield.trip">trip</a><a href="#structfield.walking_duration">walking_duration</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'Entry', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#21-30' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="struct" href=''>Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Entry {
|
||||
trip: <a class="struct" href="../../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>,
|
||||
total_duration: <a class="struct" href="../../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>,
|
||||
driving_duration: <a class="struct" href="../../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>,
|
||||
|
@ -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 `Filters` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Filters"><title>game::sandbox::dashboards::parking_overhead::Filters - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Filters</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.starts_off_map">starts_off_map</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'Filters', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#91-94' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="struct" href=''>Filters</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Filters {
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Filters` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Filters"><title>game::sandbox::dashboards::parking_overhead::Filters - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Filters</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.starts_off_map">starts_off_map</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a></p><script>window.sidebarCurrent = {name: 'Filters', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/parking_overhead.rs.html#32-35' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>parking_overhead</a>::<wbr><a class="struct" href=''>Filters</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Filters {
|
||||
starts_off_map: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
ends_off_map: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["DashTab",""]],"mod":[["commuter",""],["misc",""],["parking_overhead",""],["summaries",""],["table",""],["traffic_signals",""],["trip_table",""]]});
|
||||
initSidebarItems({"enum":[["DashTab",""]],"mod":[["commuter",""],["generic_trip_table",""],["misc",""],["parking_overhead",""],["summaries",""],["table",""],["traffic_signals",""],["trip_table",""]]});
|
@ -1 +0,0 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel"><title>game::sandbox::dashboards::trip_table::make_panel - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#412-460' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_panel</a></span></h1><pre class='rust fn'>fn make_panel(<br> ctx: &mut EventCtx, <br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> table: &<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel_cancelled_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel_cancelled_trips"><title>game::sandbox::dashboards::trip_table::make_panel_cancelled_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_panel_cancelled_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#500-549' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_panel_cancelled_trips</a></span></h1><pre class='rust fn'>fn make_panel_cancelled_trips(<br> ctx: &mut EventCtx, <br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> table: &<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel_finished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel_finished_trips"><title>game::sandbox::dashboards::trip_table::make_panel_finished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_panel_finished_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#445-497' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_panel_finished_trips</a></span></h1><pre class='rust fn'>fn make_panel_finished_trips(<br> ctx: &mut EventCtx, <br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br> table: &<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_cancelled_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_cancelled_trips"><title>game::sandbox::dashboards::trip_table::make_table_cancelled_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_table_cancelled_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#364-443' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_table_cancelled_trips</a></span></h1><pre class='rust fn'>fn make_table_cancelled_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_finished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_finished_trips"><title>game::sandbox::dashboards::trip_table::make_table_finished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_table_finished_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#196-410' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_table_finished_trips</a></span></h1><pre class='rust fn'>fn make_table_finished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table_finished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table_finished_trips"><title>game::sandbox::dashboards::trip_table::make_table_finished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'make_table_finished_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#148-362' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>make_table_finished_trips</a></span></h1><pre class='rust fn'>fn make_table_finished_trips(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +0,0 @@
|
||||
<!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 `preview_route` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, preview_route"><title>game::sandbox::dashboards::trip_table::preview_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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'preview_route', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#493-540' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>preview_route</a></span></h1><pre class='rust fn'>fn preview_route(g: &mut GfxCtx, app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, id: <a class="struct" href="../../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +0,0 @@
|
||||
<!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 `preview_trip` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, preview_trip"><title>game::sandbox::dashboards::trip_table::preview_trip - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'preview_trip', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#462-491' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>preview_trip</a></span></h1><pre class='rust fn'>pub fn preview_trip(g: &mut GfxCtx, app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, panel: &Panel)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `produce_raw_data` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, produce_raw_data"><title>game::sandbox::dashboards::trip_table::produce_raw_data - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'produce_raw_data', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#122-194' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>produce_raw_data</a></span></h1><pre class='rust fn'>fn produce_raw_data(<br> app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.UnfinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::UnfinishedTrip">UnfinishedTrip</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!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 `produce_raw_data` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, produce_raw_data"><title>game::sandbox::dashboards::trip_table::produce_raw_data - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'produce_raw_data', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#82-146' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="fn" href=''>produce_raw_data</a></span></h1><pre class='rust fn'>fn produce_raw_data(app: &<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.FinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::FinishedTrip">FinishedTrip</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.CancelledTrip.html" title="struct game::sandbox::dashboards::trip_table::CancelledTrip">CancelledTrip</a>><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,3 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `trip_table` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip_table"><title>game::sandbox::dashboards::trip_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module trip_table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'trip_table', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-540' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a class="mod" href=''>trip_table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.CancelledTrip.html" title='game::sandbox::dashboards::trip_table::CancelledTrip struct'>CancelledTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filters.html" title='game::sandbox::dashboards::trip_table::Filters struct'>Filters</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FinishedTrip.html" title='game::sandbox::dashboards::trip_table::FinishedTrip struct'>FinishedTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.TripTable.html" title='game::sandbox::dashboards::trip_table::TripTable struct'>TripTable</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.UnfinishedTrip.html" title='game::sandbox::dashboards::trip_table::UnfinishedTrip struct'>UnfinishedTrip</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.make_panel.html" title='game::sandbox::dashboards::trip_table::make_panel fn'>make_panel</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_table_finished_trips.html" title='game::sandbox::dashboards::trip_table::make_table_finished_trips fn'>make_table_finished_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.preview_route.html" title='game::sandbox::dashboards::trip_table::preview_route fn'>preview_route</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.preview_trip.html" title='game::sandbox::dashboards::trip_table::preview_trip fn'>preview_trip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.produce_raw_data.html" title='game::sandbox::dashboards::trip_table::produce_raw_data fn'>produce_raw_data</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `trip_table` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip_table"><title>game::sandbox::dashboards::trip_table - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module trip_table</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a></p><script>window.sidebarCurrent = {name: 'trip_table', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-549' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a class="mod" href=''>trip_table</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.CancelledTrip.html" title='game::sandbox::dashboards::trip_table::CancelledTrip struct'>CancelledTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.CancelledTripTable.html" title='game::sandbox::dashboards::trip_table::CancelledTripTable struct'>CancelledTripTable</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filters.html" title='game::sandbox::dashboards::trip_table::Filters struct'>Filters</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FinishedTrip.html" title='game::sandbox::dashboards::trip_table::FinishedTrip struct'>FinishedTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.FinishedTripTable.html" title='game::sandbox::dashboards::trip_table::FinishedTripTable struct'>FinishedTripTable</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.make_panel_cancelled_trips.html" title='game::sandbox::dashboards::trip_table::make_panel_cancelled_trips fn'>make_panel_cancelled_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_panel_finished_trips.html" title='game::sandbox::dashboards::trip_table::make_panel_finished_trips fn'>make_panel_finished_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_table_cancelled_trips.html" title='game::sandbox::dashboards::trip_table::make_table_cancelled_trips fn'>make_table_cancelled_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_table_finished_trips.html" title='game::sandbox::dashboards::trip_table::make_table_finished_trips fn'>make_table_finished_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.produce_raw_data.html" title='game::sandbox::dashboards::trip_table::produce_raw_data fn'>produce_raw_data</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["make_panel",""],["make_table_finished_trips",""],["preview_route",""],["preview_trip",""],["produce_raw_data",""]],"struct":[["CancelledTrip",""],["Filters",""],["FinishedTrip",""],["TripTable",""],["UnfinishedTrip",""]]});
|
||||
initSidebarItems({"fn":[["make_panel_cancelled_trips",""],["make_panel_finished_trips",""],["make_table_cancelled_trips",""],["make_table_finished_trips",""],["produce_raw_data",""]],"struct":[["CancelledTrip",""],["CancelledTripTable",""],["Filters",""],["FinishedTrip",""],["FinishedTripTable",""]]});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 `Filters` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Filters"><title>game::sandbox::dashboards::trip_table::Filters - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Filters</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.capped_trips">capped_trips</a><a href="#structfield.modes">modes</a><a href="#structfield.modified_trips">modified_trips</a><a href="#structfield.off_map_ends">off_map_ends</a><a href="#structfield.off_map_starts">off_map_starts</a><a href="#structfield.uncapped_trips">uncapped_trips</a><a href="#structfield.unmodified_trips">unmodified_trips</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'Filters', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#112-120' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="struct" href=''>Filters</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Filters {
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Filters` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, Filters"><title>game::sandbox::dashboards::trip_table::Filters - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Filters</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.capped_trips">capped_trips</a><a href="#structfield.modes">modes</a><a href="#structfield.modified_trips">modified_trips</a><a href="#structfield.off_map_ends">off_map_ends</a><a href="#structfield.off_map_starts">off_map_starts</a><a href="#structfield.uncapped_trips">uncapped_trips</a><a href="#structfield.unmodified_trips">unmodified_trips</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'Filters', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#72-80' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="struct" href=''>Filters</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Filters {
|
||||
modes: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="enum" href="../../../../sim/trips/enum.TripMode.html" title="enum sim::trips::TripMode">TripMode</a>>,
|
||||
off_map_starts: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
off_map_ends: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
|
@ -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 `FinishedTrip` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, FinishedTrip"><title>game::sandbox::dashboards::trip_table::FinishedTrip - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct FinishedTrip</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.capped">capped</a><a href="#structfield.departure">departure</a><a href="#structfield.duration_after">duration_after</a><a href="#structfield.duration_before">duration_before</a><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.id">id</a><a href="#structfield.mode">mode</a><a href="#structfield.modified">modified</a><a href="#structfield.percent_waiting">percent_waiting</a><a href="#structfield.starts_off_map">starts_off_map</a><a href="#structfield.waiting">waiting</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'FinishedTrip', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#85-97' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="struct" href=''>FinishedTrip</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct FinishedTrip {
|
||||
<!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 `FinishedTrip` struct in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, FinishedTrip"><title>game::sandbox::dashboards::trip_table::FinishedTrip - 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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct FinishedTrip</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.capped">capped</a><a href="#structfield.departure">departure</a><a href="#structfield.duration_after">duration_after</a><a href="#structfield.duration_before">duration_before</a><a href="#structfield.ends_off_map">ends_off_map</a><a href="#structfield.id">id</a><a href="#structfield.mode">mode</a><a href="#structfield.modified">modified</a><a href="#structfield.percent_waiting">percent_waiting</a><a href="#structfield.starts_off_map">starts_off_map</a><a href="#structfield.waiting">waiting</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a></p><script>window.sidebarCurrent = {name: 'FinishedTrip', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#41-53' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>sandbox</a>::<wbr><a href='../index.html'>dashboards</a>::<wbr><a href='index.html'>trip_table</a>::<wbr><a class="struct" href=''>FinishedTrip</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct FinishedTrip {
|
||||
id: <a class="struct" href="../../../../sim/struct.TripID.html" title="struct sim::TripID">TripID</a>,
|
||||
mode: <a class="enum" href="../../../../sim/trips/enum.TripMode.html" title="enum sim::trips::TripMode">TripMode</a>,
|
||||
modified: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 `sandbox` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, sandbox"><title>game::sandbox - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module sandbox</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'sandbox', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/sandbox/mod.rs.html#1-518' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>sandbox</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</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 `sandbox` mod in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, sandbox"><title>game::sandbox - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../game/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module sandbox</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>game</a></p><script>window.sidebarCurrent = {name: 'sandbox', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/game/sandbox/mod.rs.html#1-520' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>game</a>::<wbr><a class="mod" href=''>sandbox</a></span></h1><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use gameplay::<a class="fn" href="../../game/sandbox/gameplay/freeform/fn.spawn_agents_around.html" title="fn game::sandbox::gameplay::freeform::spawn_agents_around">spawn_agents_around</a>;</code></td></tr><tr><td><code>pub use gameplay::<a class="enum" href="../../game/sandbox/gameplay/enum.GameplayMode.html" title="enum game::sandbox::gameplay::GameplayMode">GameplayMode</a>;</code></td></tr><tr><td><code>pub use gameplay::<a class="struct" href="../../game/sandbox/gameplay/tutorial/struct.TutorialPointer.html" title="struct game::sandbox::gameplay::tutorial::TutorialPointer">TutorialPointer</a>;</code></td></tr><tr><td><code>pub use gameplay::<a class="struct" href="../../game/sandbox/gameplay/tutorial/struct.TutorialState.html" title="struct game::sandbox::gameplay::tutorial::TutorialState">TutorialState</a>;</code></td></tr><tr><td><code>pub use speed::<a class="struct" href="../../game/sandbox/speed/struct.SpeedControls.html" title="struct game::sandbox::speed::SpeedControls">SpeedControls</a>;</code></td></tr><tr><td><code>pub use speed::<a class="struct" href="../../game/sandbox/speed/struct.TimePanel.html" title="struct game::sandbox::speed::TimePanel">TimePanel</a>;</code></td></tr><tr><td><code>pub use time_warp::<a class="struct" href="../../game/sandbox/time_warp/struct.TimeWarpScreen.html" title="struct game::sandbox::time_warp::TimeWarpScreen">TimeWarpScreen</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="dashboards/index.html" title='game::sandbox::dashboards mod'>dashboards</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="gameplay/index.html" title='game::sandbox::gameplay mod'>gameplay</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="misc_tools/index.html" title='game::sandbox::misc_tools mod'>misc_tools</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="speed/index.html" title='game::sandbox::speed mod'>speed</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="time_warp/index.html" title='game::sandbox::time_warp mod'>time_warp</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="mod" href="uber_turns/index.html" title='game::sandbox::uber_turns mod'>uber_turns</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.Actions.html" title='game::sandbox::Actions struct'>Actions</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.AgentMeter.html" title='game::sandbox::AgentMeter struct'>AgentMeter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.BackToMainMenu.html" title='game::sandbox::BackToMainMenu struct'>BackToMainMenu</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SandboxControls.html" title='game::sandbox::SandboxControls struct'>SandboxControls</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.SandboxMode.html" title='game::sandbox::SandboxMode struct'>SandboxMode</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@ sourcesIndex["abstutil"] = {"name":"","files":["cli.rs","collections.rs","io.rs"
|
||||
sourcesIndex["convert_osm"] = {"name":"","files":["clip.rs","extract.rs","lib.rs","parking.rs","reader.rs","split_ways.rs","srtm.rs","transit.rs"]};
|
||||
sourcesIndex["dump_map"] = {"name":"","files":["dump_map.rs"]};
|
||||
sourcesIndex["dump_scenario"] = {"name":"","files":["dump_scenario.rs"]};
|
||||
sourcesIndex["game"] = {"name":"","dirs":[{"name":"common","files":["city_picker.rs","colors.rs","heatmap.rs","isochrone.rs","minimap.rs","mod.rs","navigate.rs","warp.rs"]},{"name":"debug","files":["floodfill.rs","mod.rs","objects.rs","polygons.rs","shared_row.rs"]},{"name":"devtools","files":["destinations.rs","kml.rs","mapping.rs","mod.rs","polygon.rs","scenario.rs","story.rs"]},{"name":"edit","dirs":[{"name":"traffic_signals","files":["edits.rs","mod.rs","offsets.rs","picker.rs","preview.rs"]}],"files":["bulk.rs","cluster_traffic_signals.rs","lanes.rs","mod.rs","routes.rs","select.rs","stop_signs.rs","validate.rs","zones.rs"]},{"name":"info","files":["building.rs","bus.rs","debug.rs","intersection.rs","lane.rs","mod.rs","parking_lot.rs","person.rs","trip.rs"]},{"name":"layer","files":["elevation.rs","map.rs","mod.rs","pandemic.rs","parking.rs","population.rs","traffic.rs","transit.rs"]},{"name":"render","files":["area.rs","bike.rs","building.rs","bus_stop.rs","car.rs","intersection.rs","lane.rs","map.rs","mod.rs","parking_lot.rs","pedestrian.rs","road.rs","traffic_signal.rs","turn.rs"]},{"name":"sandbox","dirs":[{"name":"dashboards","files":["commuter.rs","misc.rs","mod.rs","parking_overhead.rs","summaries.rs","table.rs","traffic_signals.rs","trip_table.rs"]},{"name":"gameplay","files":["commute.rs","fix_traffic_signals.rs","freeform.rs","mod.rs","play_scenario.rs","tutorial.rs"]}],"files":["misc_tools.rs","mod.rs","speed.rs","time_warp.rs","uber_turns.rs"]}],"files":["app.rs","challenges.rs","colors.rs","cutscene.rs","game.rs","helpers.rs","main.rs","options.rs","pregame.rs"]};
|
||||
sourcesIndex["game"] = {"name":"","dirs":[{"name":"common","files":["city_picker.rs","colors.rs","heatmap.rs","isochrone.rs","minimap.rs","mod.rs","navigate.rs","warp.rs"]},{"name":"debug","files":["floodfill.rs","mod.rs","objects.rs","polygons.rs","shared_row.rs"]},{"name":"devtools","files":["destinations.rs","kml.rs","mapping.rs","mod.rs","polygon.rs","scenario.rs","story.rs"]},{"name":"edit","dirs":[{"name":"traffic_signals","files":["edits.rs","mod.rs","offsets.rs","picker.rs","preview.rs"]}],"files":["bulk.rs","cluster_traffic_signals.rs","lanes.rs","mod.rs","routes.rs","select.rs","stop_signs.rs","validate.rs","zones.rs"]},{"name":"info","files":["building.rs","bus.rs","debug.rs","intersection.rs","lane.rs","mod.rs","parking_lot.rs","person.rs","trip.rs"]},{"name":"layer","files":["elevation.rs","map.rs","mod.rs","pandemic.rs","parking.rs","population.rs","traffic.rs","transit.rs"]},{"name":"render","files":["area.rs","bike.rs","building.rs","bus_stop.rs","car.rs","intersection.rs","lane.rs","map.rs","mod.rs","parking_lot.rs","pedestrian.rs","road.rs","traffic_signal.rs","turn.rs"]},{"name":"sandbox","dirs":[{"name":"dashboards","files":["commuter.rs","generic_trip_table.rs","misc.rs","mod.rs","parking_overhead.rs","summaries.rs","table.rs","traffic_signals.rs","trip_table.rs"]},{"name":"gameplay","files":["commute.rs","fix_traffic_signals.rs","freeform.rs","mod.rs","play_scenario.rs","tutorial.rs"]}],"files":["misc_tools.rs","mod.rs","speed.rs","time_warp.rs","uber_turns.rs"]}],"files":["app.rs","challenges.rs","colors.rs","cutscene.rs","game.rs","helpers.rs","main.rs","options.rs","pregame.rs"]};
|
||||
sourcesIndex["geojson_to_osmosis"] = {"name":"","files":["geojson_to_osmosis.rs"]};
|
||||
sourcesIndex["geom"] = {"name":"","files":["angle.rs","bounds.rs","circle.rs","distance.rs","duration.rs","find_closest.rs","gps.rs","lib.rs","line.rs","percent.rs","polygon.rs","polyline.rs","pt.rs","ring.rs","speed.rs","stats.rs","time.rs"]};
|
||||
sourcesIndex["headless"] = {"name":"","files":["main.rs"]};
|
||||
|
@ -111,7 +111,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.46.0 (04488afe3 2020-08-24)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Tue, 22 Sep 2020 19:49:32 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Tue, 22 Sep 2020 21:31:47 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
347
rustdoc/src/game/sandbox/dashboards/generic_trip_table.rs.html
Normal file
347
rustdoc/src/game/sandbox/dashboards/generic_trip_table.rs.html
Normal file
@ -0,0 +1,347 @@
|
||||
<!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="Source to the Rust file `game/src/sandbox/dashboards/generic_trip_table.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>generic_trip_table.rs.html -- source</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="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../game/index.html'><div class='logo-container'><img src='../../../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
<span id="5"> 5</span>
|
||||
<span id="6"> 6</span>
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10"> 10</span>
|
||||
<span id="11"> 11</span>
|
||||
<span id="12"> 12</span>
|
||||
<span id="13"> 13</span>
|
||||
<span id="14"> 14</span>
|
||||
<span id="15"> 15</span>
|
||||
<span id="16"> 16</span>
|
||||
<span id="17"> 17</span>
|
||||
<span id="18"> 18</span>
|
||||
<span id="19"> 19</span>
|
||||
<span id="20"> 20</span>
|
||||
<span id="21"> 21</span>
|
||||
<span id="22"> 22</span>
|
||||
<span id="23"> 23</span>
|
||||
<span id="24"> 24</span>
|
||||
<span id="25"> 25</span>
|
||||
<span id="26"> 26</span>
|
||||
<span id="27"> 27</span>
|
||||
<span id="28"> 28</span>
|
||||
<span id="29"> 29</span>
|
||||
<span id="30"> 30</span>
|
||||
<span id="31"> 31</span>
|
||||
<span id="32"> 32</span>
|
||||
<span id="33"> 33</span>
|
||||
<span id="34"> 34</span>
|
||||
<span id="35"> 35</span>
|
||||
<span id="36"> 36</span>
|
||||
<span id="37"> 37</span>
|
||||
<span id="38"> 38</span>
|
||||
<span id="39"> 39</span>
|
||||
<span id="40"> 40</span>
|
||||
<span id="41"> 41</span>
|
||||
<span id="42"> 42</span>
|
||||
<span id="43"> 43</span>
|
||||
<span id="44"> 44</span>
|
||||
<span id="45"> 45</span>
|
||||
<span id="46"> 46</span>
|
||||
<span id="47"> 47</span>
|
||||
<span id="48"> 48</span>
|
||||
<span id="49"> 49</span>
|
||||
<span id="50"> 50</span>
|
||||
<span id="51"> 51</span>
|
||||
<span id="52"> 52</span>
|
||||
<span id="53"> 53</span>
|
||||
<span id="54"> 54</span>
|
||||
<span id="55"> 55</span>
|
||||
<span id="56"> 56</span>
|
||||
<span id="57"> 57</span>
|
||||
<span id="58"> 58</span>
|
||||
<span id="59"> 59</span>
|
||||
<span id="60"> 60</span>
|
||||
<span id="61"> 61</span>
|
||||
<span id="62"> 62</span>
|
||||
<span id="63"> 63</span>
|
||||
<span id="64"> 64</span>
|
||||
<span id="65"> 65</span>
|
||||
<span id="66"> 66</span>
|
||||
<span id="67"> 67</span>
|
||||
<span id="68"> 68</span>
|
||||
<span id="69"> 69</span>
|
||||
<span id="70"> 70</span>
|
||||
<span id="71"> 71</span>
|
||||
<span id="72"> 72</span>
|
||||
<span id="73"> 73</span>
|
||||
<span id="74"> 74</span>
|
||||
<span id="75"> 75</span>
|
||||
<span id="76"> 76</span>
|
||||
<span id="77"> 77</span>
|
||||
<span id="78"> 78</span>
|
||||
<span id="79"> 79</span>
|
||||
<span id="80"> 80</span>
|
||||
<span id="81"> 81</span>
|
||||
<span id="82"> 82</span>
|
||||
<span id="83"> 83</span>
|
||||
<span id="84"> 84</span>
|
||||
<span id="85"> 85</span>
|
||||
<span id="86"> 86</span>
|
||||
<span id="87"> 87</span>
|
||||
<span id="88"> 88</span>
|
||||
<span id="89"> 89</span>
|
||||
<span id="90"> 90</span>
|
||||
<span id="91"> 91</span>
|
||||
<span id="92"> 92</span>
|
||||
<span id="93"> 93</span>
|
||||
<span id="94"> 94</span>
|
||||
<span id="95"> 95</span>
|
||||
<span id="96"> 96</span>
|
||||
<span id="97"> 97</span>
|
||||
<span id="98"> 98</span>
|
||||
<span id="99"> 99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
<span id="102">102</span>
|
||||
<span id="103">103</span>
|
||||
<span id="104">104</span>
|
||||
<span id="105">105</span>
|
||||
<span id="106">106</span>
|
||||
<span id="107">107</span>
|
||||
<span id="108">108</span>
|
||||
<span id="109">109</span>
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
<span id="127">127</span>
|
||||
<span id="128">128</span>
|
||||
<span id="129">129</span>
|
||||
<span id="130">130</span>
|
||||
<span id="131">131</span>
|
||||
<span id="132">132</span>
|
||||
<span id="133">133</span>
|
||||
<span id="134">134</span>
|
||||
<span id="135">135</span>
|
||||
<span id="136">136</span>
|
||||
<span id="137">137</span>
|
||||
<span id="138">138</span>
|
||||
<span id="139">139</span>
|
||||
<span id="140">140</span>
|
||||
<span id="141">141</span>
|
||||
<span id="142">142</span>
|
||||
<span id="143">143</span>
|
||||
<span id="144">144</span>
|
||||
<span id="145">145</span>
|
||||
<span id="146">146</span>
|
||||
<span id="147">147</span>
|
||||
<span id="148">148</span>
|
||||
<span id="149">149</span>
|
||||
<span id="150">150</span>
|
||||
<span id="151">151</span>
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
<span id="154">154</span>
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<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>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::{<span class="ident">DrawBaselayer</span>, <span class="ident">State</span>, <span class="ident">Transition</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">helpers</span>::<span class="ident">color_for_trip_phase</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">info</span>::{<span class="ident">OpenTrip</span>, <span class="ident">Tab</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">table</span>::<span class="ident">Table</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">DashTab</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">SandboxMode</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Pt2D</span>};
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">TripEndpoint</span>, <span class="ident">TripID</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Color</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>, <span class="ident">ScreenPt</span>};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">GenericTripTable</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span>, <span class="ident">P</span>: <span class="lifetime">'static</span> <span class="op">+</span> <span class="ident">Fn</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="kw-2">&</span><span class="ident">App</span>, <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span><span class="op">></span> {
|
||||
<span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span><span class="op">></span>,
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
<span class="ident">make_panel</span>: <span class="ident">P</span>,
|
||||
<span class="ident">tab</span>: <span class="ident">DashTab</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">T</span>: <span class="lifetime">'static</span>, <span class="ident">F</span>: <span class="lifetime">'static</span>, <span class="ident">P</span>: <span class="lifetime">'static</span> <span class="op">+</span> <span class="ident">Fn</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="kw-2">&</span><span class="ident">App</span>, <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span><span class="op">></span>
|
||||
<span class="ident">GenericTripTable</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span>, <span class="ident">P</span><span class="op">></span>
|
||||
{
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||
<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>,
|
||||
<span class="ident">tab</span>: <span class="ident">DashTab</span>,
|
||||
<span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span><span class="op">></span>,
|
||||
<span class="ident">make_panel</span>: <span class="ident">P</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> (<span class="ident">make_panel</span>)(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">table</span>);
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">GenericTripTable</span> {
|
||||
<span class="ident">table</span>,
|
||||
<span class="ident">panel</span>,
|
||||
<span class="ident">make_panel</span>,
|
||||
<span class="ident">tab</span>,
|
||||
})
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">recalc</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">new</span> <span class="op">=</span> (<span class="self">self</span>.<span class="ident">make_panel</span>)(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">table</span>);
|
||||
<span class="ident">new</span>.<span class="ident">restore</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">new</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span><span class="op"><</span><span class="ident">T</span>: <span class="lifetime">'static</span>, <span class="ident">F</span>: <span class="lifetime">'static</span>, <span class="ident">P</span>: <span class="lifetime">'static</span> <span class="op">+</span> <span class="ident">Fn</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="kw-2">&</span><span class="ident">App</span>, <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span><span class="op">></span> <span class="ident">State</span>
|
||||
<span class="kw">for</span> <span class="ident">GenericTripTable</span><span class="op"><</span><span class="ident">T</span>, <span class="ident">F</span>, <span class="ident">P</span><span class="op">></span>
|
||||
{
|
||||
<span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">table</span>.<span class="ident">clicked</span>(<span class="kw-2">&</span><span class="ident">x</span>) {
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>() {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">TripID</span>(<span class="ident">idx</span>);
|
||||
<span class="kw">let</span> <span class="ident">person</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_to_person</span>(<span class="ident">trip</span>);
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Multi</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
<span class="ident">Transition</span>::<span class="ident">ModifyState</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="kw">move</span> <span class="op">|</span><span class="ident">state</span>, <span class="ident">ctx</span>, <span class="ident">app</span><span class="op">|</span> {
|
||||
<span class="kw">let</span> <span class="ident">sandbox</span> <span class="op">=</span> <span class="ident">state</span>.<span class="ident">downcast_mut</span>::<span class="op"><</span><span class="ident">SandboxMode</span><span class="op">></span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">actions</span> <span class="op">=</span> <span class="ident">sandbox</span>.<span class="ident">contextual_actions</span>();
|
||||
<span class="ident">sandbox</span>.<span class="ident">controls</span>.<span class="ident">common</span>.<span class="ident">as_mut</span>().<span class="ident">unwrap</span>().<span class="ident">launch_info_panel</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
<span class="ident">Tab</span>::<span class="ident">PersonTrips</span>(<span class="ident">person</span>, <span class="ident">OpenTrip</span>::<span class="ident">single</span>(<span class="ident">trip</span>)),
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">actions</span>,
|
||||
);
|
||||
})),
|
||||
]);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">return</span> <span class="self">self</span>.<span class="ident">tab</span>.<span class="ident">transition</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">x</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">Outcome</span>::<span class="ident">Changed</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">table</span>.<span class="ident">panel_changed</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||
}
|
||||
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw_baselayer</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">DrawBaselayer</span> {
|
||||
<span class="ident">DrawBaselayer</span>::<span class="ident">Custom</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="ident">g</span>.<span class="ident">clear</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">dialog_bg</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="ident">preview_trip</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">preview_trip</span>(<span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>, <span class="ident">panel</span>: <span class="kw-2">&</span><span class="ident">Panel</span>) {
|
||||
<span class="kw">let</span> <span class="ident">inner_rect</span> <span class="op">=</span> <span class="ident">panel</span>.<span class="ident">rect_of</span>(<span class="string">"preview"</span>).<span class="ident">clone</span>();
|
||||
<span class="kw">let</span> <span class="ident">map_bounds</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_bounds</span>().<span class="ident">clone</span>();
|
||||
<span class="kw">let</span> <span class="ident">zoom</span> <span class="op">=</span> <span class="number">0.15</span> <span class="op">*</span> <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span> <span class="op">/</span> <span class="ident">map_bounds</span>.<span class="ident">width</span>().<span class="ident">max</span>(<span class="ident">map_bounds</span>.<span class="ident">height</span>());
|
||||
<span class="ident">g</span>.<span class="ident">fork</span>(
|
||||
<span class="ident">Pt2D</span>::<span class="ident">new</span>(<span class="ident">map_bounds</span>.<span class="ident">min_x</span>, <span class="ident">map_bounds</span>.<span class="ident">min_y</span>),
|
||||
<span class="ident">ScreenPt</span>::<span class="ident">new</span>(<span class="ident">inner_rect</span>.<span class="ident">x1</span>, <span class="ident">inner_rect</span>.<span class="ident">y1</span>),
|
||||
<span class="ident">zoom</span>,
|
||||
<span class="prelude-val">None</span>,
|
||||
);
|
||||
<span class="ident">g</span>.<span class="ident">enable_clipping</span>(<span class="ident">inner_rect</span>);
|
||||
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">draw_map</span>.<span class="ident">boundary_polygon</span>);
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">draw_map</span>.<span class="ident">draw_all_areas</span>);
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(
|
||||
<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>
|
||||
.<span class="ident">draw_map</span>
|
||||
.<span class="ident">draw_all_unzoomed_roads_and_intersections</span>,
|
||||
);
|
||||
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">x</span>) <span class="op">=</span> <span class="ident">panel</span>.<span class="ident">currently_hovering</span>() {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>() {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">TripID</span>(<span class="ident">idx</span>);
|
||||
<span class="ident">preview_route</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="ident">trip</span>).<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="ident">g</span>.<span class="ident">disable_clipping</span>();
|
||||
<span class="ident">g</span>.<span class="ident">unfork</span>();
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">preview_route</span>(<span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>, <span class="ident">id</span>: <span class="ident">TripID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">p</span> <span class="kw">in</span> <span class="ident">app</span>
|
||||
.<span class="ident">primary</span>
|
||||
.<span class="ident">sim</span>
|
||||
.<span class="ident">get_analytics</span>()
|
||||
.<span class="ident">get_trip_phases</span>(<span class="ident">id</span>, <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>)
|
||||
{
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">dist</span>, <span class="kw-2">ref</span> <span class="ident">path</span>)) <span class="op">=</span> <span class="ident">p</span>.<span class="ident">path</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">trace</span>) <span class="op">=</span> <span class="ident">path</span>.<span class="ident">trace</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="ident">dist</span>, <span class="prelude-val">None</span>) {
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(
|
||||
<span class="ident">color_for_trip_phase</span>(<span class="ident">app</span>, <span class="ident">p</span>.<span class="ident">phase_type</span>),
|
||||
<span class="ident">trace</span>.<span class="ident">make_polygons</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">20.0</span>)),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_info</span>(<span class="ident">id</span>);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#CC4121"</span>),
|
||||
))
|
||||
.<span class="ident">centered_on</span>(<span class="kw">match</span> <span class="ident">trip</span>.<span class="ident">start</span> {
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Bldg</span>(<span class="ident">b</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">label_center</span>,
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="ident">i</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">center</span>(),
|
||||
}),
|
||||
);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#CC4121"</span>),
|
||||
))
|
||||
.<span class="ident">centered_on</span>(<span class="kw">match</span> <span class="ident">trip</span>.<span class="ident">end</span> {
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Bldg</span>(<span class="ident">b</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">label_center</span>,
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="ident">i</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">center</span>(),
|
||||
}),
|
||||
);
|
||||
|
||||
<span class="ident">batch</span>
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script src="../../../../source-script.js"></script><script src="../../../../source-files.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -76,8 +76,16 @@
|
||||
<span id="76">76</span>
|
||||
<span id="77">77</span>
|
||||
<span id="78">78</span>
|
||||
<span id="79">79</span>
|
||||
<span id="80">80</span>
|
||||
<span id="81">81</span>
|
||||
<span id="82">82</span>
|
||||
<span id="83">83</span>
|
||||
<span id="84">84</span>
|
||||
<span id="85">85</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">mod</span> <span class="ident">commuter</span>;
|
||||
<span class="kw">mod</span> <span class="ident">generic_trip_table</span>;
|
||||
<span class="kw">mod</span> <span class="ident">misc</span>;
|
||||
<span class="kw">mod</span> <span class="ident">parking_overhead</span>;
|
||||
<span class="kw">mod</span> <span class="ident">summaries</span>;
|
||||
@ -89,13 +97,14 @@
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::<span class="ident">Transition</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">commuter</span>::<span class="ident">CommuterPatterns</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">traffic_signals</span>::<span class="ident">TrafficSignalDemand</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">trip_table</span>::<span class="ident">TripTable</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident">trip_table</span>::<span class="ident">FinishedTripTable</span>;
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Btn</span>, <span class="ident">Color</span>, <span class="ident">EventCtx</span>, <span class="ident">Key</span>, <span class="ident">Widget</span>};
|
||||
|
||||
<span class="comment">// Oh the dashboards melted, but we still had the radio</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">PartialEq</span>)]</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Copy</span>, <span class="ident">PartialEq</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">DashTab</span> {
|
||||
<span class="ident">TripTable</span>,
|
||||
<span class="ident">FinishedTripTable</span>,
|
||||
<span class="ident">CancelledTripTable</span>,
|
||||
<span class="ident">TripSummaries</span>,
|
||||
<span class="ident">ParkingOverhead</span>,
|
||||
<span class="ident">ActiveTraffic</span>,
|
||||
@ -108,7 +117,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">picker</span>(<span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Widget</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">row</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> (<span class="ident">name</span>, <span class="ident">tab</span>) <span class="kw">in</span> <span class="macro">vec</span><span class="macro">!</span>[
|
||||
(<span class="string">"trip table"</span>, <span class="ident">DashTab</span>::<span class="ident">TripTable</span>),
|
||||
(<span class="string">"trip table"</span>, <span class="ident">DashTab</span>::<span class="ident">FinishedTripTable</span>),
|
||||
(<span class="string">"trip summaries"</span>, <span class="ident">DashTab</span>::<span class="ident">TripSummaries</span>),
|
||||
(<span class="string">"parking overhead"</span>, <span class="ident">DashTab</span>::<span class="ident">ParkingOverhead</span>),
|
||||
(<span class="string">"active traffic"</span>, <span class="ident">DashTab</span>::<span class="ident">ActiveTraffic</span>),
|
||||
@ -138,7 +147,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">transition</span>(<span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>, <span class="ident">action</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">match</span> <span class="ident">action</span> {
|
||||
<span class="string">"close"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
<span class="string">"trip table"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">TripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="string">"trip table"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">FinishedTripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="string">"trip summaries"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">summaries</span>::<span class="ident">TripSummaries</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
@ -151,6 +160,11 @@
|
||||
<span class="string">"transit routes"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">misc</span>::<span class="ident">TransitRoutes</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="string">"commuter patterns"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">CommuterPatterns</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="string">"traffic signal demand"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">TrafficSignalDemand</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
|
||||
<span class="comment">// TODO Misleading. These doesn't show up under the DashTab, but we're hijacking this</span>
|
||||
<span class="comment">// for some of the sub-tabs.</span>
|
||||
<span class="string">"finished trips"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">FinishedTripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="string">"cancelled trips"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Replace</span>(<span class="ident">trip_table</span>::<span class="ident">CancelledTripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)),
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
||||
}
|
||||
}
|
||||
|
@ -189,142 +189,24 @@
|
||||
<span id="189">189</span>
|
||||
<span id="190">190</span>
|
||||
<span id="191">191</span>
|
||||
<span id="192">192</span>
|
||||
<span id="193">193</span>
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
<span id="196">196</span>
|
||||
<span id="197">197</span>
|
||||
<span id="198">198</span>
|
||||
<span id="199">199</span>
|
||||
<span id="200">200</span>
|
||||
<span id="201">201</span>
|
||||
<span id="202">202</span>
|
||||
<span id="203">203</span>
|
||||
<span id="204">204</span>
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</span>
|
||||
<span id="211">211</span>
|
||||
<span id="212">212</span>
|
||||
<span id="213">213</span>
|
||||
<span id="214">214</span>
|
||||
<span id="215">215</span>
|
||||
<span id="216">216</span>
|
||||
<span id="217">217</span>
|
||||
<span id="218">218</span>
|
||||
<span id="219">219</span>
|
||||
<span id="220">220</span>
|
||||
<span id="221">221</span>
|
||||
<span id="222">222</span>
|
||||
<span id="223">223</span>
|
||||
<span id="224">224</span>
|
||||
<span id="225">225</span>
|
||||
<span id="226">226</span>
|
||||
<span id="227">227</span>
|
||||
<span id="228">228</span>
|
||||
<span id="229">229</span>
|
||||
<span id="230">230</span>
|
||||
<span id="231">231</span>
|
||||
<span id="232">232</span>
|
||||
<span id="233">233</span>
|
||||
<span id="234">234</span>
|
||||
<span id="235">235</span>
|
||||
<span id="236">236</span>
|
||||
<span id="237">237</span>
|
||||
<span id="238">238</span>
|
||||
<span id="239">239</span>
|
||||
<span id="240">240</span>
|
||||
<span id="241">241</span>
|
||||
<span id="242">242</span>
|
||||
<span id="243">243</span>
|
||||
<span id="244">244</span>
|
||||
<span id="245">245</span>
|
||||
<span id="246">246</span>
|
||||
<span id="247">247</span>
|
||||
<span id="248">248</span>
|
||||
<span id="249">249</span>
|
||||
<span id="250">250</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::{<span class="ident">DrawBaselayer</span>, <span class="ident">State</span>, <span class="ident">Transition</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">info</span>::{<span class="ident">OpenTrip</span>, <span class="ident">Tab</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::<span class="ident">State</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">generic_trip_table</span>::<span class="ident">GenericTripTable</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">table</span>::{<span class="ident">Col</span>, <span class="ident">Filter</span>, <span class="ident">Table</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">trip_table</span>::<span class="ident">preview_trip</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">DashTab</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">SandboxMode</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Duration</span>;
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">TripEndpoint</span>, <span class="ident">TripID</span>, <span class="ident">TripPhaseType</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Checkbox</span>, <span class="ident">EventCtx</span>, <span class="ident">Filler</span>, <span class="ident">GfxCtx</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">Text</span>, <span class="ident">Widget</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Checkbox</span>, <span class="ident">EventCtx</span>, <span class="ident">Filler</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">Text</span>, <span class="ident">Widget</span>};
|
||||
|
||||
<span class="comment">// TODO Compare all of these things before/after</span>
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ParkingOverhead</span> {
|
||||
<span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">Entry</span>, <span class="ident">Filters</span><span class="op">></span>,
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
}
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">ParkingOverhead</span>;
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">ParkingOverhead</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">table</span> <span class="op">=</span> <span class="ident">make_table</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">table</span>);
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">ParkingOverhead</span> { <span class="ident">table</span>, <span class="ident">panel</span> })
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">recalc</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">new</span> <span class="op">=</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">table</span>);
|
||||
<span class="ident">new</span>.<span class="ident">restore</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">new</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">State</span> <span class="kw">for</span> <span class="ident">ParkingOverhead</span> {
|
||||
<span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">table</span>.<span class="ident">clicked</span>(<span class="kw-2">&</span><span class="ident">x</span>) {
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>() {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">TripID</span>(<span class="ident">idx</span>);
|
||||
<span class="kw">let</span> <span class="ident">person</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_to_person</span>(<span class="ident">trip</span>);
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Multi</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
<span class="ident">Transition</span>::<span class="ident">ModifyState</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="kw">move</span> <span class="op">|</span><span class="ident">state</span>, <span class="ident">ctx</span>, <span class="ident">app</span><span class="op">|</span> {
|
||||
<span class="kw">let</span> <span class="ident">sandbox</span> <span class="op">=</span> <span class="ident">state</span>.<span class="ident">downcast_mut</span>::<span class="op"><</span><span class="ident">SandboxMode</span><span class="op">></span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">actions</span> <span class="op">=</span> <span class="ident">sandbox</span>.<span class="ident">contextual_actions</span>();
|
||||
<span class="ident">sandbox</span>.<span class="ident">controls</span>.<span class="ident">common</span>.<span class="ident">as_mut</span>().<span class="ident">unwrap</span>().<span class="ident">launch_info_panel</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
<span class="ident">Tab</span>::<span class="ident">PersonTrips</span>(<span class="ident">person</span>, <span class="ident">OpenTrip</span>::<span class="ident">single</span>(<span class="ident">trip</span>)),
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">actions</span>,
|
||||
);
|
||||
})),
|
||||
]);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">return</span> <span class="ident">DashTab</span>::<span class="ident">ParkingOverhead</span>.<span class="ident">transition</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">x</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">Outcome</span>::<span class="ident">Changed</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">table</span>.<span class="ident">panel_changed</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||
};
|
||||
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw_baselayer</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">DrawBaselayer</span> {
|
||||
<span class="ident">DrawBaselayer</span>::<span class="ident">Custom</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="ident">g</span>.<span class="ident">clear</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">dialog_bg</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="ident">preview_trip</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="ident">GenericTripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">DashTab</span>::<span class="ident">ParkingOverhead</span>, <span class="ident">table</span>, <span class="ident">make_panel</span>)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -538,88 +538,53 @@
|
||||
<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>
|
||||
<span id="544">544</span>
|
||||
<span id="545">545</span>
|
||||
<span id="546">546</span>
|
||||
<span id="547">547</span>
|
||||
<span id="548">548</span>
|
||||
<span id="549">549</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::{<span class="ident">DrawBaselayer</span>, <span class="ident">State</span>, <span class="ident">Transition</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">helpers</span>::{
|
||||
<span class="ident">checkbox_per_mode</span>, <span class="ident">cmp_duration_shorter</span>, <span class="ident">color_for_mode</span>, <span class="ident">color_for_trip_phase</span>,
|
||||
};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">info</span>::{<span class="ident">OpenTrip</span>, <span class="ident">Tab</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">game</span>::<span class="ident">State</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">helpers</span>::{<span class="ident">checkbox_per_mode</span>, <span class="ident">cmp_duration_shorter</span>, <span class="ident">color_for_mode</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">generic_trip_table</span>::<span class="ident">GenericTripTable</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">table</span>::{<span class="ident">Col</span>, <span class="ident">Filter</span>, <span class="ident">Table</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">dashboards</span>::<span class="ident">DashTab</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">sandbox</span>::<span class="ident">SandboxMode</span>;
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Pt2D</span>, <span class="ident">Time</span>};
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Duration</span>, <span class="ident">Time</span>};
|
||||
<span class="kw">use</span> <span class="ident">sim</span>::{<span class="ident">TripEndpoint</span>, <span class="ident">TripID</span>, <span class="ident">TripMode</span>};
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{
|
||||
<span class="ident">Checkbox</span>, <span class="ident">Color</span>, <span class="ident">EventCtx</span>, <span class="ident">Filler</span>, <span class="ident">GeomBatch</span>, <span class="ident">GfxCtx</span>, <span class="ident">Line</span>, <span class="ident">Outcome</span>, <span class="ident">Panel</span>, <span class="ident">RewriteColor</span>,
|
||||
<span class="ident">ScreenPt</span>, <span class="ident">Text</span>, <span class="ident">Widget</span>,
|
||||
};
|
||||
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Btn</span>, <span class="ident">Checkbox</span>, <span class="ident">EventCtx</span>, <span class="ident">Filler</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">Text</span>, <span class="ident">Widget</span>};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">TripTable</span> {
|
||||
<span class="ident">table</span>: <span class="ident">Table</span><span class="op"><</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">></span>,
|
||||
<span class="ident">panel</span>: <span class="ident">Panel</span>,
|
||||
}
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">FinishedTripTable</span>;
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">TripTable</span> {
|
||||
<span class="kw">impl</span> <span class="ident">FinishedTripTable</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">table</span> <span class="op">=</span> <span class="ident">make_table_finished_trips</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> <span class="ident">panel</span> <span class="op">=</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">table</span>);
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="ident">TripTable</span> { <span class="ident">table</span>, <span class="ident">panel</span> })
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">recalc</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">new</span> <span class="op">=</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">table</span>);
|
||||
<span class="ident">new</span>.<span class="ident">restore</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span> <span class="op">=</span> <span class="ident">new</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">State</span> <span class="kw">for</span> <span class="ident">TripTable</span> {
|
||||
<span class="kw">fn</span> <span class="ident">event</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Transition</span> {
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">table</span>.<span class="ident">clicked</span>(<span class="kw-2">&</span><span class="ident">x</span>) {
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>() {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">TripID</span>(<span class="ident">idx</span>);
|
||||
<span class="kw">let</span> <span class="ident">person</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_to_person</span>(<span class="ident">trip</span>);
|
||||
<span class="kw">return</span> <span class="ident">Transition</span>::<span class="ident">Multi</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
<span class="ident">Transition</span>::<span class="ident">ModifyState</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="kw">move</span> <span class="op">|</span><span class="ident">state</span>, <span class="ident">ctx</span>, <span class="ident">app</span><span class="op">|</span> {
|
||||
<span class="kw">let</span> <span class="ident">sandbox</span> <span class="op">=</span> <span class="ident">state</span>.<span class="ident">downcast_mut</span>::<span class="op"><</span><span class="ident">SandboxMode</span><span class="op">></span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">actions</span> <span class="op">=</span> <span class="ident">sandbox</span>.<span class="ident">contextual_actions</span>();
|
||||
<span class="ident">sandbox</span>.<span class="ident">controls</span>.<span class="ident">common</span>.<span class="ident">as_mut</span>().<span class="ident">unwrap</span>().<span class="ident">launch_info_panel</span>(
|
||||
<span class="ident">GenericTripTable</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
<span class="ident">Tab</span>::<span class="ident">PersonTrips</span>(<span class="ident">person</span>, <span class="ident">OpenTrip</span>::<span class="ident">single</span>(<span class="ident">trip</span>)),
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">actions</span>,
|
||||
);
|
||||
})),
|
||||
]);
|
||||
} <span class="kw">else</span> {
|
||||
<span class="kw">return</span> <span class="ident">DashTab</span>::<span class="ident">TripTable</span>.<span class="ident">transition</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">x</span>);
|
||||
<span class="ident">DashTab</span>::<span class="ident">FinishedTripTable</span>,
|
||||
<span class="ident">make_table_finished_trips</span>(<span class="ident">app</span>),
|
||||
<span class="ident">make_panel_finished_trips</span>,
|
||||
)
|
||||
}
|
||||
}
|
||||
<span class="ident">Outcome</span>::<span class="ident">Changed</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="self">self</span>.<span class="ident">table</span>.<span class="ident">panel_changed</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="self">self</span>.<span class="ident">recalc</span>(<span class="ident">ctx</span>, <span class="ident">app</span>);
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> {}
|
||||
}
|
||||
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
}
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">CancelledTripTable</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw_baselayer</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">DrawBaselayer</span> {
|
||||
<span class="ident">DrawBaselayer</span>::<span class="ident">Custom</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">draw</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) {
|
||||
<span class="ident">g</span>.<span class="ident">clear</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">dialog_bg</span>);
|
||||
<span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="ident">preview_trip</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">panel</span>);
|
||||
<span class="kw">impl</span> <span class="ident">CancelledTripTable</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Box</span><span class="op"><</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">></span> {
|
||||
<span class="ident">GenericTripTable</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>,
|
||||
<span class="ident">app</span>,
|
||||
<span class="ident">DashTab</span>::<span class="ident">CancelledTripTable</span>,
|
||||
<span class="ident">make_table_cancelled_trips</span>(<span class="ident">app</span>),
|
||||
<span class="ident">make_panel_cancelled_trips</span>,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -638,17 +603,21 @@
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">CancelledTrip</span> {
|
||||
<span class="ident">_id</span>: <span class="ident">TripID</span>,
|
||||
<span class="comment">// TODO Original mode</span>
|
||||
<span class="ident">_departure</span>: <span class="ident">Time</span>,
|
||||
<span class="ident">id</span>: <span class="ident">TripID</span>,
|
||||
<span class="ident">mode</span>: <span class="ident">TripMode</span>,
|
||||
<span class="ident">departure</span>: <span class="ident">Time</span>,
|
||||
<span class="ident">starts_off_map</span>: <span class="ident">bool</span>,
|
||||
<span class="ident">ends_off_map</span>: <span class="ident">bool</span>,
|
||||
<span class="ident">duration_before</span>: <span class="ident">Duration</span>,
|
||||
<span class="comment">// TODO Reason</span>
|
||||
}
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">UnfinishedTrip</span> {
|
||||
<span class="ident">_id</span>: <span class="ident">TripID</span>,
|
||||
<span class="ident">_mode</span>: <span class="ident">TripMode</span>,
|
||||
<span class="ident">_departure</span>: <span class="ident">Time</span>,
|
||||
<span class="ident">_duration_before</span>: <span class="ident">Duration</span>,
|
||||
}
|
||||
<span class="comment">/*struct UnfinishedTrip {
|
||||
id: TripID,
|
||||
mode: TripMode,
|
||||
departure: Time,
|
||||
duration_before: Duration,
|
||||
}*/</span>
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Filters</span> {
|
||||
<span class="ident">modes</span>: <span class="ident">BTreeSet</span><span class="op"><</span><span class="ident">TripMode</span><span class="op">></span>,
|
||||
@ -660,10 +629,9 @@
|
||||
<span class="ident">capped_trips</span>: <span class="ident">bool</span>,
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">produce_raw_data</span>(<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> (<span class="ident">Vec</span><span class="op"><</span><span class="ident">FinishedTrip</span><span class="op">></span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">CancelledTrip</span><span class="op">></span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">UnfinishedTrip</span><span class="op">></span>) {
|
||||
<span class="kw">fn</span> <span class="ident">produce_raw_data</span>(<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> (<span class="ident">Vec</span><span class="op"><</span><span class="ident">FinishedTrip</span><span class="op">></span>, <span class="ident">Vec</span><span class="op"><</span><span class="ident">CancelledTrip</span><span class="op">></span>) {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">finished</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cancelled</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">let</span> <span class="ident">unfinished</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="comment">// Only make one pass through prebaked data</span>
|
||||
<span class="kw">let</span> <span class="ident">trip_times_before</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">app</span>.<span class="ident">has_prebaked</span>().<span class="ident">is_some</span>() {
|
||||
@ -681,17 +649,6 @@
|
||||
<span class="kw">let</span> <span class="ident">sim</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>;
|
||||
<span class="kw">for</span> (<span class="kw">_</span>, <span class="ident">id</span>, <span class="ident">maybe_mode</span>, <span class="ident">duration_after</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">sim</span>.<span class="ident">get_analytics</span>().<span class="ident">finished_trips</span> {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">sim</span>.<span class="ident">trip_info</span>(<span class="kw-2">*</span><span class="ident">id</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">mode</span> <span class="op">=</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">m</span>) <span class="op">=</span> <span class="ident">maybe_mode</span> {
|
||||
<span class="kw-2">*</span><span class="ident">m</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">cancelled</span>.<span class="ident">push</span>(<span class="ident">CancelledTrip</span> {
|
||||
<span class="ident">_id</span>: <span class="kw-2">*</span><span class="ident">id</span>,
|
||||
<span class="ident">_departure</span>: <span class="ident">trip</span>.<span class="ident">departure</span>,
|
||||
});
|
||||
<span class="kw">continue</span>;
|
||||
};
|
||||
|
||||
<span class="kw">let</span> <span class="ident">starts_off_map</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">trip</span>.<span class="ident">start</span> {
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="kw">_</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="bool-val">true</span>,
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="bool-val">false</span>,
|
||||
@ -700,42 +657,46 @@
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="kw">_</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="bool-val">true</span>,
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="bool-val">false</span>,
|
||||
};
|
||||
|
||||
<span class="kw">let</span> (<span class="kw">_</span>, <span class="ident">waiting</span>) <span class="op">=</span> <span class="ident">sim</span>.<span class="ident">finished_trip_time</span>(<span class="kw-2">*</span><span class="ident">id</span>).<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="ident">duration_before</span> <span class="op">=</span> <span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">ref</span> <span class="ident">times</span>) <span class="op">=</span> <span class="ident">trip_times_before</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">dt</span>) <span class="op">=</span> <span class="ident">times</span>.<span class="ident">get</span>(<span class="ident">id</span>) {
|
||||
<span class="kw-2">*</span><span class="ident">dt</span>
|
||||
<span class="ident">times</span>.<span class="ident">get</span>(<span class="ident">id</span>).<span class="ident">cloned</span>()
|
||||
} <span class="kw">else</span> {
|
||||
<span class="prelude-val">Some</span>(<span class="ident">Duration</span>::<span class="ident">ZERO</span>)
|
||||
};
|
||||
|
||||
<span class="kw">if</span> <span class="ident">maybe_mode</span>.<span class="ident">is_none</span>() <span class="op">|</span><span class="op">|</span> <span class="ident">duration_before</span>.<span class="ident">is_none</span>() {
|
||||
<span class="ident">cancelled</span>.<span class="ident">push</span>(<span class="ident">CancelledTrip</span> {
|
||||
<span class="ident">_id</span>: <span class="kw-2">*</span><span class="ident">id</span>,
|
||||
<span class="ident">_departure</span>: <span class="ident">trip</span>.<span class="ident">departure</span>,
|
||||
<span class="ident">id</span>: <span class="kw-2">*</span><span class="ident">id</span>,
|
||||
<span class="ident">mode</span>: <span class="ident">trip</span>.<span class="ident">mode</span>,
|
||||
<span class="ident">departure</span>: <span class="ident">trip</span>.<span class="ident">departure</span>,
|
||||
<span class="ident">starts_off_map</span>,
|
||||
<span class="ident">ends_off_map</span>,
|
||||
<span class="ident">duration_before</span>: <span class="ident">duration_before</span>.<span class="ident">unwrap_or</span>(<span class="ident">Duration</span>::<span class="ident">ZERO</span>),
|
||||
});
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Duration</span>::<span class="ident">ZERO</span>
|
||||
};
|
||||
|
||||
<span class="kw">let</span> (<span class="kw">_</span>, <span class="ident">waiting</span>) <span class="op">=</span> <span class="ident">sim</span>.<span class="ident">finished_trip_time</span>(<span class="kw-2">*</span><span class="ident">id</span>).<span class="ident">unwrap</span>();
|
||||
|
||||
<span class="ident">finished</span>.<span class="ident">push</span>(<span class="ident">FinishedTrip</span> {
|
||||
<span class="ident">id</span>: <span class="kw-2">*</span><span class="ident">id</span>,
|
||||
<span class="ident">mode</span>,
|
||||
<span class="ident">mode</span>: <span class="ident">trip</span>.<span class="ident">mode</span>,
|
||||
<span class="ident">departure</span>: <span class="ident">trip</span>.<span class="ident">departure</span>,
|
||||
<span class="ident">modified</span>: <span class="ident">trip</span>.<span class="ident">modified</span>,
|
||||
<span class="ident">capped</span>: <span class="ident">trip</span>.<span class="ident">capped</span>,
|
||||
<span class="ident">starts_off_map</span>,
|
||||
<span class="ident">ends_off_map</span>,
|
||||
<span class="ident">duration_after</span>: <span class="kw-2">*</span><span class="ident">duration_after</span>,
|
||||
<span class="ident">duration_before</span>,
|
||||
<span class="ident">duration_before</span>: <span class="ident">duration_before</span>.<span class="ident">unwrap</span>(),
|
||||
<span class="ident">waiting</span>,
|
||||
<span class="ident">percent_waiting</span>: (<span class="number">100.0</span> <span class="op">*</span> <span class="ident">waiting</span> <span class="op">/</span> <span class="kw-2">*</span><span class="ident">duration_after</span>) <span class="kw">as</span> <span class="ident">usize</span>,
|
||||
});
|
||||
}
|
||||
|
||||
(<span class="ident">finished</span>, <span class="ident">cancelled</span>, <span class="ident">unfinished</span>)
|
||||
(<span class="ident">finished</span>, <span class="ident">cancelled</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">make_table_finished_trips</span>(<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Table</span><span class="op"><</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">></span> {
|
||||
<span class="kw">let</span> (<span class="ident">finished</span>, <span class="kw">_</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">produce_raw_data</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> (<span class="ident">finished</span>, <span class="kw">_</span>) <span class="op">=</span> <span class="ident">produce_raw_data</span>(<span class="ident">app</span>);
|
||||
<span class="kw">let</span> <span class="ident">any_congestion_caps</span> <span class="op">=</span> <span class="ident">app</span>
|
||||
.<span class="ident">primary</span>
|
||||
.<span class="ident">map</span>
|
||||
@ -950,7 +911,92 @@
|
||||
<span class="ident">table</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">make_panel</span>(<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>, <span class="ident">table</span>: <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">></span>) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span> {
|
||||
<span class="kw">fn</span> <span class="ident">make_table_cancelled_trips</span>(<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Table</span><span class="op"><</span><span class="ident">CancelledTrip</span>, <span class="ident">Filters</span><span class="op">></span> {
|
||||
<span class="kw">let</span> (<span class="kw">_</span>, <span class="ident">cancelled</span>) <span class="op">=</span> <span class="ident">produce_raw_data</span>(<span class="ident">app</span>);
|
||||
<span class="comment">// Reuse the same filters, but ignore modified and capped trips</span>
|
||||
<span class="kw">let</span> <span class="ident">filter</span>: <span class="ident">Filter</span><span class="op"><</span><span class="ident">CancelledTrip</span>, <span class="ident">Filters</span><span class="op">></span> <span class="op">=</span> <span class="ident">Filter</span> {
|
||||
<span class="ident">state</span>: <span class="ident">Filters</span> {
|
||||
<span class="ident">modes</span>: <span class="ident">TripMode</span>::<span class="ident">all</span>().<span class="ident">into_iter</span>().<span class="ident">collect</span>(),
|
||||
<span class="ident">off_map_starts</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">off_map_ends</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">unmodified_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">modified_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">uncapped_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">capped_trips</span>: <span class="bool-val">true</span>,
|
||||
},
|
||||
<span class="ident">to_controls</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="kw">move</span> <span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">state</span><span class="op">|</span> {
|
||||
<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">checkbox_per_mode</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&</span><span class="ident">state</span>.<span class="ident">modes</span>),
|
||||
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Checkbox</span>::<span class="ident">switch</span>(<span class="ident">ctx</span>, <span class="string">"starting off-map"</span>, <span class="prelude-val">None</span>, <span class="ident">state</span>.<span class="ident">off_map_starts</span>),
|
||||
<span class="ident">Checkbox</span>::<span class="ident">switch</span>(<span class="ident">ctx</span>, <span class="string">"ending off-map"</span>, <span class="prelude-val">None</span>, <span class="ident">state</span>.<span class="ident">off_map_ends</span>),
|
||||
]),
|
||||
])
|
||||
}),
|
||||
<span class="ident">from_controls</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">panel</span><span class="op">|</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">modes</span> <span class="op">=</span> <span class="ident">BTreeSet</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="ident">TripMode</span>::<span class="ident">all</span>() {
|
||||
<span class="kw">if</span> <span class="ident">panel</span>.<span class="ident">is_checked</span>(<span class="ident">m</span>.<span class="ident">ongoing_verb</span>()) {
|
||||
<span class="ident">modes</span>.<span class="ident">insert</span>(<span class="ident">m</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">Filters</span> {
|
||||
<span class="ident">modes</span>,
|
||||
<span class="ident">off_map_starts</span>: <span class="ident">panel</span>.<span class="ident">is_checked</span>(<span class="string">"starting off-map"</span>),
|
||||
<span class="ident">off_map_ends</span>: <span class="ident">panel</span>.<span class="ident">is_checked</span>(<span class="string">"ending off-map"</span>),
|
||||
<span class="ident">unmodified_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">modified_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">uncapped_trips</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">capped_trips</span>: <span class="bool-val">true</span>,
|
||||
}
|
||||
}),
|
||||
<span class="ident">apply</span>: <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">state</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">state</span>.<span class="ident">modes</span>.<span class="ident">contains</span>(<span class="kw-2">&</span><span class="ident">x</span>.<span class="ident">mode</span>) {
|
||||
<span class="kw">return</span> <span class="bool-val">false</span>;
|
||||
}
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">state</span>.<span class="ident">off_map_starts</span> <span class="kw-2">&</span><span class="op">&</span> <span class="ident">x</span>.<span class="ident">starts_off_map</span> {
|
||||
<span class="kw">return</span> <span class="bool-val">false</span>;
|
||||
}
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">state</span>.<span class="ident">off_map_ends</span> <span class="kw-2">&</span><span class="op">&</span> <span class="ident">x</span>.<span class="ident">ends_off_map</span> {
|
||||
<span class="kw">return</span> <span class="bool-val">false</span>;
|
||||
}
|
||||
<span class="bool-val">true</span>
|
||||
}),
|
||||
};
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">table</span> <span class="op">=</span> <span class="ident">Table</span>::<span class="ident">new</span>(
|
||||
<span class="ident">cancelled</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">id</span>.<span class="number">0</span>.<span class="ident">to_string</span>()),
|
||||
<span class="string">"Departure"</span>,
|
||||
<span class="ident">filter</span>,
|
||||
);
|
||||
<span class="ident">table</span>.<span class="ident">static_col</span>(<span class="string">"Trip ID"</span>, <span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">id</span>.<span class="number">0</span>.<span class="ident">to_string</span>()));
|
||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||
<span class="string">"Type"</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">x</span><span class="op">|</span> {
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">mode</span>.<span class="ident">ongoing_verb</span>()).<span class="ident">fg</span>(<span class="ident">color_for_mode</span>(<span class="ident">app</span>, <span class="ident">x</span>.<span class="ident">mode</span>))).<span class="ident">render_ctx</span>(<span class="ident">ctx</span>)
|
||||
}),
|
||||
<span class="ident">Col</span>::<span class="ident">Static</span>,
|
||||
);
|
||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||
<span class="string">"Departure"</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">departure</span>.<span class="ident">ampm_tostring</span>())).<span class="ident">render_ctx</span>(<span class="ident">ctx</span>)),
|
||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">departure</span>))),
|
||||
);
|
||||
<span class="ident">table</span>.<span class="ident">column</span>(
|
||||
<span class="string">"Estimated duration"</span>,
|
||||
<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">ctx</span>, <span class="kw">_</span>, <span class="ident">x</span><span class="op">|</span> <span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">x</span>.<span class="ident">duration_before</span>.<span class="ident">to_string</span>())).<span class="ident">render_ctx</span>(<span class="ident">ctx</span>)),
|
||||
<span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="ident">Box</span>::<span class="ident">new</span>(<span class="op">|</span><span class="ident">rows</span><span class="op">|</span> <span class="ident">rows</span>.<span class="ident">sort_by_key</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">duration_before</span>))),
|
||||
);
|
||||
|
||||
<span class="ident">table</span>
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">make_panel_finished_trips</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||
<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>,
|
||||
<span class="ident">table</span>: <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">></span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span> {
|
||||
<span class="kw">let</span> (<span class="ident">finished</span>, <span class="ident">unfinished</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">num_trips</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">aborted</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
<span class="comment">// TODO Can we avoid iterating through this again?</span>
|
||||
@ -960,7 +1006,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[<span class="ident">DashTab</span>::<span class="ident">TripTable</span>.<span class="ident">picker</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)];
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[<span class="ident">DashTab</span>::<span class="ident">FinishedTripTable</span>.<span class="ident">picker</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)];
|
||||
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||
@ -973,8 +1019,8 @@
|
||||
)
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">margin_right</span>(<span class="number">28</span>),
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} Canceled Trips"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">aborted</span>))).<span class="ident">secondary</span>())
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>)
|
||||
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} Cancelled Trips"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">aborted</span>)))
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"cancelled trips"</span>, <span class="prelude-val">None</span>)
|
||||
.<span class="ident">margin_right</span>(<span class="number">28</span>),
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||
@ -1000,84 +1046,56 @@
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">preview_trip</span>(<span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>, <span class="ident">panel</span>: <span class="kw-2">&</span><span class="ident">Panel</span>) {
|
||||
<span class="kw">let</span> <span class="ident">inner_rect</span> <span class="op">=</span> <span class="ident">panel</span>.<span class="ident">rect_of</span>(<span class="string">"preview"</span>).<span class="ident">clone</span>();
|
||||
<span class="kw">let</span> <span class="ident">map_bounds</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_bounds</span>().<span class="ident">clone</span>();
|
||||
<span class="kw">let</span> <span class="ident">zoom</span> <span class="op">=</span> <span class="number">0.15</span> <span class="op">*</span> <span class="ident">g</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span> <span class="op">/</span> <span class="ident">map_bounds</span>.<span class="ident">width</span>().<span class="ident">max</span>(<span class="ident">map_bounds</span>.<span class="ident">height</span>());
|
||||
<span class="ident">g</span>.<span class="ident">fork</span>(
|
||||
<span class="ident">Pt2D</span>::<span class="ident">new</span>(<span class="ident">map_bounds</span>.<span class="ident">min_x</span>, <span class="ident">map_bounds</span>.<span class="ident">min_y</span>),
|
||||
<span class="ident">ScreenPt</span>::<span class="ident">new</span>(<span class="ident">inner_rect</span>.<span class="ident">x1</span>, <span class="ident">inner_rect</span>.<span class="ident">y1</span>),
|
||||
<span class="ident">zoom</span>,
|
||||
<span class="prelude-val">None</span>,
|
||||
);
|
||||
<span class="ident">g</span>.<span class="ident">enable_clipping</span>(<span class="ident">inner_rect</span>);
|
||||
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">draw_map</span>.<span class="ident">boundary_polygon</span>);
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">draw_map</span>.<span class="ident">draw_all_areas</span>);
|
||||
<span class="ident">g</span>.<span class="ident">redraw</span>(
|
||||
<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>
|
||||
.<span class="ident">draw_map</span>
|
||||
.<span class="ident">draw_all_unzoomed_roads_and_intersections</span>,
|
||||
);
|
||||
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">x</span>) <span class="op">=</span> <span class="ident">panel</span>.<span class="ident">currently_hovering</span>() {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">x</span>.<span class="ident">parse</span>::<span class="op"><</span><span class="ident">usize</span><span class="op">></span>() {
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">TripID</span>(<span class="ident">idx</span>);
|
||||
<span class="ident">preview_route</span>(<span class="ident">g</span>, <span class="ident">app</span>, <span class="ident">trip</span>).<span class="ident">draw</span>(<span class="ident">g</span>);
|
||||
<span class="comment">// TODO Dedupe some code</span>
|
||||
<span class="kw">fn</span> <span class="ident">make_panel_cancelled_trips</span>(
|
||||
<span class="ident">ctx</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
|
||||
<span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>,
|
||||
<span class="ident">table</span>: <span class="kw-2">&</span><span class="ident">Table</span><span class="op"><</span><span class="ident">CancelledTrip</span>, <span class="ident">Filters</span><span class="op">></span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">Panel</span> {
|
||||
<span class="kw">let</span> (<span class="ident">finished</span>, <span class="ident">unfinished</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">num_trips</span>();
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">aborted</span> <span class="op">=</span> <span class="number">0</span>;
|
||||
<span class="comment">// TODO Can we avoid iterating through this again?</span>
|
||||
<span class="kw">for</span> (<span class="kw">_</span>, <span class="kw">_</span>, <span class="ident">maybe_mode</span>, <span class="kw">_</span>) <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">get_analytics</span>().<span class="ident">finished_trips</span> {
|
||||
<span class="kw">if</span> <span class="ident">maybe_mode</span>.<span class="ident">is_none</span>() {
|
||||
<span class="ident">aborted</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
||||
}
|
||||
}
|
||||
|
||||
<span class="ident">g</span>.<span class="ident">disable_clipping</span>();
|
||||
<span class="ident">g</span>.<span class="ident">unfork</span>();
|
||||
}
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[<span class="ident">DashTab</span>::<span class="ident">CancelledTripTable</span>.<span class="ident">picker</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)];
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">preview_route</span>(<span class="ident">g</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">GfxCtx</span>, <span class="ident">app</span>: <span class="kw-2">&</span><span class="ident">App</span>, <span class="ident">id</span>: <span class="ident">TripID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">GeomBatch</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">batch</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">p</span> <span class="kw">in</span> <span class="ident">app</span>
|
||||
.<span class="ident">primary</span>
|
||||
.<span class="ident">sim</span>
|
||||
.<span class="ident">get_analytics</span>()
|
||||
.<span class="ident">get_trip_phases</span>(<span class="ident">id</span>, <span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>)
|
||||
{
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">dist</span>, <span class="kw-2">ref</span> <span class="ident">path</span>)) <span class="op">=</span> <span class="ident">p</span>.<span class="ident">path</span> {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">trace</span>) <span class="op">=</span> <span class="ident">path</span>.<span class="ident">trace</span>(<span class="kw-2">&</span><span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>, <span class="ident">dist</span>, <span class="prelude-val">None</span>) {
|
||||
<span class="ident">batch</span>.<span class="ident">push</span>(
|
||||
<span class="ident">color_for_trip_phase</span>(<span class="ident">app</span>, <span class="ident">p</span>.<span class="ident">phase_type</span>),
|
||||
<span class="ident">trace</span>.<span class="ident">make_polygons</span>(<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">20.0</span>)),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">trip</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">sim</span>.<span class="ident">trip_info</span>(<span class="ident">id</span>);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/start_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#CC4121"</span>),
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">Widget</span>::<span class="ident">custom_row</span>(<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||
<span class="string">"{} ({:.1}%) Finished Trips"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">finished</span>),
|
||||
(<span class="ident">finished</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">/</span> ((<span class="ident">finished</span> <span class="op">+</span> <span class="ident">aborted</span> <span class="op">+</span> <span class="ident">unfinished</span>) <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">*</span> <span class="number">100.0</span>
|
||||
))
|
||||
.<span class="ident">centered_on</span>(<span class="kw">match</span> <span class="ident">trip</span>.<span class="ident">start</span> {
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Bldg</span>(<span class="ident">b</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">label_center</span>,
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="ident">i</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">center</span>(),
|
||||
}),
|
||||
);
|
||||
<span class="ident">batch</span>.<span class="ident">append</span>(
|
||||
<span class="ident">GeomBatch</span>::<span class="ident">load_svg</span>(<span class="ident">g</span>.<span class="ident">prerender</span>, <span class="string">"system/assets/timeline/goal_pos.svg"</span>)
|
||||
.<span class="ident">scale</span>(<span class="number">10.0</span>)
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(<span class="ident">Color</span>::<span class="ident">WHITE</span>, <span class="ident">Color</span>::<span class="ident">BLACK</span>))
|
||||
.<span class="ident">color</span>(<span class="ident">RewriteColor</span>::<span class="ident">Change</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#5B5B5B"</span>),
|
||||
<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">"#CC4121"</span>),
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">"finished trips"</span>, <span class="prelude-val">None</span>)
|
||||
.<span class="ident">margin_right</span>(<span class="number">28</span>),
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">"{} Cancelled Trips"</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">aborted</span>))).<span class="ident">underlined</span>())
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>)
|
||||
.<span class="ident">margin_right</span>(<span class="number">28</span>),
|
||||
<span class="ident">Text</span>::<span class="ident">from</span>(
|
||||
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
|
||||
<span class="string">"{} ({:.1}%) Unfinished Trips"</span>,
|
||||
<span class="ident">prettyprint_usize</span>(<span class="ident">unfinished</span>),
|
||||
(<span class="ident">unfinished</span> <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">/</span> ((<span class="ident">finished</span> <span class="op">+</span> <span class="ident">aborted</span> <span class="op">+</span> <span class="ident">unfinished</span>) <span class="kw">as</span> <span class="ident">f64</span>) <span class="op">*</span> <span class="number">100.0</span>
|
||||
))
|
||||
.<span class="ident">centered_on</span>(<span class="kw">match</span> <span class="ident">trip</span>.<span class="ident">end</span> {
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Bldg</span>(<span class="ident">b</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">b</span>).<span class="ident">label_center</span>,
|
||||
<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="ident">i</span>, <span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="ident">app</span>.<span class="ident">primary</span>.<span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">polygon</span>.<span class="ident">center</span>(),
|
||||
}),
|
||||
.<span class="ident">secondary</span>(),
|
||||
)
|
||||
.<span class="ident">draw</span>(<span class="ident">ctx</span>),
|
||||
]));
|
||||
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(<span class="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</span>));
|
||||
|
||||
<span class="ident">col</span>.<span class="ident">push</span>(
|
||||
<span class="ident">Filler</span>::<span class="ident">square_width</span>(<span class="ident">ctx</span>, <span class="number">0.15</span>)
|
||||
.<span class="ident">named</span>(<span class="string">"preview"</span>)
|
||||
.<span class="ident">centered_horiz</span>(),
|
||||
);
|
||||
|
||||
<span class="ident">batch</span>
|
||||
<span class="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="ident">col</span>))
|
||||
.<span class="ident">exact_size_percent</span>(<span class="number">90</span>, <span class="number">90</span>)
|
||||
.<span class="ident">build</span>(<span class="ident">ctx</span>)
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script src="../../../../source-script.js"></script><script src="../../../../source-files.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -516,6 +516,8 @@
|
||||
<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>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">pub</span> <span class="kw">mod</span> <span class="ident">dashboards</span>;
|
||||
<span class="kw">pub</span> <span class="kw">mod</span> <span class="ident">gameplay</span>;
|
||||
@ -906,7 +908,9 @@
|
||||
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">panel</span>.<span class="ident">event</span>(<span class="ident">ctx</span>) {
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> <span class="kw">match</span> <span class="ident">x</span>.<span class="ident">as_ref</span>() {
|
||||
<span class="string">"more data"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">Some</span>(<span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">dashboards</span>::<span class="ident">TripTable</span>::<span class="ident">new</span>(<span class="ident">ctx</span>, <span class="ident">app</span>)));
|
||||
<span class="kw">return</span> <span class="prelude-val">Some</span>(<span class="ident">Transition</span>::<span class="ident">Push</span>(<span class="ident">dashboards</span>::<span class="ident">FinishedTripTable</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ctx</span>, <span class="ident">app</span>,
|
||||
)));
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user