This commit is contained in:
dabreegster 2022-01-27 09:54:30 +00:00
parent e40b6ffab0
commit 2a2f805764
27 changed files with 138 additions and 131 deletions

View File

@ -2,7 +2,7 @@
implementors["abstutil"] = [{"text":"impl&lt;K, V&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"abstutil/collections/struct.MultiMap.html\" title=\"struct abstutil::collections::MultiMap\">MultiMap</a>&lt;K, V&gt; <span class=\"where fmt-newline\">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.Ord.html\" title=\"trait core::cmp::Ord\">Ord</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html\" title=\"trait core::cmp::PartialEq\">PartialEq</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.Ord.html\" title=\"trait core::cmp::Ord\">Ord</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html\" title=\"trait core::cmp::PartialEq\">PartialEq</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a>,&nbsp;</span>","synthetic":false,"types":["abstutil::collections::MultiMap"]},{"text":"impl&lt;T:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.Ord.html\" title=\"trait core::cmp::Ord\">Ord</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html\" title=\"trait core::cmp::PartialEq\">PartialEq</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"abstutil/collections/struct.Counter.html\" title=\"struct abstutil::collections::Counter\">Counter</a>&lt;T&gt;","synthetic":false,"types":["abstutil::collections::Counter"]},{"text":"impl&lt;K:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html\" title=\"trait core::cmp::PartialEq\">PartialEq</a>, V&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"abstutil/collections/struct.VecMap.html\" title=\"struct abstutil::collections::VecMap\">VecMap</a>&lt;K, V&gt;","synthetic":false,"types":["abstutil::collections::VecMap"]},{"text":"impl&lt;K:&nbsp;<a class=\"trait\" href=\"abstutil/collections/trait.IndexableKey.html\" title=\"trait abstutil::collections::IndexableKey\">IndexableKey</a>, V&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"abstutil/collections/struct.FixedMap.html\" title=\"struct abstutil::collections::FixedMap\">FixedMap</a>&lt;K, V&gt;","synthetic":false,"types":["abstutil::collections::FixedMap"]}];
implementors["geom"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"geom/distance/struct.Distance.html\" title=\"struct geom::distance::Distance\">Distance</a>","synthetic":false,"types":["geom::distance::Distance"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"geom/duration/struct.Duration.html\" title=\"struct geom::duration::Duration\">Duration</a>","synthetic":false,"types":["geom::duration::Duration"]},{"text":"impl&lt;T:&nbsp;<a class=\"trait\" href=\"geom/stats/trait.HgramValue.html\" title=\"trait geom::stats::HgramValue\">HgramValue</a>&lt;T&gt;&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"geom/stats/struct.Histogram.html\" title=\"struct geom::stats::Histogram\">Histogram</a>&lt;T&gt;","synthetic":false,"types":["geom::stats::Histogram"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"geom/time/struct.Time.html\" title=\"struct geom::time::Time\">Time</a>","synthetic":false,"types":["geom::time::Time"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"geom/struct.CornerRadii.html\" title=\"struct geom::CornerRadii\">CornerRadii</a>","synthetic":false,"types":["geom::CornerRadii"]}];
implementors["importer"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"importer/configuration/struct.ImporterConfiguration.html\" title=\"struct importer::configuration::ImporterConfiguration\">ImporterConfiguration</a>","synthetic":false,"types":["importer::configuration::ImporterConfiguration"]}];
implementors["ltn"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"ltn/filters/struct.ModalFilters.html\" title=\"struct ltn::filters::ModalFilters\">ModalFilters</a>","synthetic":false,"types":["ltn::filters::ModalFilters"]}];
implementors["ltn"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"ltn/filters/struct.ModalFilters.html\" title=\"struct ltn::filters::ModalFilters\">ModalFilters</a>","synthetic":false,"types":["ltn::filters::ModalFilters"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"ltn/impact/struct.Impact.html\" title=\"struct ltn::impact::Impact\">Impact</a>","synthetic":false,"types":["ltn::impact::Impact"]}];
implementors["map_model"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"map_model/edits/struct.MapEdits.html\" title=\"struct map_model::edits::MapEdits\">MapEdits</a>","synthetic":false,"types":["map_model::edits::MapEdits"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"map_model/make/struct.RawToMapOptions.html\" title=\"struct map_model::make::RawToMapOptions\">RawToMapOptions</a>","synthetic":false,"types":["map_model::make::RawToMapOptions"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"map_model/pathfind/struct.RoutingParams.html\" title=\"struct map_model::pathfind::RoutingParams\">RoutingParams</a>","synthetic":false,"types":["map_model::pathfind::RoutingParams"]}];
implementors["santa"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"santa/music/struct.Music.html\" title=\"struct santa::music::Music\">Music</a>","synthetic":false,"types":["santa::music::Music"]}];
implementors["sim"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"sim/analytics/struct.Analytics.html\" title=\"struct sim::analytics::Analytics\">Analytics</a>","synthetic":false,"types":["sim::analytics::Analytics"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"struct\" href=\"sim/sim/struct.SimOptions.html\" title=\"struct sim::sim::SimOptions\">SimOptions</a>","synthetic":false,"types":["sim::sim::SimOptions"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.58.1/core/default/trait.Default.html\" title=\"trait core::default::Default\">Default</a> for <a class=\"enum\" href=\"sim/sim/enum.AlertHandler.html\" title=\"enum sim::sim::AlertHandler\">AlertHandler</a>","synthetic":false,"types":["sim::sim::AlertHandler"]}];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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 `impact_widget` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, impact_widget"><title>impact_widget in ltn::browse - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">browse</a></h2><div id="sidebar-vars" data-name="impact_widget" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">browse</a>::<wbr><a class="fn" href="#">impact_widget</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/browse.rs.html#257-306" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn impact_widget(ctx: &amp;EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; Widget</code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">browse</a></h2><div id="sidebar-vars" data-name="impact_widget" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">browse</a>::<wbr><a class="fn" href="#">impact_widget</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/browse.rs.html#257-305" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn impact_widget(ctx: &amp;EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; Widget</code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
</body></html>

View File

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

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 `count_throughput` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, count_throughput"><title>count_throughput in ltn::impact - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="count_throughput" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">count_throughput</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#243-287" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn count_throughput(<br>&nbsp;&nbsp;&nbsp;&nbsp;requests: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../map_model/pathfind/v1/struct.PathRequest.html" title="struct map_model::pathfind::v1::PathRequest">PathRequest</a><a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.slice.html">]</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;params: <a class="struct" href="../../map_model/pathfind/struct.RoutingParams.html" title="struct map_model::pathfind::RoutingParams">RoutingParams</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cache_custom: <a class="enum" href="../../map_model/pathfind/pathfinder/enum.PathfinderCaching.html" title="enum map_model::pathfind::pathfinder::PathfinderCaching">PathfinderCaching</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">(</a><a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a>&lt;<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;, <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a>&lt;<a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">)</a></code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="count_throughput" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">count_throughput</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#254-298" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn count_throughput(<br>&nbsp;&nbsp;&nbsp;&nbsp;requests: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../map_model/pathfind/v1/struct.PathRequest.html" title="struct map_model::pathfind::v1::PathRequest">PathRequest</a><a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.slice.html">]</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;params: <a class="struct" href="../../map_model/pathfind/struct.RoutingParams.html" title="struct map_model::pathfind::RoutingParams">RoutingParams</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cache_custom: <a class="enum" href="../../map_model/pathfind/pathfinder/enum.PathfinderCaching.html" title="enum map_model::pathfind::pathfinder::PathfinderCaching">PathfinderCaching</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;timer: &amp;mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a>&lt;'_&gt;<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">(</a><a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a>&lt;<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>&gt;, <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a>&lt;<a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>&gt;<a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">)</a></code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
</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 `end_of_day` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, end_of_day"><title>end_of_day in ltn::impact - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="end_of_day" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">end_of_day</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#317-319" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn end_of_day() -&gt; <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="end_of_day" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">end_of_day</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#328-330" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn end_of_day() -&gt; <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a></code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
</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 `make_world` fn in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, make_world"><title>make_world in ltn::impact - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="make_world" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">make_world</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#295-314" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn make_world(ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; World&lt;<a class="enum" href="enum.Obj.html" title="enum ltn::impact::Obj">Obj</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a></h2><div id="sidebar-vars" data-name="make_world" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">ltn</a>::<wbr><a href="index.html">impact</a>::<wbr><a class="fn" href="#">make_world</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#306-325" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust fn"><code>fn make_world(ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; World&lt;<a class="enum" href="enum.Obj.html" title="enum ltn::impact::Obj">Obj</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
</body></html>

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 `impact` mod in crate `ltn`."><meta name="keywords" content="rust, rustlang, rust-lang, impact"><title>ltn::impact - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module impact</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="impact" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">ltn</a>::<wbr><a class="mod" href="#">impact</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#1-319" title="goto source code">[src]</a></span></h1><h2 id="reexports" class="small-section-header"><a href="#reexports">Re-exports</a></h2>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../ltn/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module impact</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="impact" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">ltn</a>::<wbr><a class="mod" href="#">impact</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><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/ltn/impact/mod.rs.html#1-330" title="goto source code">[src]</a></span></h1><h2 id="reexports" class="small-section-header"><a href="#reexports">Re-exports</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left import-item"><code>pub use self::ui::<a class="struct" href="ui/struct.ShowResults.html" title="struct ltn::impact::ui::ShowResults">ShowResults</a>;</code></div><div class="item-right docblock-short"></div></div></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="ui/index.html" title="ltn::impact::ui mod">ui</a></div><div class="item-right docblock-short"></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Filters.html" title="ltn::impact::Filters struct">Filters</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Results.html" title="ltn::impact::Results struct">Results</a></div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Filters.html" title="ltn::impact::Filters struct">Filters</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Impact.html" title="ltn::impact::Impact struct">Impact</a></div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Obj.html" title="ltn::impact::Obj enum">Obj</a></div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.count_throughput.html" title="ltn::impact::count_throughput fn">count_throughput</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.end_of_day.html" title="ltn::impact::end_of_day fn">end_of_day</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.make_world.html" title="ltn::impact::make_world fn">make_world</a></div><div class="item-right docblock-short"></div></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="ltn" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
</body></html>

View File

@ -1 +1 @@
initSidebarItems({"enum":[["Obj",""]],"fn":[["count_throughput",""],["end_of_day",""],["make_world",""]],"mod":[["ui",""]],"struct":[["Filters",""],["Results",""]]});
initSidebarItems({"enum":[["Obj",""]],"fn":[["count_throughput",""],["end_of_day",""],["make_world",""]],"mod":[["ui",""]],"struct":[["Filters",""],["Impact",""]]});

View File

@ -3,7 +3,7 @@
pub modes: <a class="struct" href="https://doc.rust-lang.org/1.58.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="enum" href="../../sim/trips/enum.TripMode.html" title="enum sim::trips::TripMode">TripMode</a>&gt;,
pub include_borders: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a>,
pub departure_time: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a><a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">)</a>,
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.modes" class="structfield small-section-header"><a href="#structfield.modes" class="anchor field"></a><code>modes: <a class="struct" href="https://doc.rust-lang.org/1.58.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="enum" href="../../sim/trips/enum.TripMode.html" title="enum sim::trips::TripMode">TripMode</a>&gt;</code></span><span id="structfield.include_borders" class="structfield small-section-header"><a href="#structfield.include_borders" class="anchor field"></a><code>include_borders: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a></code></span><span id="structfield.departure_time" class="structfield small-section-header"><a href="#structfield.departure_time" class="anchor field"></a><code>departure_time: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a><a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">)</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#211-256" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div></summary><div class="impl-items"><div id="method.from_panel" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#212-227" title="goto source code">[src]</a></div><a href="#method.from_panel" class="anchor"></a><h4 class="code-header">fn <a href="#method.from_panel" class="fnname">from_panel</a>(panel: &amp;Panel) -&gt; <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h4></div><div id="method.to_panel" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#229-255" title="goto source code">[src]</a></div><a href="#method.to_panel" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_panel" class="fnname">to_panel</a>(&amp;self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; Widget</h4></div></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CFilters%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CFilters%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a>&gt; for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.modes" class="structfield small-section-header"><a href="#structfield.modes" class="anchor field"></a><code>modes: <a class="struct" href="https://doc.rust-lang.org/1.58.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;<a class="enum" href="../../sim/trips/enum.TripMode.html" title="enum sim::trips::TripMode">TripMode</a>&gt;</code></span><span id="structfield.include_borders" class="structfield small-section-header"><a href="#structfield.include_borders" class="anchor field"></a><code>include_borders: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a></code></span><span id="structfield.departure_time" class="structfield small-section-header"><a href="#structfield.departure_time" class="anchor field"></a><code>departure_time: <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a><a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.tuple.html">)</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#204-249" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div></summary><div class="impl-items"><div id="method.from_panel" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#205-220" title="goto source code">[src]</a></div><a href="#method.from_panel" class="anchor"></a><h4 class="code-header">fn <a href="#method.from_panel" class="fnname">from_panel</a>(panel: &amp;Panel) -&gt; <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h4></div><div id="method.to_panel" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/ui.rs.html#222-248" title="goto source code">[src]</a></div><a href="#method.to_panel" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_panel" class="fnname">to_panel</a>(&amp;self, ctx: &amp;mut EventCtx&lt;'_&gt;, app: &amp;<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a>&lt;<a class="struct" href="../struct.Session.html" title="struct ltn::Session">Session</a>&gt;) -&gt; Widget</h4></div></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CFilters%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CFilters%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a>&gt; for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.58.1/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.58.1/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></details></div></details><div id="impl-StructuralPartialEq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/ltn/impact/mod.rs.html#48" title="goto source code">[src]</a></div><a href="#impl-StructuralPartialEq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></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"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.58.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Filters.html" title="struct ltn::impact::Filters">Filters</a></h3></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"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.58.1/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.58.1/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/1.58.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.58.1/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.58.1/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/1.58.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.58.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@ -304,7 +304,6 @@
<span id="303">303</span>
<span id="304">304</span>
<span id="305">305</span>
<span id="306">306</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections::HashSet</span>;
<span class="kw">use</span> <span class="ident">abstutil::Timer</span>;
@ -564,45 +563,44 @@
<span class="kw">fn</span> <span class="ident">impact_widget</span>(<span class="ident">ctx</span>: <span class="kw-2">&amp;</span><span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="ident">App</span>) -&gt; <span class="ident">Widget</span> {
<span class="kw">let</span> <span class="ident">map_name</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_name</span>();
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">ref</span> <span class="ident">results</span>) <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> {
<span class="kw">if</span> <span class="kw-2">&amp;</span><span class="ident">results</span>.<span class="ident">map</span> <span class="op">==</span> <span class="ident">map_name</span> {
<span class="kw">if</span> <span class="ident">results</span>.<span class="ident">change_key</span> <span class="op">==</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">modal_filters</span>.<span class="ident">change_key</span> {
<span class="comment">// Nothing to calculate!</span>
<span class="kw">return</span> <span class="ident">ctx</span>
.<span class="ident">style</span>()
.<span class="ident">btn_solid_primary</span>
.<span class="ident">text</span>(<span class="string">&quot;Show impact&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>);
}
<span class="comment">// We&#39;ll need to do some pathfinding</span>
<span class="kw">return</span> <span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">Text::from_multiline</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Predicting impact of your proposal may take a moment.&quot;</span>),
<span class="ident">Line</span>(<span class="string">&quot;The application may freeze up during that time.&quot;</span>),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_solid_primary</span>
.<span class="ident">text</span>(<span class="string">&quot;Calculate&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
]);
<span class="kw">if</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">map</span> <span class="op">!</span><span class="op">=</span> <span class="ident">map_name</span> {
<span class="comment">// Starting from scratch</span>
<span class="kw">let</span> <span class="ident">scenario_name</span> <span class="op">=</span> <span class="ident">Scenario::default_scenario_for_map</span>(<span class="ident">map_name</span>);
<span class="kw">if</span> <span class="ident">scenario_name</span> <span class="op">==</span> <span class="string">&quot;home_to_work&quot;</span> {
<span class="kw">return</span> <span class="string">&quot;This city doesn&#39;t have travel demand model data available&quot;</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>);
}
<span class="kw">let</span> <span class="ident">size</span> <span class="op">=</span> <span class="ident">abstio::Manifest::load</span>()
.<span class="ident">get_entry</span>(<span class="kw-2">&amp;</span><span class="ident">abstio::path_scenario</span>(<span class="ident">map_name</span>, <span class="kw-2">&amp;</span><span class="ident">scenario_name</span>))
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">entry</span><span class="op">|</span> <span class="ident">abstutil::prettyprint_bytes</span>(<span class="ident">entry</span>.<span class="ident">compressed_size_bytes</span>))
.<span class="ident">unwrap_or_else</span>(<span class="op">|</span><span class="op">|</span> <span class="string">&quot;???&quot;</span>.<span class="ident">to_string</span>());
<span class="kw">return</span> <span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">Text::from_multiline</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Predicting impact of your proposal may take a moment.&quot;</span>),
<span class="ident">Line</span>(<span class="string">&quot;The application may freeze up during that time.&quot;</span>),
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;We need to load a {} file&quot;</span>, <span class="ident">size</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">ctx</span>.<span class="ident">style</span>()
.<span class="ident">btn_solid_primary</span>
.<span class="ident">text</span>(<span class="string">&quot;Calculate&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>),
]);
}
<span class="comment">// Starting from scratch</span>
<span class="kw">let</span> <span class="ident">scenario_name</span> <span class="op">=</span> <span class="ident">Scenario::default_scenario_for_map</span>(<span class="kw-2">&amp;</span><span class="ident">map_name</span>);
<span class="kw">if</span> <span class="ident">scenario_name</span> <span class="op">==</span> <span class="string">&quot;home_to_work&quot;</span> {
<span class="kw">return</span> <span class="string">&quot;This city doesn&#39;t have travel demand model data available&quot;</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>);
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">change_key</span> <span class="op">==</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">modal_filters</span>.<span class="ident">change_key</span> {
<span class="comment">// Nothing to calculate!</span>
<span class="kw">return</span> <span class="ident">ctx</span>
.<span class="ident">style</span>()
.<span class="ident">btn_solid_primary</span>
.<span class="ident">text</span>(<span class="string">&quot;Show impact&quot;</span>)
.<span class="ident">build_def</span>(<span class="ident">ctx</span>);
}
<span class="kw">let</span> <span class="ident">size</span> <span class="op">=</span> <span class="ident">abstio::Manifest::load</span>()
.<span class="ident">get_entry</span>(<span class="kw-2">&amp;</span><span class="ident">abstio::path_scenario</span>(<span class="kw-2">&amp;</span><span class="ident">map_name</span>, <span class="kw-2">&amp;</span><span class="ident">scenario_name</span>))
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">entry</span><span class="op">|</span> <span class="ident">abstutil::prettyprint_bytes</span>(<span class="ident">entry</span>.<span class="ident">compressed_size_bytes</span>))
.<span class="ident">unwrap_or_else</span>(<span class="op">|</span><span class="op">|</span> <span class="string">&quot;???&quot;</span>.<span class="ident">to_string</span>());
<span class="comment">// We&#39;ll need to do some pathfinding</span>
<span class="ident">Widget::col</span>(<span class="macro">vec!</span>[
<span class="ident">Text::from_multiline</span>(<span class="macro">vec!</span>[
<span class="ident">Line</span>(<span class="string">&quot;Predicting impact of your proposal may take a moment.&quot;</span>),
<span class="ident">Line</span>(<span class="string">&quot;The application may freeze up during that time.&quot;</span>),
<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;We need to load a {} file&quot;</span>, <span class="ident">size</span>)),
])
.<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="ident">ctx</span>.<span class="ident">style</span>()

View File

@ -318,6 +318,17 @@
<span id="317">317</span>
<span id="318">318</span>
<span id="319">319</span>
<span id="320">320</span>
<span id="321">321</span>
<span id="322">322</span>
<span id="323">323</span>
<span id="324">324</span>
<span id="325">325</span>
<span id="326">326</span>
<span id="327">327</span>
<span id="328">328</span>
<span id="329">329</span>
<span id="330">330</span>
</pre><pre class="rust"><code><span class="kw">mod</span> <span class="ident">ui</span>;
<span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
@ -347,7 +358,7 @@
<span class="comment">// - all_trips and everything else depends just on the map (we only have one scenario per map now)</span>
<span class="comment">// - filtered_trips and below depend on filters</span>
<span class="comment">// - after_world and relative_world depend on change_key (for when the map is edited)</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Results</span> {
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Impact</span> {
<span class="kw">pub</span> <span class="ident">map</span>: <span class="ident">MapName</span>,
<span class="kw">pub</span> <span class="ident">filters</span>: <span class="ident">Filters</span>,
<span class="ident">all_trips</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">PathRequest</span><span class="op">&gt;</span>,
@ -381,30 +392,16 @@
}
<span class="kw">impl</span> <span class="ident">ObjectID</span> <span class="kw">for</span> <span class="ident">Obj</span> {}
<span class="kw">impl</span> <span class="ident">Results</span> {
<span class="kw">fn</span> <span class="ident">from_scenario</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;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">scenario</span>: <span class="ident">Scenario</span>,
<span class="ident">timer</span>: <span class="kw-2">&amp;mut</span> <span class="ident">Timer</span>,
) -&gt; <span class="ident">Results</span> {
<span class="kw">let</span> <span class="ident">map</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">map</span>;
<span class="kw">let</span> <span class="ident">all_trips</span> <span class="op">=</span> <span class="ident">timer</span>
.<span class="ident">parallelize</span>(<span class="string">&quot;analyze trips&quot;</span>, <span class="ident">scenario</span>.<span class="ident">all_trips</span>().<span class="ident">collect</span>(), <span class="op">|</span><span class="ident">trip</span><span class="op">|</span> {
<span class="ident">TripEndpoint::path_req</span>(<span class="ident">trip</span>.<span class="ident">origin</span>, <span class="ident">trip</span>.<span class="ident">destination</span>, <span class="ident">trip</span>.<span class="ident">mode</span>, <span class="ident">map</span>)
})
.<span class="ident">into_iter</span>()
.<span class="ident">flatten</span>()
.<span class="ident">collect</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">Results</span> {
<span class="ident">map</span>: <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_name</span>().<span class="ident">clone</span>(),
<span class="kw">impl</span> <span class="ident">Default</span> <span class="kw">for</span> <span class="ident">Impact</span> {
<span class="kw">fn</span> <span class="ident">default</span>() -&gt; <span class="self">Self</span> {
<span class="ident">Impact</span> {
<span class="ident">map</span>: <span class="ident">MapName::new</span>(<span class="string">&quot;zz&quot;</span>, <span class="string">&quot;place&quot;</span>, <span class="string">&quot;holder&quot;</span>),
<span class="ident">filters</span>: <span class="ident">Filters</span> {
<span class="ident">modes</span>: <span class="macro">vec!</span>[<span class="ident">TripMode::Drive</span>].<span class="ident">into_iter</span>().<span class="ident">collect</span>(),
<span class="ident">include_borders</span>: <span class="bool-val">true</span>,
<span class="ident">departure_time</span>: (<span class="ident">Time::START_OF_DAY</span>, <span class="ident">end_of_day</span>()),
},
<span class="ident">all_trips</span>,
<span class="ident">all_trips</span>: <span class="ident">Vec::new</span>(),
<span class="ident">filtered_trips</span>: <span class="ident">Vec::new</span>(),
<span class="ident">before_world</span>: <span class="ident">World::unbounded</span>(),
@ -416,10 +413,31 @@
<span class="ident">after_road_counts</span>: <span class="ident">Counter::new</span>(),
<span class="ident">after_intersection_counts</span>: <span class="ident">Counter::new</span>(),
<span class="ident">relative_world</span>: <span class="ident">World::unbounded</span>(),
};
<span class="ident">results</span>.<span class="ident">recalculate_filters</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">results</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">results</span>
}
}
}
<span class="kw">impl</span> <span class="ident">Impact</span> {
<span class="kw">fn</span> <span class="ident">from_scenario</span>(
<span class="ident">ctx</span>: <span class="kw-2">&amp;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">scenario</span>: <span class="ident">Scenario</span>,
<span class="ident">timer</span>: <span class="kw-2">&amp;mut</span> <span class="ident">Timer</span>,
) -&gt; <span class="ident">Impact</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">impact</span> <span class="op">=</span> <span class="ident">Impact::default</span>();
<span class="kw">let</span> <span class="ident">map</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">map</span>;
<span class="ident">impact</span>.<span class="ident">map</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_name</span>().<span class="ident">clone</span>();
<span class="ident">impact</span>.<span class="ident">all_trips</span> <span class="op">=</span> <span class="ident">timer</span>
.<span class="ident">parallelize</span>(<span class="string">&quot;analyze trips&quot;</span>, <span class="ident">scenario</span>.<span class="ident">all_trips</span>().<span class="ident">collect</span>(), <span class="op">|</span><span class="ident">trip</span><span class="op">|</span> {
<span class="ident">TripEndpoint::path_req</span>(<span class="ident">trip</span>.<span class="ident">origin</span>, <span class="ident">trip</span>.<span class="ident">destination</span>, <span class="ident">trip</span>.<span class="ident">mode</span>, <span class="ident">map</span>)
})
.<span class="ident">into_iter</span>()
.<span class="ident">flatten</span>()
.<span class="ident">collect</span>();
<span class="ident">impact</span>.<span class="ident">recalculate_filters</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">impact</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">impact</span>
}
<span class="kw">fn</span> <span class="ident">recalculate_filters</span>(<span class="kw-2">&amp;mut</span> <span class="self">self</span>, <span class="ident">ctx</span>: <span class="kw-2">&amp;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">timer</span>: <span class="kw-2">&amp;mut</span> <span class="ident">Timer</span>) {
@ -558,6 +576,10 @@
<span class="ident">txt</span>.<span class="ident">add_line</span>(<span class="ident">Line</span>(<span class="macro">format!</span>(<span class="string">&quot;After/before: {:.2}&quot;</span>, <span class="ident">ratio</span>)));
<span class="ident">txt</span>
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">is_empty</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">bool</span> {
<span class="self">self</span>.<span class="ident">all_trips</span>.<span class="ident">is_empty</span>()
}
}
<span class="kw">fn</span> <span class="ident">count_throughput</span>(

View File

@ -248,13 +248,6 @@
<span id="247">247</span>
<span id="248">248</span>
<span id="249">249</span>
<span id="250">250</span>
<span id="251">251</span>
<span id="252">252</span>
<span id="253">253</span>
<span id="254">254</span>
<span id="255">255</span>
<span id="256">256</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::collections::BTreeSet</span>;
<span class="kw">use</span> <span class="ident">abstutil::prettyprint_usize</span>;
@ -267,7 +260,7 @@
<span class="ident">Slider</span>, <span class="ident">State</span>, <span class="ident">Text</span>, <span class="ident">TextExt</span>, <span class="ident">Toggle</span>, <span class="ident">VerticalAlignment</span>, <span class="ident">Widget</span>,
};
<span class="kw">use</span> <span class="kw">super</span>::{<span class="ident">end_of_day</span>, <span class="ident">Filters</span>, <span class="ident">Obj</span>, <span class="ident">Results</span>};
<span class="kw">use</span> <span class="kw">super</span>::{<span class="ident">end_of_day</span>, <span class="ident">Filters</span>, <span class="ident">Impact</span>, <span class="ident">Obj</span>};
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">App</span>, <span class="ident">BrowseNeighborhoods</span>, <span class="ident">Transition</span>};
<span class="comment">// TODO Share structure or pieces with Ungap&#39;s predict mode</span>
@ -289,13 +282,7 @@
<span class="kw">impl</span> <span class="ident">ShowResults</span> {
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new_state</span>(<span class="ident">ctx</span>: <span class="kw-2">&amp;mut</span> <span class="ident">EventCtx</span>, <span class="ident">app</span>: <span class="kw-2">&amp;mut</span> <span class="ident">App</span>) -&gt; <span class="ident">Box</span><span class="op">&lt;</span><span class="kw">dyn</span> <span class="ident">State</span><span class="op">&lt;</span><span class="ident">App</span><span class="op">&gt;</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">map_name</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">map</span>.<span class="ident">get_name</span>().<span class="ident">clone</span>();
<span class="kw">if</span> <span class="ident">app</span>
.<span class="ident">session</span>
.<span class="ident">impact</span>
.<span class="ident">as_ref</span>()
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="ident">i</span>.<span class="ident">map</span> <span class="op">!</span><span class="op">=</span> <span class="ident">map_name</span>)
.<span class="ident">unwrap_or</span>(<span class="bool-val">true</span>)
{
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">map</span> <span class="op">!</span><span class="op">=</span> <span class="ident">map_name</span> {
<span class="kw">let</span> <span class="ident">scenario_name</span> <span class="op">=</span> <span class="ident">Scenario::default_scenario_for_map</span>(<span class="kw-2">&amp;</span><span class="ident">map_name</span>);
<span class="kw">return</span> <span class="ident">FileLoader</span>::<span class="op">&lt;</span><span class="ident">App</span>, <span class="ident">Scenario</span><span class="op">&gt;</span><span class="ident">::new_state</span>(
<span class="ident">ctx</span>,
@ -303,25 +290,24 @@
<span class="ident">Box::new</span>(<span class="kw">move</span> <span class="op">|</span><span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>, <span class="ident">maybe_scenario</span><span class="op">|</span> {
<span class="comment">// TODO Handle corrupt files</span>
<span class="kw">let</span> <span class="ident">scenario</span> <span class="op">=</span> <span class="ident">maybe_scenario</span>.<span class="ident">unwrap</span>();
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Results::from_scenario</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">scenario</span>, <span class="ident">timer</span>));
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="ident">Impact::from_scenario</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">scenario</span>, <span class="ident">timer</span>);
<span class="ident">Transition::Replace</span>(<span class="ident">ShowResults::new_state</span>(<span class="ident">ctx</span>, <span class="ident">app</span>))
}),
);
}
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>().<span class="ident">change_key</span> <span class="op">!</span><span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">modal_filters</span>.<span class="ident">change_key</span> {
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">change_key</span> <span class="op">!</span><span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">modal_filters</span>.<span class="ident">change_key</span> {
<span class="ident">ctx</span>.<span class="ident">loading_screen</span>(<span class="string">&quot;recalculate impact&quot;</span>, <span class="op">|</span><span class="ident">ctx</span>, <span class="ident">timer</span><span class="op">|</span> {
<span class="comment">// Avoid a double borrow</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>();
<span class="ident">results</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">results</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">impact</span> <span class="op">=</span> <span class="ident">std::mem::take</span>(<span class="kw-2">&amp;mut</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>);
<span class="ident">impact</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="ident">impact</span>;
});
}
<span class="comment">// Start with the relative layer if anything has changed</span>
<span class="kw">let</span> <span class="ident">layer</span> <span class="op">=</span> {
<span class="kw">let</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>();
<span class="kw">if</span> <span class="ident">results</span>.<span class="ident">before_road_counts</span> <span class="op">==</span> <span class="ident">results</span>.<span class="ident">after_road_counts</span> {
<span class="kw">if</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">before_road_counts</span> <span class="op">==</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">after_road_counts</span> {
<span class="ident">Layer::Before</span>
} <span class="kw">else</span> {
<span class="ident">Layer::Relative</span>
@ -335,7 +321,7 @@
]),
<span class="ident">Text::from</span>(<span class="ident">Line</span>(<span class="string">&quot;This tool starts with a travel demand model, calculates the route every trip takes before and after changes, and displays volumes along roads and intersections&quot;</span>)).<span class="ident">wrap_to_pct</span>(<span class="ident">ctx</span>, <span class="number">20</span>).<span class="ident">into_widget</span>(<span class="ident">ctx</span>),
<span class="comment">// TODO Dropdown for the scenario, and explain its source/limitations</span>
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>().<span class="ident">filters</span>.<span class="ident">to_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">filters</span>.<span class="ident">to_panel</span>(<span class="ident">ctx</span>, <span class="ident">app</span>),
<span class="ident">Widget::row</span>(<span class="macro">vec!</span>[
<span class="string">&quot;Show counts:&quot;</span>.<span class="ident">text_widget</span>(<span class="ident">ctx</span>).<span class="ident">centered_vert</span>().<span class="ident">margin_right</span>(<span class="number">20</span>),
<span class="ident">Widget::dropdown</span>(
@ -370,20 +356,20 @@
<span class="comment">// TODO Or do an EnumMap of Layer</span>
<span class="kw">fn</span> <span class="ident">world</span><span class="op">&lt;</span><span class="lifetime">&#39;a</span><span class="op">&gt;</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="lifetime">&#39;a</span> <span class="ident">App</span>) -&gt; <span class="kw-2">&amp;</span><span class="lifetime">&#39;a</span> <span class="ident">World</span><span class="op">&lt;</span><span class="ident">Obj</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>();
<span class="kw">let</span> <span class="ident">impact</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>;
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">layer</span> {
<span class="ident">Layer::Before</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">results</span>.<span class="ident">before_world</span>,
<span class="ident">Layer::After</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">results</span>.<span class="ident">after_world</span>,
<span class="ident">Layer::Relative</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">results</span>.<span class="ident">relative_world</span>,
<span class="ident">Layer::Before</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">impact</span>.<span class="ident">before_world</span>,
<span class="ident">Layer::After</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">impact</span>.<span class="ident">after_world</span>,
<span class="ident">Layer::Relative</span> =&gt; <span class="kw-2">&amp;</span><span class="ident">impact</span>.<span class="ident">relative_world</span>,
}
}
<span class="kw">fn</span> <span class="ident">world_mut</span><span class="op">&lt;</span><span class="lifetime">&#39;a</span><span class="op">&gt;</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">app</span>: <span class="kw-2">&amp;</span><span class="lifetime">&#39;a</span> <span class="kw-2">mut</span> <span class="ident">App</span>) -&gt; <span class="kw-2">&amp;</span><span class="lifetime">&#39;a</span> <span class="kw-2">mut</span> <span class="ident">World</span><span class="op">&lt;</span><span class="ident">Obj</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_mut</span>().<span class="ident">unwrap</span>();
<span class="kw">let</span> <span class="ident">impact</span> <span class="op">=</span> <span class="kw-2">&amp;mut</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>;
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">layer</span> {
<span class="ident">Layer::Before</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">results</span>.<span class="ident">before_world</span>,
<span class="ident">Layer::After</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">results</span>.<span class="ident">after_world</span>,
<span class="ident">Layer::Relative</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">results</span>.<span class="ident">relative_world</span>,
<span class="ident">Layer::Before</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">impact</span>.<span class="ident">before_world</span>,
<span class="ident">Layer::After</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">impact</span>.<span class="ident">after_world</span>,
<span class="ident">Layer::Relative</span> =&gt; <span class="kw-2">&amp;mut</span> <span class="ident">impact</span>.<span class="ident">relative_world</span>,
}
}
}
@ -418,18 +404,18 @@
}
<span class="kw">let</span> <span class="ident">filters</span> <span class="op">=</span> <span class="ident">Filters::from_panel</span>(<span class="ident">panel</span>);
<span class="kw">if</span> <span class="ident">filters</span> <span class="op">==</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>().<span class="ident">filters</span> {
<span class="kw">if</span> <span class="ident">filters</span> <span class="op">==</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">filters</span> {
<span class="kw">return</span> <span class="prelude-val">None</span>;
}
<span class="comment">// Avoid a double borrow</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>();
<span class="ident">results</span>.<span class="ident">filters</span> <span class="op">=</span> <span class="ident">Filters::from_panel</span>(<span class="ident">panel</span>);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">impact</span> <span class="op">=</span> <span class="ident">std::mem::take</span>(<span class="kw-2">&amp;mut</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>);
<span class="ident">impact</span>.<span class="ident">filters</span> <span class="op">=</span> <span class="ident">Filters::from_panel</span>(<span class="ident">panel</span>);
<span class="ident">ctx</span>.<span class="ident">loading_screen</span>(<span class="string">&quot;update filters&quot;</span>, <span class="op">|</span><span class="ident">ctx</span>, <span class="ident">timer</span><span class="op">|</span> {
<span class="ident">results</span>.<span class="ident">recalculate_filters</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">results</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">impact</span>.<span class="ident">recalculate_filters</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
<span class="ident">impact</span>.<span class="ident">recalculate_impact</span>(<span class="ident">ctx</span>, <span class="ident">app</span>, <span class="ident">timer</span>);
});
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">results</span>);
<span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span> <span class="op">=</span> <span class="ident">impact</span>;
<span class="prelude-val">None</span>
}
@ -441,20 +427,20 @@
<span class="comment">// TODO Manually generate tooltips last-minute. It&#39;d be quite worth making the World be</span>
<span class="comment">// able to handle this.</span>
<span class="kw">let</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>.<span class="ident">as_ref</span>().<span class="ident">unwrap</span>();
<span class="kw">let</span> <span class="ident">impact</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">app</span>.<span class="ident">session</span>.<span class="ident">impact</span>;
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">id</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">world</span>(<span class="ident">app</span>).<span class="ident">get_hovering</span>() {
<span class="kw">let</span> <span class="ident">count</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">id</span> {
<span class="ident">Obj::Road</span>(<span class="ident">r</span>) =&gt; <span class="kw">match</span> <span class="self">self</span>.<span class="ident">layer</span> {
<span class="ident">Layer::Before</span> =&gt; <span class="ident">results</span>.<span class="ident">before_road_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>),
<span class="ident">Layer::After</span> =&gt; <span class="ident">results</span>.<span class="ident">after_road_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>),
<span class="ident">Layer::Before</span> =&gt; <span class="ident">impact</span>.<span class="ident">before_road_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>),
<span class="ident">Layer::After</span> =&gt; <span class="ident">impact</span>.<span class="ident">after_road_counts</span>.<span class="ident">get</span>(<span class="ident">r</span>),
<span class="ident">Layer::Relative</span> =&gt; {
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">results</span>.<span class="ident">relative_road_tooltip</span>(<span class="ident">r</span>));
<span class="ident">g</span>.<span class="ident">draw_mouse_tooltip</span>(<span class="ident">impact</span>.<span class="ident">relative_road_tooltip</span>(<span class="ident">r</span>));
<span class="kw">return</span>;
}
},
<span class="ident">Obj::Intersection</span>(<span class="ident">i</span>) =&gt; <span class="kw">match</span> <span class="self">self</span>.<span class="ident">layer</span> {
<span class="ident">Layer::Before</span> =&gt; <span class="ident">results</span>.<span class="ident">before_intersection_counts</span>.<span class="ident">get</span>(<span class="ident">i</span>),
<span class="ident">Layer::After</span> =&gt; <span class="ident">results</span>.<span class="ident">after_intersection_counts</span>.<span class="ident">get</span>(<span class="ident">i</span>),
<span class="ident">Layer::Before</span> =&gt; <span class="ident">impact</span>.<span class="ident">before_intersection_counts</span>.<span class="ident">get</span>(<span class="ident">i</span>),
<span class="ident">Layer::After</span> =&gt; <span class="ident">impact</span>.<span class="ident">after_intersection_counts</span>.<span class="ident">get</span>(<span class="ident">i</span>),
<span class="ident">Layer::Relative</span> =&gt; {
<span class="kw">return</span>;
}

View File

@ -153,7 +153,7 @@
<span class="ident">partitioning</span>: <span class="ident">Partitioning::empty</span>(),
<span class="ident">modal_filters</span>: <span class="ident">ModalFilters::default</span>(),
<span class="ident">impact</span>: <span class="prelude-val">None</span>,
<span class="ident">impact</span>: <span class="ident">impact::Impact::default</span>(),
<span class="ident">highlight_boundary_roads</span>: <span class="bool-val">true</span>,
<span class="ident">draw_neighborhood_style</span>: <span class="ident">browse::Style::SimpleColoring</span>,
@ -196,7 +196,7 @@
<span class="kw">pub</span> <span class="ident">partitioning</span>: <span class="ident">Partitioning</span>,
<span class="kw">pub</span> <span class="ident">modal_filters</span>: <span class="ident">ModalFilters</span>,
<span class="kw">pub</span> <span class="ident">impact</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">impact::Results</span><span class="op">&gt;</span>,
<span class="kw">pub</span> <span class="ident">impact</span>: <span class="ident">impact::Impact</span>,
<span class="comment">// Remember form settings in different tabs.</span>
<span class="comment">// Browse neighborhoods:</span>

View File

@ -175,7 +175,7 @@
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;rustdoc 1.58.1 (db9d1b20b 2022-01-20)&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Wed, 26 Jan 2022 14:25:16 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Thu, 27 Jan 2022 09:53:27 +0000&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;x86_64&quot;</span>;