This commit is contained in:
dabreegster 2020-09-23 21:23:20 +00:00
parent 775d915a55
commit 7322f9bca1
18 changed files with 122 additions and 222 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `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">&#9776;</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'>&#x2212;</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: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Wed, 23 Sep 2020 20:24:49 +0000&quot;;</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">&#9776;</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'>&#x2212;</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: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = &quot;Wed, 23 Sep 2020 21:20:33 +0000&quot;;</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> </div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_pagination` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_pagination"><title>game::sandbox::dashboards::table::make_pagination - 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">&#9776;</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'>table</a></p><script>window.sidebarCurrent = {name: 'make_pagination', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/table.rs.html#179-204' 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'>table</a>::<wbr><a class="fn" href=''>make_pagination</a></span></h1><pre class='rust fn'>fn make_pagination(ctx: &amp;mut EventCtx, total: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, skip: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_table` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_table"><title>game::sandbox::dashboards::table::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">&#9776;</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'>table</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/table.rs.html#204-261' 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'>table</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;headers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Widget&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;rows: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;GeomBatch&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;total_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -&gt; Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html> <!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::table::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">&#9776;</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'>table</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/table.rs.html#206-261' 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'>table</a>::<wbr><a class="fn" href=''>make_table</a></span></h1><pre class='rust fn'>fn make_table(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;headers: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Widget&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;rows: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<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/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;GeomBatch&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;total_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -&gt; Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>

View File

@ -2,4 +2,4 @@
<table><tr class='module-item'><td><a class="struct" href="struct.Column.html" title='game::sandbox::dashboards::table::Column struct'>Column</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filter.html" title='game::sandbox::dashboards::table::Filter struct'>Filter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Table.html" title='game::sandbox::dashboards::table::Table struct'>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="struct" href="struct.Column.html" title='game::sandbox::dashboards::table::Column struct'>Column</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Filter.html" title='game::sandbox::dashboards::table::Filter struct'>Filter</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.Table.html" title='game::sandbox::dashboards::table::Table struct'>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.Col.html" title='game::sandbox::dashboards::table::Col enum'>Col</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2> <table><tr class='module-item'><td><a class="enum" href="enum.Col.html" title='game::sandbox::dashboards::table::Col enum'>Col</a></td><td class='docblock-short'></td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table><tr class='module-item'><td><a class="constant" href="constant.ROWS.html" title='game::sandbox::dashboards::table::ROWS constant'>ROWS</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="constant" href="constant.ROWS.html" title='game::sandbox::dashboards::table::ROWS constant'>ROWS</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
<table><tr class='module-item'><td><a class="fn" href="fn.make_table.html" title='game::sandbox::dashboards::table::make_table fn'>make_table</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html> <table><tr class='module-item'><td><a class="fn" href="fn.make_pagination.html" title='game::sandbox::dashboards::table::make_pagination fn'>make_pagination</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::table::make_table fn'>make_table</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>

View File

@ -1 +1 @@
initSidebarItems({"constant":[["ROWS",""]],"enum":[["Col",""]],"fn":[["make_table",""]],"struct":[["Column",""],["Filter",""],["Table",""]]}); initSidebarItems({"constant":[["ROWS",""]],"enum":[["Col",""]],"fn":[["make_pagination",""],["make_table",""]],"struct":[["Column",""],["Filter",""],["Table",""]]});

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#611-657' 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>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<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>&gt;<br>) -&gt; 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_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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#625-640' 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>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<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>&gt;<br>) -&gt; 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>

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#559-608' 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>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<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>&gt;<br>) -&gt; 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_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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#608-623' 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>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<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>&gt;<br>) -&gt; 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>

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_panel_unfinished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel_unfinished_trips"><title>game::sandbox::dashboards::trip_table::make_panel_unfinished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../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">&#9776;</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_unfinished_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#659-708' 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_unfinished_trips</a></span></h1><pre class='rust fn'>fn make_panel_unfinished_trips(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.UnfinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::UnfinishedTrip">UnfinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>&gt;<br>) -&gt; 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_unfinished_trips` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, make_panel_unfinished_trips"><title>game::sandbox::dashboards::trip_table::make_panel_unfinished_trips - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../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">&#9776;</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_unfinished_trips', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#642-657' 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_unfinished_trips</a></span></h1><pre class='rust fn'>fn make_panel_unfinished_trips(<br>&nbsp;&nbsp;&nbsp;&nbsp;ctx: &amp;mut EventCtx, <br>&nbsp;&nbsp;&nbsp;&nbsp;app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;table: &amp;<a class="struct" href="../../../../game/sandbox/dashboards/table/struct.Table.html" title="struct game::sandbox::dashboards::table::Table">Table</a>&lt;<a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.UnfinishedTrip.html" title="struct game::sandbox::dashboards::trip_table::UnfinishedTrip">UnfinishedTrip</a>, <a class="struct" href="../../../../game/sandbox/dashboards/trip_table/struct.Filters.html" title="struct game::sandbox::dashboards::trip_table::Filters">Filters</a>&gt;<br>) -&gt; 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>

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `trip_category_selector` fn in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, trip_category_selector"><title>game::sandbox::dashboards::trip_table::trip_category_selector - 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">&#9776;</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: 'trip_category_selector', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#559-606' 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=''>trip_category_selector</a></span></h1><pre class='rust fn'>fn trip_category_selector(ctx: &amp;mut EventCtx, app: &amp;<a class="struct" href="../../../../game/app/struct.App.html" title="struct game::app::App">App</a>, tab: <a class="enum" href="../../../../game/sandbox/dashboards/enum.DashTab.html" title="enum game::sandbox::dashboards::DashTab">DashTab</a>) -&gt; Widget</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>

View File

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-708' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../../index.html'>game</a>::<wbr><a href='../../index.html'>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> <!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">&#9776;</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'>&#x2212;</span>]</a></span><a class='srclink' href='../../../../src/game/sandbox/dashboards/trip_table.rs.html#1-657' 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><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><tr class='module-item'><td><a class="struct" href="struct.UnfinishedTripTable.html" title='game::sandbox::dashboards::trip_table::UnfinishedTripTable struct'>UnfinishedTripTable</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2> <table><tr class='module-item'><td><a class="struct" href="struct.CancelledTrip.html" title='game::sandbox::dashboards::trip_table::CancelledTrip struct'>CancelledTrip</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.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><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><tr class='module-item'><td><a class="struct" href="struct.UnfinishedTripTable.html" title='game::sandbox::dashboards::trip_table::UnfinishedTripTable struct'>UnfinishedTripTable</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_panel_unfinished_trips.html" title='game::sandbox::dashboards::trip_table::make_panel_unfinished_trips fn'>make_panel_unfinished_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.make_table_unfinished_trips.html" title='game::sandbox::dashboards::trip_table::make_table_unfinished_trips fn'>make_table_unfinished_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.produce_raw_data.html" title='game::sandbox::dashboards::trip_table::produce_raw_data fn'>produce_raw_data</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "game";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html> <table><tr class='module-item'><td><a class="fn" href="fn.make_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_panel_unfinished_trips.html" title='game::sandbox::dashboards::trip_table::make_panel_unfinished_trips fn'>make_panel_unfinished_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.make_table_unfinished_trips.html" title='game::sandbox::dashboards::trip_table::make_table_unfinished_trips fn'>make_table_unfinished_trips</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.produce_raw_data.html" title='game::sandbox::dashboards::trip_table::produce_raw_data fn'>produce_raw_data</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.trip_category_selector.html" title='game::sandbox::dashboards::trip_table::trip_category_selector fn'>trip_category_selector</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>

View File

@ -1 +1 @@
initSidebarItems({"fn":[["make_panel_cancelled_trips",""],["make_panel_finished_trips",""],["make_panel_unfinished_trips",""],["make_table_cancelled_trips",""],["make_table_finished_trips",""],["make_table_unfinished_trips",""],["produce_raw_data",""]],"struct":[["CancelledTrip",""],["CancelledTripTable",""],["Filters",""],["FinishedTrip",""],["FinishedTripTable",""],["UnfinishedTrip",""],["UnfinishedTripTable",""]]}); initSidebarItems({"fn":[["make_panel_cancelled_trips",""],["make_panel_finished_trips",""],["make_panel_unfinished_trips",""],["make_table_cancelled_trips",""],["make_table_finished_trips",""],["make_table_unfinished_trips",""],["produce_raw_data",""],["trip_category_selector",""]],"struct":[["CancelledTrip",""],["CancelledTripTable",""],["Filters",""],["FinishedTrip",""],["FinishedTripTable",""],["UnfinishedTrip",""],["UnfinishedTripTable",""]]});

View File

@ -1,8 +1,8 @@
<!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 `Input` struct in crate `import_traffic`."><meta name="keywords" content="rust, rustlang, rust-lang, Input"><title>import_traffic::Input - 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">&#9776;</div><a href='../import_traffic/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Input</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.people">people</a><a href="#structfield.scenario_name">scenario_name</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</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&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class='location'><a href='index.html'>import_traffic</a></p><script>window.sidebarCurrent = {name: 'Input', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#24-27' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>import_traffic</a>::<wbr><a class="struct" href=''>Input</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Input { <!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 `Input` struct in crate `import_traffic`."><meta name="keywords" content="rust, rustlang, rust-lang, Input"><title>import_traffic::Input - 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">&#9776;</div><a href='../import_traffic/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Input</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.people">people</a><a href="#structfield.scenario_name">scenario_name</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Deserialize%3C%27de%3E">Deserialize&lt;&#39;de&gt;</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&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></div></div><p class='location'><a href='index.html'>import_traffic</a></p><script>window.sidebarCurrent = {name: 'Input', 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'>&#x2212;</span>]</a></span><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#24-27' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>import_traffic</a>::<wbr><a class="struct" href=''>Input</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Input {
scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
people: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;ExternalPerson&gt;, people: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../sim/make/external/struct.ExternalPerson.html" title="struct sim::make::external::ExternalPerson">ExternalPerson</a>&gt;,
}</pre></div><h2 id='fields' class='fields small-section-header'> }</pre></div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.people" class="structfield small-section-header"><a href="#structfield.people" class="anchor field"></a><code>people: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;ExternalPerson&gt;</code></span><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-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#23' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></code><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#23' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p> Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.people" class="structfield small-section-header"><a href="#structfield.people" class="anchor field"></a><code>people: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../sim/make/external/struct.ExternalPerson.html" title="struct sim::make::external::ExternalPerson">ExternalPerson</a>&gt;</code></span><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-Deserialize%3C%27de%3E' class='impl'><code class='in-band'>impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</a></code><a href='#impl-Deserialize%3C%27de%3E' class='anchor'></a><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#23' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deserialize' class="method hidden"><code>fn <a href='https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html#tymethod.deserialize' class='fnname'>deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="type" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></code><a class='srclink' href='../src/import_traffic/import_traffic.rs.html#23' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.110/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p> </div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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="struct" href="../import_traffic/struct.Input.html" title="struct import_traffic::Input">Input</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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>

File diff suppressed because one or more lines are too long

View File

@ -111,7 +111,7 @@
<span class="doccomment">/// The output of `rustdoc -V`</span> <span class="doccomment">/// The output of `rustdoc -V`</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.46.0 (04488afe3 2020-08-24)&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;rustdoc 1.46.0 (04488afe3 2020-08-24)&quot;</span>;
<span class="doccomment">/// The built-time in RFC2822, UTC</span> <span class="doccomment">/// The built-time in RFC2822, UTC</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Wed, 23 Sep 2020 20:24:49 +0000&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;Wed, 23 Sep 2020 21:20:33 +0000&quot;</span>;
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span> <span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>; <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">&quot;x86_64&quot;</span>;
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span> <span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>

View File

@ -263,7 +263,7 @@
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</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">Polygon</span>; <span class="kw">use</span> <span class="ident">geom</span>::<span class="ident">Polygon</span>;
<span class="kw">use</span> <span class="ident">widgetry</span>::{<span class="ident">Btn</span>, <span class="ident">EventCtx</span>, <span class="ident">GeomBatch</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Widget</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">GeomBatch</span>, <span class="ident">Key</span>, <span class="ident">Line</span>, <span class="ident">Panel</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Widget</span>};
<span class="comment">// TODO With a bit more detangling from App, this could be lifted to widgetry!</span> <span class="comment">// TODO With a bit more detangling from App, this could be lifted to widgetry!</span>
@ -370,7 +370,7 @@
} <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="kw">_</span>) <span class="op">=</span> <span class="ident">col</span>.<span class="ident">col</span> { } <span class="kw">else</span> <span class="kw">if</span> <span class="kw">let</span> <span class="ident">Col</span>::<span class="ident">Sortable</span>(<span class="kw">_</span>) <span class="op">=</span> <span class="ident">col</span>.<span class="ident">col</span> {
<span class="ident">Btn</span>::<span class="ident">text_bg2</span>(<span class="kw-2">&amp;</span><span class="ident">col</span>.<span class="ident">name</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>) <span class="ident">Btn</span>::<span class="ident">text_bg2</span>(<span class="kw-2">&amp;</span><span class="ident">col</span>.<span class="ident">name</span>).<span class="ident">build_def</span>(<span class="ident">ctx</span>, <span class="prelude-val">None</span>)
} <span class="kw">else</span> { } <span class="kw">else</span> {
<span class="ident">Line</span>(<span class="kw-2">&amp;</span><span class="ident">col</span>.<span class="ident">name</span>).<span class="ident">draw</span>(<span class="ident">ctx</span>) <span class="ident">Line</span>(<span class="kw-2">&amp;</span><span class="ident">col</span>.<span class="ident">name</span>).<span class="ident">draw</span>(<span class="ident">ctx</span>).<span class="ident">centered_vert</span>()
} }
}) })
.<span class="ident">collect</span>(); .<span class="ident">collect</span>();
@ -388,36 +388,10 @@
} }
<span class="comment">// Put together the UI</span> <span class="comment">// Put together the UI</span>
<span class="kw">let</span> <span class="ident">table_widget</span> <span class="op">=</span> <span class="ident">make_table</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">headers</span>, <span class="ident">rows</span>, <span class="number">0.88</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>);
<span class="kw">let</span> <span class="ident">pagination</span> <span class="op">=</span> <span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">skip</span> <span class="op">&gt;</span> <span class="number">0</span> {
<span class="ident">Btn</span>::<span class="ident">text_fg</span>(<span class="string">&quot;&lt;&quot;</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;previous&quot;</span>, <span class="prelude-val">None</span>)
} <span class="kw">else</span> {
<span class="ident">Btn</span>::<span class="ident">text_fg</span>(<span class="string">&quot;&lt;&quot;</span>).<span class="ident">inactive</span>(<span class="ident">ctx</span>)
},
<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{}-{} of {}&quot;</span>,
<span class="kw">if</span> <span class="ident">num_filtered</span> <span class="op">&gt;</span> <span class="number">0</span> {
<span class="ident">prettyprint_usize</span>(<span class="self">self</span>.<span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span>)
} <span class="kw">else</span> {
<span class="string">&quot;0&quot;</span>.<span class="ident">to_string</span>()
},
<span class="ident">prettyprint_usize</span>((<span class="self">self</span>.<span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span> <span class="op">+</span> <span class="ident">ROWS</span>).<span class="ident">min</span>(<span class="ident">num_filtered</span>)),
<span class="ident">prettyprint_usize</span>(<span class="ident">num_filtered</span>)
)
.<span class="ident">draw_text</span>(<span class="ident">ctx</span>),
<span class="kw">if</span> <span class="self">self</span>.<span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span> <span class="op">+</span> <span class="ident">ROWS</span> <span class="op">&lt;</span> <span class="ident">num_filtered</span> {
<span class="ident">Btn</span>::<span class="ident">text_fg</span>(<span class="string">&quot;&gt;&quot;</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;next&quot;</span>, <span class="prelude-val">None</span>)
} <span class="kw">else</span> {
<span class="ident">Btn</span>::<span class="ident">text_fg</span>(<span class="string">&quot;&gt;&quot;</span>).<span class="ident">inactive</span>(<span class="ident">ctx</span>)
},
]);
<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[ <span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
(<span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">to_controls</span>)(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">state</span>), (<span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">to_controls</span>)(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">state</span>),
<span class="ident">pagination</span>, <span class="ident">make_table</span>(<span class="ident">ctx</span>, <span class="ident">headers</span>, <span class="ident">rows</span>, <span class="number">0.88</span> <span class="op">*</span> <span class="ident">ctx</span>.<span class="ident">canvas</span>.<span class="ident">window_width</span>),
<span class="ident">table_widget</span>, <span class="ident">make_pagination</span>(<span class="ident">ctx</span>, <span class="ident">num_filtered</span>, <span class="self">self</span>.<span class="ident">skip</span>),
]) ])
} }
@ -448,6 +422,7 @@
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">panel_changed</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">panel</span>: <span class="kw-2">&amp;</span><span class="ident">Panel</span>) { <span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">panel_changed</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">panel</span>: <span class="kw-2">&amp;</span><span class="ident">Panel</span>) {
<span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">state</span> <span class="op">=</span> (<span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">from_controls</span>)(<span class="ident">panel</span>); <span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">state</span> <span class="op">=</span> (<span class="self">self</span>.<span class="ident">filter</span>.<span class="ident">from_controls</span>)(<span class="ident">panel</span>);
<span class="self">self</span>.<span class="ident">skip</span> <span class="op">=</span> <span class="number">0</span>;
} }
} }
@ -463,9 +438,35 @@
} }
} }
<span class="kw">fn</span> <span class="ident">make_pagination</span>(<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">total</span>: <span class="ident">usize</span>, <span class="ident">skip</span>: <span class="ident">usize</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Widget</span> {
<span class="ident">Widget</span>::<span class="ident">row</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="kw">if</span> <span class="ident">skip</span> <span class="op">&gt;</span> <span class="number">0</span> {
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="string">&quot;&lt;&quot;</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;previous&quot;</span>, <span class="ident">Key</span>::<span class="ident">LeftArrow</span>)
} <span class="kw">else</span> {
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="string">&quot;&lt;&quot;</span>).<span class="ident">inactive</span>(<span class="ident">ctx</span>)
},
<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{}-{} of {}&quot;</span>,
<span class="kw">if</span> <span class="ident">total</span> <span class="op">&gt;</span> <span class="number">0</span> {
<span class="ident">prettyprint_usize</span>(<span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span>)
} <span class="kw">else</span> {
<span class="string">&quot;0&quot;</span>.<span class="ident">to_string</span>()
},
<span class="ident">prettyprint_usize</span>((<span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span> <span class="op">+</span> <span class="ident">ROWS</span>).<span class="ident">min</span>(<span class="ident">total</span>)),
<span class="ident">prettyprint_usize</span>(<span class="ident">total</span>)
)
.<span class="ident">draw_text</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>(),
<span class="kw">if</span> <span class="ident">skip</span> <span class="op">+</span> <span class="number">1</span> <span class="op">+</span> <span class="ident">ROWS</span> <span class="op">&lt;</span> <span class="ident">total</span> {
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="string">&quot;&gt;&quot;</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;next&quot;</span>, <span class="ident">Key</span>::<span class="ident">RightArrow</span>)
} <span class="kw">else</span> {
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="string">&quot;&gt;&quot;</span>).<span class="ident">inactive</span>(<span class="ident">ctx</span>)
},
])
}
<span class="kw">fn</span> <span class="ident">make_table</span>( <span class="kw">fn</span> <span class="ident">make_table</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">headers</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Widget</span><span class="op">&gt;</span>, <span class="ident">headers</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Widget</span><span class="op">&gt;</span>,
<span class="ident">rows</span>: <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">String</span>, <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">GeomBatch</span><span class="op">&gt;</span>)<span class="op">&gt;</span>, <span class="ident">rows</span>: <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">String</span>, <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">GeomBatch</span><span class="op">&gt;</span>)<span class="op">&gt;</span>,
<span class="ident">total_width</span>: <span class="ident">f64</span>, <span class="ident">total_width</span>: <span class="ident">f64</span>,
@ -494,8 +495,7 @@
} }
}) })
.<span class="ident">collect</span>(), .<span class="ident">collect</span>(),
) )];
.<span class="ident">bg</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">section_bg</span>)];
<span class="comment">// TODO Maybe can do this now simpler with to_geom</span> <span class="comment">// TODO Maybe can do this now simpler with to_geom</span>
<span class="kw">for</span> (<span class="ident">label</span>, <span class="ident">row</span>) <span class="kw">in</span> <span class="ident">rows</span> { <span class="kw">for</span> (<span class="ident">label</span>, <span class="ident">row</span>) <span class="kw">in</span> <span class="ident">rows</span> {
@ -509,7 +509,7 @@
<span class="kw">let</span> <span class="ident">rect</span> <span class="op">=</span> <span class="ident">Polygon</span>::<span class="ident">rectangle</span>(<span class="ident">total_width</span>, <span class="ident">batch</span>.<span class="ident">get_dims</span>().<span class="ident">height</span>); <span class="kw">let</span> <span class="ident">rect</span> <span class="op">=</span> <span class="ident">Polygon</span>::<span class="ident">rectangle</span>(<span class="ident">total_width</span>, <span class="ident">batch</span>.<span class="ident">get_dims</span>().<span class="ident">height</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">hovered</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>(); <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">hovered</span> <span class="op">=</span> <span class="ident">GeomBatch</span>::<span class="ident">new</span>();
<span class="ident">hovered</span>.<span class="ident">push</span>(<span class="ident">app</span>.<span class="ident">cs</span>.<span class="ident">hovering</span>, <span class="ident">rect</span>.<span class="ident">clone</span>()); <span class="ident">hovered</span>.<span class="ident">push</span>(<span class="ident">Color</span>::<span class="ident">hex</span>(<span class="string">&quot;#7C7C7C&quot;</span>), <span class="ident">rect</span>.<span class="ident">clone</span>());
<span class="ident">hovered</span>.<span class="ident">append</span>(<span class="ident">batch</span>.<span class="ident">clone</span>()); <span class="ident">hovered</span>.<span class="ident">append</span>(<span class="ident">batch</span>.<span class="ident">clone</span>());
<span class="ident">col</span>.<span class="ident">push</span>( <span class="ident">col</span>.<span class="ident">push</span>(

View File

@ -655,57 +655,6 @@
<span id="655">655</span> <span id="655">655</span>
<span id="656">656</span> <span id="656">656</span>
<span id="657">657</span> <span id="657">657</span>
<span id="658">658</span>
<span id="659">659</span>
<span id="660">660</span>
<span id="661">661</span>
<span id="662">662</span>
<span id="663">663</span>
<span id="664">664</span>
<span id="665">665</span>
<span id="666">666</span>
<span id="667">667</span>
<span id="668">668</span>
<span id="669">669</span>
<span id="670">670</span>
<span id="671">671</span>
<span id="672">672</span>
<span id="673">673</span>
<span id="674">674</span>
<span id="675">675</span>
<span id="676">676</span>
<span id="677">677</span>
<span id="678">678</span>
<span id="679">679</span>
<span id="680">680</span>
<span id="681">681</span>
<span id="682">682</span>
<span id="683">683</span>
<span id="684">684</span>
<span id="685">685</span>
<span id="686">686</span>
<span id="687">687</span>
<span id="688">688</span>
<span id="689">689</span>
<span id="690">690</span>
<span id="691">691</span>
<span id="692">692</span>
<span id="693">693</span>
<span id="694">694</span>
<span id="695">695</span>
<span id="696">696</span>
<span id="697">697</span>
<span id="698">698</span>
<span id="699">699</span>
<span id="700">700</span>
<span id="701">701</span>
<span id="702">702</span>
<span id="703">703</span>
<span id="704">704</span>
<span id="705">705</span>
<span id="706">706</span>
<span id="707">707</span>
<span id="708">708</span>
</pre><div class="example-wrap"><pre class="rust "> </pre><div class="example-wrap"><pre class="rust ">
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>; <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">app</span>::<span class="ident">App</span>;
<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">game</span>::<span class="ident">State</span>;
@ -1265,104 +1214,87 @@
<span class="ident">table</span> <span class="ident">table</span>
} }
<span class="kw">fn</span> <span class="ident">trip_category_selector</span>(<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">tab</span>: <span class="ident">DashTab</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Widget</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">&amp;</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="kw">let</span> <span class="ident">btn</span> <span class="op">=</span> <span class="op">|</span><span class="ident">dash</span>, <span class="ident">action</span>, <span class="ident">label</span><span class="op">|</span> {
<span class="kw">if</span> <span class="ident">dash</span> <span class="op">=</span><span class="op">=</span> <span class="ident">tab</span> {
<span class="ident">Text</span>::<span class="ident">from</span>(<span class="ident">Line</span>(<span class="ident">label</span>).<span class="ident">underlined</span>())
.<span class="ident">draw</span>(<span class="ident">ctx</span>)
.<span class="ident">centered_vert</span>()
} <span class="kw">else</span> {
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="ident">label</span>).<span class="ident">build</span>(<span class="ident">ctx</span>, <span class="ident">action</span>, <span class="prelude-val">None</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">DashTab</span>::<span class="ident">FinishedTripTable</span>,
<span class="string">&quot;finished trips&quot;</span>,
<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Finished Trips&quot;</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">margin_right</span>(<span class="number">28</span>),
<span class="ident">btn</span>(
<span class="ident">DashTab</span>::<span class="ident">CancelledTripTable</span>,
<span class="string">&quot;cancelled trips&quot;</span>,
<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{} Cancelled Trips&quot;</span>, <span class="ident">prettyprint_usize</span>(<span class="ident">aborted</span>)),
)
.<span class="ident">margin_right</span>(<span class="number">28</span>),
<span class="ident">btn</span>(
<span class="ident">DashTab</span>::<span class="ident">UnfinishedTripTable</span>,
<span class="string">&quot;unfinished trips&quot;</span>,
<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Unfinished Trips&quot;</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="kw">fn</span> <span class="ident">make_panel_finished_trips</span>( <span class="kw">fn</span> <span class="ident">make_panel_finished_trips</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>, <span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">FinishedTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>,
) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Panel</span> { ) <span class="op">-</span><span class="op">&gt;</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="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="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="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="comment">// TODO Can we avoid iterating through this again?</span> <span class="ident">trip_category_selector</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">DashTab</span>::<span class="ident">FinishedTripTable</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">&amp;</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="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</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="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>(
<span class="ident">Line</span>(<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Finished Trips&quot;</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">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">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{} Cancelled Trips&quot;</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">&quot;cancelled trips&quot;</span>, <span class="prelude-val">None</span>)
.<span class="ident">margin_right</span>(<span class="number">28</span>),
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Unfinished Trips&quot;</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">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;unfinished trips&quot;</span>, <span class="prelude-val">None</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">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">&quot;preview&quot;</span>) .<span class="ident">named</span>(<span class="string">&quot;preview&quot;</span>)
.<span class="ident">centered_horiz</span>(), .<span class="ident">centered_horiz</span>(),
); ]))
.<span class="ident">exact_size_percent</span>(<span class="number">90</span>, <span class="number">90</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">build</span>(<span class="ident">ctx</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>)
} }
<span class="comment">// TODO Dedupe some code</span>
<span class="kw">fn</span> <span class="ident">make_panel_cancelled_trips</span>( <span class="kw">fn</span> <span class="ident">make_panel_cancelled_trips</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">EventCtx</span>,
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">CancelledTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>, <span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">CancelledTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>,
) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Panel</span> { ) <span class="op">-</span><span class="op">&gt;</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="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="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="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="comment">// TODO Can we avoid iterating through this again?</span> <span class="ident">trip_category_selector</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">DashTab</span>::<span class="ident">CancelledTripTable</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">&amp;</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="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</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="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="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">&quot;{} ({:.1}%) Finished Trips&quot;</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">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;finished trips&quot;</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">&quot;{} Cancelled Trips&quot;</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">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Unfinished Trips&quot;</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">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;unfinished trips&quot;</span>, <span class="prelude-val">None</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">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">&quot;preview&quot;</span>) .<span class="ident">named</span>(<span class="string">&quot;preview&quot;</span>)
.<span class="ident">centered_horiz</span>(), .<span class="ident">centered_horiz</span>(),
); ]))
.<span class="ident">exact_size_percent</span>(<span class="number">90</span>, <span class="number">90</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">build</span>(<span class="ident">ctx</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>)
} }
<span class="kw">fn</span> <span class="ident">make_panel_unfinished_trips</span>( <span class="kw">fn</span> <span class="ident">make_panel_unfinished_trips</span>(
@ -1370,50 +1302,16 @@
<span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>,
<span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">UnfinishedTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>, <span class="ident">table</span>: <span class="kw-2">&amp;</span><span class="ident">Table</span><span class="op">&lt;</span><span class="ident">UnfinishedTrip</span>, <span class="ident">Filters</span><span class="op">&gt;</span>,
) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">Panel</span> { ) <span class="op">-</span><span class="op">&gt;</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="ident">Panel</span>::<span class="ident">new</span>(<span class="ident">Widget</span>::<span class="ident">col</span>(<span class="macro">vec</span><span class="macro">!</span>[
<span class="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="ident">DashTab</span>::<span class="ident">UnfinishedTripTable</span>.<span class="ident">picker</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
<span class="comment">// TODO Can we avoid iterating through this again?</span> <span class="ident">trip_category_selector</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">DashTab</span>::<span class="ident">UnfinishedTripTable</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">&amp;</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="ident">table</span>.<span class="ident">render</span>(<span class="ident">ctx</span>, <span class="ident">app</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="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">UnfinishedTripTable</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">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(
<span class="string">&quot;{} ({:.1}%) Finished Trips&quot;</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">build</span>(<span class="ident">ctx</span>, <span class="string">&quot;finished trips&quot;</span>, <span class="prelude-val">None</span>)
.<span class="ident">margin_right</span>(<span class="number">28</span>),
<span class="ident">Btn</span>::<span class="ident">plaintext</span>(<span class="macro">format</span><span class="macro">!</span>(<span class="string">&quot;{} Cancelled Trips&quot;</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">&quot;cancelled trips&quot;</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">&quot;{} ({:.1}%) Unfinished Trips&quot;</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">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">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">&quot;preview&quot;</span>) .<span class="ident">named</span>(<span class="string">&quot;preview&quot;</span>)
.<span class="ident">centered_horiz</span>(), .<span class="ident">centered_horiz</span>(),
); ]))
.<span class="ident">exact_size_percent</span>(<span class="number">90</span>, <span class="number">90</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">build</span>(<span class="ident">ctx</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> </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> </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>