mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-23 22:42:32 +03:00
deploy: 76aba75082
This commit is contained in:
parent
daceb302ce
commit
0392030736
@ -1,7 +1,7 @@
|
||||
<!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="A/B Street organizes data files in a particular way. This crate implements methods to find files and (mostly) treat them the same way on native and web."><meta name="keywords" content="rust, rustlang, rust-lang, abstio"><title>abstio - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../abstio/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate abstio</p><div class="block version"><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all abstio's items</p></a><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"></p><div id="sidebar-vars" data-name="abstio" data-ty="mod" data-relpath="../"></div></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">abstio</a></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">−</span>]</a></span><a class="srclink" href="../src/abstio/lib.rs.html#1-38" title="goto source code">[src]</a></span></h1><div class="docblock"><p>A/B Street organizes data files <a href="https://a-b-street.github.io/docs/dev/data.html">in a particular
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">abstio</a></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">−</span>]</a></span><a class="srclink" href="../src/abstio/lib.rs.html#1-38" title="goto source code">[src]</a></span></h1><div class="docblock"><p>A/B Street organizes data files <a href="https://a-b-street.github.io/docs/tech/dev/data.html">in a particular
|
||||
way</a>. This crate implements methods to
|
||||
find files and (mostly) treat them the same way on native and web.</p>
|
||||
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Draw an isochrone from every intersection border"><meta name="keywords" content="rust, rustlang, rust-lang, create_border_isochrone"><title>fifteen_min::find_amenities::create_border_isochrone - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a></p><div id="sidebar-vars" data-name="create_border_isochrone" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a>::<wbr><a class="fn" href="">create_border_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_amenities.rs.html#59-67" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn create_border_isochrone(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="../../fifteen_min/isochrone/struct.BorderIsochrone.html" title="struct fifteen_min::isochrone::BorderIsochrone">BorderIsochrone</a></pre><div class="docblock"><p>Draw an isochrone from every intersection border</p>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a>::<wbr><a class="fn" href="">create_border_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_amenities.rs.html#59-67" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn create_border_isochrone(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="../../fifteen_min/isochrone/struct.BorderIsochrone.html" title="struct fifteen_min::isochrone::BorderIsochrone">BorderIsochrone</a></pre><div class="docblock"><p>Draw an isochrone from every intersection border</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="For every one of the requested amenity on the map, draw an isochrone"><meta name="keywords" content="rust, rustlang, rust-lang, create_multi_isochrone"><title>fifteen_min::find_amenities::create_multi_isochrone - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a></p><div id="sidebar-vars" data-name="create_multi_isochrone" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a>::<wbr><a class="fn" href="">create_multi_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_amenities.rs.html#41-56" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn create_multi_isochrone(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> category: <a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></pre><div class="docblock"><p>For every one of the requested amenity on the map, draw an isochrone</p>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_amenities</a>::<wbr><a class="fn" href="">create_multi_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_amenities.rs.html#41-56" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn create_multi_isochrone(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> category: <a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></pre><div class="docblock"><p>For every one of the requested amenity on the map, draw an isochrone</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
<!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="For every house in the map, return the percent of amenities located within a 15min walkshed. A single matching business per category is enough to count as satisfied."><meta name="keywords" content="rust, rustlang, rust-lang, score_houses"><title>fifteen_min::find_home::score_houses - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_home</a></p><div id="sidebar-vars" data-name="score_houses" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_home</a>::<wbr><a class="fn" href="">score_houses</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#87-117" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn score_houses(<br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/percent/struct.Percent.html" title="struct geom::percent::Percent">Percent</a>></pre><div class="docblock"><p>For every house in the map, return the percent of amenities located within a 15min walkshed. A
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_home</a>::<wbr><a class="fn" href="">score_houses</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#87-117" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn score_houses(<br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/percent/struct.Percent.html" title="struct geom::percent::Percent">Percent</a>></pre><div class="docblock"><p>For every house in the map, return the percent of amenities located within a 15min walkshed. A
|
||||
single matching business per category is enough to count as satisfied.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
@ -6,7 +6,7 @@
|
||||
}</pre></div><div class="docblock"><p>Ask what types of amenities are necessary to be within a walkshed, then rank every house with
|
||||
how many of those needs are satisfied.</p>
|
||||
</div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.options" class="structfield small-section-header"><a href="#structfield.options" class="anchor field"></a><code>options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/find_home/struct.FindHome.html" title="struct fifteen_min::find_home::FindHome">FindHome</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#22-50" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#23-49" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/find_home/struct.FindHome.html" title="struct fifteen_min::find_home::FindHome">FindHome</a></code><a href="#impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#52-83" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#53-82" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.options" class="structfield small-section-header"><a href="#structfield.options" class="anchor field"></a><code>options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/find_home/struct.FindHome.html" title="struct fifteen_min::find_home::FindHome">FindHome</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#22-50" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> options: <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#23-49" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl SimpleState<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/find_home/struct.FindHome.html" title="struct fifteen_min::find_home::FindHome">FindHome</a></code><a href="#impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#52-83" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> panel: &Panel<br>) -> Transition<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#53-82" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.panel_changed" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
|
@ -4,11 +4,11 @@
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">find_home</a>::<wbr><a class="struct" href="">Results</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#121-123" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct Results {
|
||||
draw_houses: Drawable,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw_houses" class="structfield small-section-header"><a href="#structfield.draw_houses" class="anchor field"></a><code>draw_houses: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#125-173" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> scores: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/percent/struct.Percent.html" title="struct geom::percent::Percent">Percent</a>>, <br> amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#126-172" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl SimpleState<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#175-191" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#176-181" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.draw_houses" class="structfield small-section-header"><a href="#structfield.draw_houses" class="anchor field"></a><code>draw_houses: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#125-173" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> scores: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/percent/struct.Percent.html" title="struct geom::percent::Percent">Percent</a>>, <br> amenities: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#126-172" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl SimpleState<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-SimpleState%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#175-191" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_click" class="method hidden"><code>fn <a href="#method.on_click" class="fnname">on_click</a>(<br> &mut self, <br> _: &mut EventCtx<'_>, <br> _: &mut SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> x: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _: &Panel<br>) -> Transition<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#176-181" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called when something on the panel has been clicked. Since the action is just a string,
|
||||
the fallback case can just use <code>unreachable!()</code>. <a href="#tymethod.on_click">Read more</a></p>
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#183-186" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
</div><h4 id="method.other_event" class="method hidden"><code>fn <a href="#method.other_event" class="fnname">other_event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> _: &mut SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#183-186" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a panel <code>on_click</code> event didn’t occur and <code>panel_changed</code> didn’t return transition, then
|
||||
call this to handle all other events. <a href="#method.other_event">Read more</a></p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#188-190" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/find_home.rs.html#188-190" title="goto source code">[src]</a></h4><h4 id="method.panel_changed" class="method hidden"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(<br> &mut self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &mut Panel<br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>Called when something on the panel has changed. If a transition is returned, stop handling
|
||||
the event and immediately apply the transition. <a href="#method.panel_changed">Read more</a></p>
|
||||
</div><h4 id="method.on_mouseover" class="method hidden"><code>pub fn <a href="#method.on_mouseover" class="fnname">on_mouseover</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Called when the mouse has moved.</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../fifteen_min/find_home/struct.Results.html" title="struct fifteen_min::find_home::Results">Results</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -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 `draw_isochrone` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_isochrone"><title>fifteen_min::isochrone::draw_isochrone - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">isochrone</a></p><div id="sidebar-vars" data-name="draw_isochrone" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">isochrone</a>::<wbr><a class="fn" href="">draw_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/isochrone.rs.html#158-216" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn draw_isochrone(<br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> time_to_reach_building: &<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>>, <br> thresholds: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> colors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>Color<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">isochrone</a>::<wbr><a class="fn" href="">draw_isochrone</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/isochrone.rs.html#158-216" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn draw_isochrone(<br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> time_to_reach_building: &<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>>, <br> thresholds: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> colors: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>Color<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 `App` type in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, App"><title>fifteen_min::App - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Type Definition App</p><div class="sidebar-elems"><p class="location"><a href="index.html">fifteen_min</a></p><div id="sidebar-vars" data-name="App" data-ty="type" 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"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">fifteen_min</a>::<wbr><a class="type" href="">App</a></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">−</span>]</a></span><a class="srclink" href="../src/fifteen_min/lib.rs.html#13" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type App = <a class="struct" href="../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="fifteen_min" data-search-js="../search-index.js"></div>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">fifteen_min</a>::<wbr><a class="type" href="">App</a></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">−</span>]</a></span><a class="srclink" href="../src/fifteen_min/lib.rs.html#13" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type App = SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="fifteen_min" data-search-js="../search-index.js"></div>
|
||||
<script src="../main.js"></script></body></html>
|
@ -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 `build_panel` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, build_panel"><title>fifteen_min::viewer::build_panel - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><div id="sidebar-vars" data-name="build_panel" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">build_panel</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#289-374" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">build_panel</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#289-374" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
@ -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 `draw_unwalkable_roads` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_unwalkable_roads"><title>fifteen_min::viewer::draw_unwalkable_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><div id="sidebar-vars" data-name="draw_unwalkable_roads" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">draw_unwalkable_roads</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#568-590" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn draw_unwalkable_roads(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> opts: &<a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="fn" href="">draw_unwalkable_roads</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#568-590" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn draw_unwalkable_roads(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> opts: &<a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a><br>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="fifteen_min" data-search-js="../../search-index.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
@ -2,12 +2,12 @@
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ExploreAmenities</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.draw">draw</a><a href="#structfield.panel">panel</a><a href="#structfield.table">table</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new_state">new_state</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-State%3CSimpleApp%3C()%3E%3E">State<SimpleApp<()>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a></p><div id="sidebar-vars" data-name="ExploreAmenities" data-ty="struct" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">fifteen_min</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="struct" href="">ExploreAmenities</a></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">−</span>]</a></span><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#431-435" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">struct ExploreAmenities {
|
||||
table: Table<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <a class="struct" href="../../fifteen_min/viewer/struct.Entry.html" title="struct fifteen_min::viewer::Entry">Entry</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>,
|
||||
table: Table<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <a class="struct" href="../../fifteen_min/viewer/struct.Entry.html" title="struct fifteen_min::viewer::Entry">Entry</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>,
|
||||
panel: Panel,
|
||||
draw: Drawable,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.table" class="structfield small-section-header"><a href="#structfield.table" class="anchor field"></a><code>table: Table<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <a class="struct" href="../../fifteen_min/viewer/struct.Entry.html" title="struct fifteen_min::viewer::Entry">Entry</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#446-524" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a>, <br> category: <a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#447-523" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-State%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#526-566" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#527-552" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#554-565" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.table" class="structfield small-section-header"><a href="#structfield.table" class="anchor field"></a><code>table: Table<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <a class="struct" href="../../fifteen_min/viewer/struct.Entry.html" title="struct fifteen_min::viewer::Entry">Entry</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.draw" class="structfield small-section-header"><a href="#structfield.draw" class="anchor field"></a><code>draw: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#446-524" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new_state" class="method"><code>fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a>, <br> category: <a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#447-523" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-State%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#526-566" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#527-552" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#554-565" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.ExploreAmenities.html" title="struct fifteen_min::viewer::ExploreAmenities">ExploreAmenities</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -10,9 +10,9 @@
|
||||
draw_unwalkable_roads: Drawable,
|
||||
}</pre></div><div class="docblock"><p>This is the UI state for exploring the isochrone/walkshed from a single building.</p>
|
||||
</div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: Cached<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></span><span id="structfield.hovering_on_category" class="structfield small-section-header"><a href="#structfield.hovering_on_category" class="anchor field"></a><code>hovering_on_category: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><span id="structfield.draw_unwalkable_roads" class="structfield small-section-header"><a href="#structfield.draw_unwalkable_roads" class="anchor field"></a><code>draw_unwalkable_roads: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#39-75" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.random_start" class="method"><code>pub fn <a href="#method.random_start" class="fnname">random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#41-45" title="goto source code">[src]</a></h4><div class="docblock"><p>Start with a random building</p>
|
||||
</div><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#47-74" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl State<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-State%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#77-229" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#78-214" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#216-228" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.panel" class="structfield small-section-header"><a href="#structfield.panel" class="anchor field"></a><code>panel: Panel</code></span><span id="structfield.highlight_start" class="structfield small-section-header"><a href="#structfield.highlight_start" class="anchor field"></a><code>highlight_start: Drawable</code></span><span id="structfield.isochrone" class="structfield small-section-header"><a href="#structfield.isochrone" class="anchor field"></a><code>isochrone: <a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a></code></span><span id="structfield.hovering_on_bldg" class="structfield small-section-header"><a href="#structfield.hovering_on_bldg" class="anchor field"></a><code>hovering_on_bldg: Cached<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../fifteen_min/viewer/struct.HoverOnBuilding.html" title="struct fifteen_min::viewer::HoverOnBuilding">HoverOnBuilding</a>></code></span><span id="structfield.hovering_on_category" class="structfield small-section-header"><a href="#structfield.hovering_on_category" class="anchor field"></a><code>hovering_on_category: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../map_model/objects/building/enum.AmenityType.html" title="enum map_model::objects::building::AmenityType">AmenityType</a>, Drawable<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><span id="structfield.draw_unwalkable_roads" class="structfield small-section-header"><a href="#structfield.draw_unwalkable_roads" class="anchor field"></a><code>draw_unwalkable_roads: Drawable</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#39-75" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.random_start" class="method"><code>pub fn <a href="#method.random_start" class="fnname">random_start</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#41-45" title="goto source code">[src]</a></h4><div class="docblock"><p>Start with a random building</p>
|
||||
</div><h4 id="method.new_state" class="method"><code>pub fn <a href="#method.new_state" class="fnname">new_state</a>(<br> ctx: &mut EventCtx<'_>, <br> app: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#47-74" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-State%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl State<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-State%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#77-229" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.event" class="method hidden"><code>fn <a href="#method.event" class="fnname">event</a>(<br> &mut self, <br> ctx: &mut EventCtx<'_>, <br> app: &mut SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br>) -> Transition<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#78-214" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Respond to a UI event, such as input or time passing.</p>
|
||||
</div><h4 id="method.draw" class="method hidden"><code>fn <a href="#method.draw" class="fnname">draw</a>(&self, g: &mut GfxCtx<'_>, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>)</code><a class="srclink" href="../../src/fifteen_min/viewer.rs.html#216-228" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw</p>
|
||||
</div><h4 id="method.draw_baselayer" class="method hidden"><code>pub fn <a href="#method.draw_baselayer" class="fnname">draw_baselayer</a>(&self) -> DrawBaselayer</code></h4><div class='docblock hidden'><p>Specifies what to draw before draw()</p>
|
||||
</div><h4 id="method.on_destroy" class="method hidden"><code>pub fn <a href="#method.on_destroy" class="fnname">on_destroy</a>(&mut self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A)</code></h4><div class='docblock hidden'><p>Before this state is popped or replaced, call this.</p>
|
||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../fifteen_min/viewer/struct.Viewer.html" title="struct fifteen_min::viewer::Viewer">Viewer</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></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">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-53ebf0a7e55a6952/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Fri, 11 Jun 2021 17:19:26 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></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">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-53ebf0a7e55a6952/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Sat, 12 Jun 2021 20:47:40 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-js="../../../search-index.js"></div>
|
||||
<script src="../../../main.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["fifteen_min"] = [{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_amenities/struct.Results.html\" title=\"struct fifteen_min::find_amenities::Results\">Results</a>","synthetic":false,"types":["fifteen_min::find_amenities::Results"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_home/struct.FindHome.html\" title=\"struct fifteen_min::find_home::FindHome\">FindHome</a>","synthetic":false,"types":["fifteen_min::find_home::FindHome"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_home/struct.Results.html\" title=\"struct fifteen_min::find_home::Results\">Results</a>","synthetic":false,"types":["fifteen_min::find_home::Results"]}];
|
||||
implementors["fifteen_min"] = [{"text":"impl SimpleState<SimpleApp<<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_amenities/struct.Results.html\" title=\"struct fifteen_min::find_amenities::Results\">Results</a>","synthetic":false,"types":["fifteen_min::find_amenities::Results"]},{"text":"impl SimpleState<SimpleApp<<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_home/struct.FindHome.html\" title=\"struct fifteen_min::find_home::FindHome\">FindHome</a>","synthetic":false,"types":["fifteen_min::find_home::FindHome"]},{"text":"impl SimpleState<SimpleApp<<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"fifteen_min/find_home/struct.Results.html\" title=\"struct fifteen_min::find_home::Results\">Results</a>","synthetic":false,"types":["fifteen_min::find_home::Results"]}];
|
||||
implementors["game"] = [{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/debug/uber_turns/struct.UberTurnPicker.html\" title=\"struct game::debug::uber_turns::UberTurnPicker\">UberTurnPicker</a>","synthetic":false,"types":["game::debug::uber_turns::UberTurnPicker"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/debug/uber_turns/struct.UberTurnViewer.html\" title=\"struct game::debug::uber_turns::UberTurnViewer\">UberTurnViewer</a>","synthetic":false,"types":["game::debug::uber_turns::UberTurnViewer"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/edit/stop_signs/struct.StopSignEditor.html\" title=\"struct game::edit::stop_signs::StopSignEditor\">StopSignEditor</a>","synthetic":false,"types":["game::edit::stop_signs::StopSignEditor"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/edit/traffic_signals/edits/struct.ChangeDuration.html\" title=\"struct game::edit::traffic_signals::edits::ChangeDuration\">ChangeDuration</a>","synthetic":false,"types":["game::edit::traffic_signals::edits::ChangeDuration"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/edit/traffic_signals/offsets/struct.ShowAbsolute.html\" title=\"struct game::edit::traffic_signals::offsets::ShowAbsolute\">ShowAbsolute</a>","synthetic":false,"types":["game::edit::traffic_signals::offsets::ShowAbsolute"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/edit/traffic_signals/offsets/struct.ShowRelative.html\" title=\"struct game::edit::traffic_signals::offsets::ShowRelative\">ShowRelative</a>","synthetic":false,"types":["game::edit::traffic_signals::offsets::ShowRelative"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/edit/traffic_signals/offsets/struct.TuneRelative.html\" title=\"struct game::edit::traffic_signals::offsets::TuneRelative\">TuneRelative</a>","synthetic":false,"types":["game::edit::traffic_signals::offsets::TuneRelative"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/sandbox/gameplay/actdev/struct.About.html\" title=\"struct game::sandbox::gameplay::actdev::About\">About</a>","synthetic":false,"types":["game::sandbox::gameplay::actdev::About"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/sandbox/gameplay/freeform/struct.ChangeScenario.html\" title=\"struct game::sandbox::gameplay::freeform::ChangeScenario\">ChangeScenario</a>","synthetic":false,"types":["game::sandbox::gameplay::freeform::ChangeScenario"]}];
|
||||
implementors["map_editor"] = [{"text":"impl SimpleState<<a class=\"struct\" href=\"map_editor/struct.App.html\" title=\"struct map_editor::App\">App</a>> for <a class=\"struct\" href=\"map_editor/edit/struct.EditRoad.html\" title=\"struct map_editor::edit::EditRoad\">EditRoad</a>","synthetic":false,"types":["map_editor::edit::EditRoad"]}];
|
||||
implementors["santa"] = [{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"struct\" href=\"santa/session/struct.Session.html\" title=\"struct santa::session::Session\">Session</a>>> for <a class=\"struct\" href=\"santa/after_level/struct.Strategize.html\" title=\"struct santa::after_level::Strategize\">Strategize</a>","synthetic":false,"types":["santa::after_level::Strategize"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"struct\" href=\"santa/session/struct.Session.html\" title=\"struct santa::session::Session\">Session</a>>> for <a class=\"struct\" href=\"santa/after_level/struct.Results.html\" title=\"struct santa::after_level::Results\">Results</a>","synthetic":false,"types":["santa::after_level::Results"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"struct\" href=\"santa/session/struct.Session.html\" title=\"struct santa::session::Session\">Session</a>>> for <a class=\"struct\" href=\"santa/title/struct.TitleScreen.html\" title=\"struct santa::title::TitleScreen\">TitleScreen</a>","synthetic":false,"types":["santa::title::TitleScreen"]},{"text":"impl SimpleState<<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"struct\" href=\"santa/session/struct.Session.html\" title=\"struct santa::session::Session\">Session</a>>> for <a class=\"struct\" href=\"santa/title/struct.Credits.html\" title=\"struct santa::title::Credits\">Credits</a>","synthetic":false,"types":["santa::title::Credits"]}];
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,9 +1,9 @@
|
||||
<!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="Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https://a-b-street.github.io/docs/map/edits.html."><meta name="keywords" content="rust, rustlang, rust-lang, edits"><title>map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<!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="Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save the changes to a file (as `PermanentMapEdits`). See https://a-b-street.github.io/docs/tech/map/edits.html."><meta name="keywords" content="rust, rustlang, rust-lang, edits"><title>map_model::edits - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module edits</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">map_model</a></p><div id="sidebar-vars" data-name="edits" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">edits</a></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">−</span>]</a></span><a class="srclink" href="../../src/map_model/edits/mod.rs.html#1-904" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Once a Map exists, the player can edit it in the UI (producing <code>MapEdits</code> in-memory), then save
|
||||
the changes to a file (as <code>PermanentMapEdits</code>). See
|
||||
<a href="https://a-b-street.github.io/docs/map/edits.html">https://a-b-street.github.io/docs/map/edits.html</a>.</p>
|
||||
<a href="https://a-b-street.github.io/docs/tech/map/edits.html">https://a-b-street.github.io/docs/tech/map/edits.html</a>.</p>
|
||||
</div><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::perma::<a class="struct" href="../../map_model/edits/perma/struct.PermanentMapEdits.html" title="struct map_model::edits::perma::PermanentMapEdits">PermanentMapEdits</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="compat/index.html" title="map_model::edits::compat mod">compat</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="perma/index.html" title="map_model::edits::perma mod">perma</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
|
@ -7,7 +7,7 @@ in <code>convert_osm</code> and here.</p>
|
||||
<ul>
|
||||
<li>ch = contraction hierarchy, for speeding up pathfinding</li>
|
||||
<li>degenerate intersection = only has 2 roads connected, so why is it an intersection at all?</li>
|
||||
<li>lc = lane-change (which is modelled very strangely: <a href="https://a-b-street.github.io/docs/trafficsim/discrete_event.html#lane-changing">https://a-b-street.github.io/docs/trafficsim/discrete_event.html#lane-changing</a>)</li>
|
||||
<li>lc = lane-change (which is modelled very strangely: <a href="https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#lane-changing">https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#lane-changing</a>)</li>
|
||||
<li>ltr = left-to-right, the order of lanes for a road</li>
|
||||
<li>osm = OpenStreetMap</li>
|
||||
</ul>
|
||||
@ -28,8 +28,8 @@ in <code>convert_osm</code> and here.</p>
|
||||
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="city/index.html" title="map_model::city mod">city</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="connectivity/index.html" title="map_model::connectivity mod">connectivity</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="edits/index.html" title="map_model::edits mod">edits</a></td><td class="docblock-short"><p>Once a Map exists, the player can edit it in the UI (producing <code>MapEdits</code> in-memory), then save
|
||||
the changes to a file (as <code>PermanentMapEdits</code>). See
|
||||
<a href="https://a-b-street.github.io/docs/map/edits.html">https://a-b-street.github.io/docs/map/edits.html</a>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="make/index.html" title="map_model::make mod">make</a></td><td class="docblock-short"><p>See <a href="https://a-b-street.github.io/docs/map/importing/index.html">https://a-b-street.github.io/docs/map/importing/index.html</a> for an overview. This module
|
||||
<a href="https://a-b-street.github.io/docs/tech/map/edits.html">https://a-b-street.github.io/docs/tech/map/edits.html</a>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="make/index.html" title="map_model::make mod">make</a></td><td class="docblock-short"><p>See <a href="https://a-b-street.github.io/docs/tech/map/importing/index.html">https://a-b-street.github.io/docs/tech/map/importing/index.html</a> for an overview. This module
|
||||
covers the RawMap->Map stage.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="map/index.html" title="map_model::map mod">map</a></td><td class="docblock-short"><p>A bunch of (mostly read-only) queries on a Map.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="objects/index.html" title="map_model::objects mod">objects</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="osm/index.html" title="map_model::osm mod">osm</a></td><td class="docblock-short"><p>Useful utilities for working with OpenStreetMap.</p>
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!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="See https://a-b-street.github.io/docs/map/importing/index.html for an overview. This module covers the RawMap->Map stage."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>map_model::make - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<!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="See https://a-b-street.github.io/docs/tech/map/importing/index.html for an overview. This module covers the RawMap->Map stage."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>map_model::make - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module make</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">map_model</a></p><div id="sidebar-vars" data-name="make" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">make</a></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">−</span>]</a></span><a class="srclink" href="../../src/map_model/make/mod.rs.html#1-455" title="goto source code">[src]</a></span></h1><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/map/importing/index.html">https://a-b-street.github.io/docs/map/importing/index.html</a> for an overview. This module
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">map_model</a>::<wbr><a class="mod" href="">make</a></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">−</span>]</a></span><a class="srclink" href="../../src/map_model/make/mod.rs.html#1-455" title="goto source code">[src]</a></span></h1><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/tech/map/importing/index.html">https://a-b-street.github.io/docs/tech/map/importing/index.html</a> for an overview. This module
|
||||
covers the RawMap->Map stage.</p>
|
||||
</div><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::parking_lots::<a class="fn" href="../../map_model/make/parking_lots/fn.snap_driveway.html" title="fn map_model::make::parking_lots::snap_driveway">snap_driveway</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="bridges/index.html" title="map_model::make::bridges mod">bridges</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="buildings/index.html" title="map_model::make::buildings mod">buildings</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="collapse_intersections/index.html" title="map_model::make::collapse_intersections mod">collapse_intersections</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="initial/index.html" title="map_model::make::initial mod">initial</a></td><td class="docblock-short"><p>Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just
|
||||
for the step of producing <a href="https://a-b-street.github.io/docs/map/importing/geometry.html">https://a-b-street.github.io/docs/map/importing/geometry.html</a>.</p>
|
||||
for the step of producing <a href="https://a-b-street.github.io/docs/tech/map/importing/geometry.html">https://a-b-street.github.io/docs/tech/map/importing/geometry.html</a>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="medians/index.html" title="map_model::make::medians mod">medians</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="merge_intersections/index.html" title="map_model::make::merge_intersections mod">merge_intersections</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="parking_lots/index.html" title="map_model::make::parking_lots mod">parking_lots</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="remove_disconnected/index.html" title="map_model::make::remove_disconnected mod">remove_disconnected</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="traffic_signals/index.html" title="map_model::make::traffic_signals mod">traffic_signals</a></td><td class="docblock-short"><p>The various traffic signal generators live in the traffic signal module. Eventually, we
|
||||
might want to move to a trait. For now, there’s a single make_traffic_signal static method
|
||||
in each generator file, which is called to generate a traffic signal of a particular flavor.</p>
|
||||
|
@ -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="Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/map/importing/geometry.html."><meta name="keywords" content="rust, rustlang, rust-lang, initial"><title>map_model::make::initial - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<!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="Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/tech/map/importing/geometry.html."><meta name="keywords" content="rust, rustlang, rust-lang, initial"><title>map_model::make::initial - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module initial</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a></p><div id="sidebar-vars" data-name="initial" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">initial</a></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">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/initial/mod.rs.html#1-173" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just
|
||||
for the step of producing <a href="https://a-b-street.github.io/docs/map/importing/geometry.html">https://a-b-street.github.io/docs/map/importing/geometry.html</a>.</p>
|
||||
for the step of producing <a href="https://a-b-street.github.io/docs/tech/map/importing/geometry.html">https://a-b-street.github.io/docs/tech/map/importing/geometry.html</a>.</p>
|
||||
</div><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::geometry::<a class="fn" href="../../../map_model/make/initial/geometry/fn.intersection_polygon.html" title="fn map_model::make::initial::geometry::intersection_polygon">intersection_polygon</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="geometry/index.html" title="map_model::make::initial::geometry mod">geometry</a></td><td class="docblock-short"><p>OSM describes roads as center-lines that intersect. Turn these into road and intersection
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["match_points_to_lanes","Snap points to an exact Position along the nearest lane. If the result doesn’t contain a requested point, then there was no matching lane close enough."],["trim_path","Adjust the path to start on the polygon’s border, not center."]],"mod":[["bridges",""],["buildings",""],["collapse_intersections",""],["initial","Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/map/importing/geometry.html."],["medians",""],["merge_intersections",""],["parking_lots",""],["remove_disconnected",""],["traffic_signals","The various traffic signal generators live in the traffic signal module. Eventually, we might want to move to a trait. For now, there’s a single make_traffic_signal static method in each generator file, which is called to generate a traffic signal of a particular flavor."],["transit",""],["turns",""],["walking_turns",""]],"struct":[["RawToMapOptions","Options for converting RawMaps to Maps."]]});
|
||||
initSidebarItems({"fn":[["match_points_to_lanes","Snap points to an exact Position along the nearest lane. If the result doesn’t contain a requested point, then there was no matching lane close enough."],["trim_path","Adjust the path to start on the polygon’s border, not center."]],"mod":[["bridges",""],["buildings",""],["collapse_intersections",""],["initial","Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just for the step of producing https://a-b-street.github.io/docs/tech/map/importing/geometry.html."],["medians",""],["merge_intersections",""],["parking_lots",""],["remove_disconnected",""],["traffic_signals","The various traffic signal generators live in the traffic signal module. Eventually, we might want to move to a trait. For now, there’s a single make_traffic_signal static method in each generator file, which is called to generate a traffic signal of a particular flavor."],["transit",""],["turns",""],["walking_turns",""]],"struct":[["RawToMapOptions","Options for converting RawMaps to Maps."]]});
|
File diff suppressed because one or more lines are too long
@ -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="The sim crate runs a traffic simulation on top of the map_model. See also https://a-b-street.github.io/docs/trafficsim/index.html."><meta name="keywords" content="rust, rustlang, rust-lang, sim"><title>sim - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<!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 sim crate runs a traffic simulation on top of the map_model. See also https://a-b-street.github.io/docs/tech/trafficsim/index.html."><meta name="keywords" content="rust, rustlang, rust-lang, sim"><title>sim - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../sim/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate sim</p><div class="block version"><p>Version 0.1.0</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all sim's items</p></a><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="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"></p><div id="sidebar-vars" data-name="sim" data-ty="mod" data-relpath="../"></div></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">sim</a></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">−</span>]</a></span><a class="srclink" href="../src/sim/lib.rs.html#1-649" title="goto source code">[src]</a></span></h1><div class="docblock"><p>The sim crate runs a traffic simulation on top of the map_model. See also
|
||||
https://a-b-street.github.io/docs/trafficsim/index.html.</p>
|
||||
https://a-b-street.github.io/docs/tech/trafficsim/index.html.</p>
|
||||
<p>The simulation is very roughly layered into two pieces: the low-level “mechanics” of simulating
|
||||
individual agents over time, and higher-level systems like TripManager and TransitSimState that
|
||||
glue together individual goals executed by the agents.</p>
|
||||
@ -13,7 +13,7 @@ are not currently modelled)</li>
|
||||
</ul>
|
||||
</div><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="analytics/index.html" title="sim::analytics mod">analytics</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="cap/index.html" title="sim::cap mod">cap</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="events/index.html" title="sim::events mod">events</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="make/index.html" title="sim::make mod">make</a></td><td class="docblock-short"><p>Everything needed to setup a simulation.
|
||||
<a href="https://a-b-street.github.io/docs/trafficsim/travel_demand.html">https://a-b-street.github.io/docs/trafficsim/travel_demand.html</a> for context.</p>
|
||||
<a href="https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html">https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html</a> for context.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="mechanics/index.html" title="sim::mechanics mod">mechanics</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="mod" href="pandemic/index.html" title="sim::pandemic mod">pandemic</a></td><td class="docblock-short"><p>An experimental SEIR model by https://github.com/omalaspinas/ glued to the traffic simulation.
|
||||
Transmission may occur when people spend time in shared spaces like buildings, bus stops, and
|
||||
buses.</p>
|
||||
|
4
rustdoc/sim/make/external/index.html
vendored
4
rustdoc/sim/make/external/index.html
vendored
@ -1,7 +1,7 @@
|
||||
<!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="Some users of the API (https://a-b-street.github.io/docs/dev/api.html) have their own simulation input data; import it here."><meta name="keywords" content="rust, rustlang, rust-lang, external"><title>sim::make::external - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<!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="Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own simulation input data; import it here."><meta name="keywords" content="rust, rustlang, rust-lang, external"><title>sim::make::external - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module external</p><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><p class="location"><a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a></p><div id="sidebar-vars" data-name="external" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">external</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/make/external.rs.html#1-195" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Some users of the API (https://a-b-street.github.io/docs/dev/api.html) have their own
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">external</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/make/external.rs.html#1-195" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own
|
||||
simulation input data; import it here.</p>
|
||||
</div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ExternalPerson.html" title="sim::make::external::ExternalPerson struct">ExternalPerson</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalTrip.html" title="sim::make::external::ExternalTrip struct">ExternalTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MapBorders.html" title="sim::make::external::MapBorders struct">MapBorders</a></td><td class="docblock-short"><p>Lists all border intersections of the map, broken down by mode and whether they support
|
||||
|
@ -1,15 +1,15 @@
|
||||
<!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="Everything needed to setup a simulation. https://a-b-street.github.io/docs/trafficsim/travel_demand.html for context."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>sim::make - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<!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="Everything needed to setup a simulation. https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html for context."><meta name="keywords" content="rust, rustlang, rust-lang, make"><title>sim::make - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../sim/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module make</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">sim</a></p><div id="sidebar-vars" data-name="make" 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"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">sim</a>::<wbr><a class="mod" href="">make</a></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">−</span>]</a></span><a class="srclink" href="../../src/sim/make/mod.rs.html#1-27" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Everything needed to setup a simulation.
|
||||
<a href="https://a-b-street.github.io/docs/trafficsim/travel_demand.html">https://a-b-street.github.io/docs/trafficsim/travel_demand.html</a> for context.</p>
|
||||
<a href="https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html">https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html</a> for context.</p>
|
||||
</div><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::external::<a class="struct" href="../../sim/make/external/struct.ExternalPerson.html" title="struct sim::make::external::ExternalPerson">ExternalPerson</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="struct" href="../../sim/make/external/struct.ExternalTrip.html" title="struct sim::make::external::ExternalTrip">ExternalTrip</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="enum" href="../../sim/make/external/enum.ExternalTripEndpoint.html" title="enum sim::make::external::ExternalTripEndpoint">ExternalTripEndpoint</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="struct" href="../../sim/make/external/struct.MapBorders.html" title="struct sim::make::external::MapBorders">MapBorders</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/make/generator/struct.BorderSpawnOverTime.html" title="struct sim::make::generator::BorderSpawnOverTime">BorderSpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/make/generator/struct.ScenarioGenerator.html" title="struct sim::make::generator::ScenarioGenerator">ScenarioGenerator</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/make/generator/struct.SpawnOverTime.html" title="struct sim::make::generator::SpawnOverTime">SpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::load::<a class="struct" href="../../sim/make/load/struct.SimFlags.html" title="struct sim::make::load::SimFlags">SimFlags</a>;</code></td></tr><tr><td><code>pub use self::modifier::<a class="enum" href="../../sim/make/modifier/enum.ScenarioModifier.html" title="enum sim::make::modifier::ScenarioModifier">ScenarioModifier</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/make/scenario/struct.IndividTrip.html" title="struct sim::make::scenario::IndividTrip">IndividTrip</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/make/scenario/struct.PersonSpec.html" title="struct sim::make::scenario::PersonSpec">PersonSpec</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/make/scenario/struct.Scenario.html" title="struct sim::make::scenario::Scenario">Scenario</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="enum" href="../../sim/make/scenario/enum.TripPurpose.html" title="enum sim::make::scenario::TripPurpose">TripPurpose</a>;</code></td></tr><tr><td><code>pub use self::spawner::<a class="enum" href="../../sim/make/spawner/enum.TripEndpoint.html" title="enum sim::make::spawner::TripEndpoint">TripEndpoint</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="activity_model/index.html" title="sim::make::activity_model mod">activity_model</a></td><td class="docblock-short"><p>An activity model creates “people” that follow a set schedule of activities through the day.
|
||||
Each activity (like shopping, working, sleeping) lasts some time, and requires the person to go
|
||||
somewhere at some time. This is an extremely simple activity model that just uses data inferred
|
||||
from OSM.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="external/index.html" title="sim::make::external mod">external</a></td><td class="docblock-short"><p>Some users of the API (https://a-b-street.github.io/docs/dev/api.html) have their own
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="external/index.html" title="sim::make::external mod">external</a></td><td class="docblock-short"><p>Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own
|
||||
simulation input data; import it here.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="mod" href="generator/index.html" title="sim::make::generator mod">generator</a></td><td class="docblock-short"><p>This is a much more primitive way to randomly generate trips. activity_model.rs has something
|
||||
more realistic.</p>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["fork_rng","Need to explain this trick – basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["activity_model","An activity model creates “people” that follow a set schedule of activities through the day. Each activity (like shopping, working, sleeping) lasts some time, and requires the person to go somewhere at some time. This is an extremely simple activity model that just uses data inferred from OSM."],["external","Some users of the API (https://a-b-street.github.io/docs/dev/api.html) have their own simulation input data; import it here."],["generator","This is a much more primitive way to randomly generate trips. activity_model.rs has something more realistic."],["load",""],["modifier",""],["scenario",""],["spawner","Intermediate structures used to instantiate a Scenario. Badly needs simplification: https://github.com/a-b-street/abstreet/issues/258"]]});
|
||||
initSidebarItems({"fn":[["fork_rng","Need to explain this trick – basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["activity_model","An activity model creates “people” that follow a set schedule of activities through the day. Each activity (like shopping, working, sleeping) lasts some time, and requires the person to go somewhere at some time. This is an extremely simple activity model that just uses data inferred from OSM."],["external","Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own simulation input data; import it here."],["generator","This is a much more primitive way to randomly generate trips. activity_model.rs has something more realistic."],["load",""],["modifier",""],["scenario",""],["spawner","Intermediate structures used to instantiate a Scenario. Badly needs simplification: https://github.com/a-b-street/abstreet/issues/258"]]});
|
@ -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="See https://a-b-street.github.io/docs/trafficsim/discrete_event.html for details about the state machine encoded here."><meta name="keywords" content="rust, rustlang, rust-lang, CarState"><title>sim::mechanics::car::CarState - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<!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="See https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html for details about the state machine encoded here."><meta name="keywords" content="rust, rustlang, rust-lang, CarState"><title>sim::mechanics::car::CarState - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Enum CarState</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Crossing">Crossing</a><a href="#variant.IdlingAtStop">IdlingAtStop</a><a href="#variant.Parking">Parking</a><a href="#variant.Queued">Queued</a><a href="#variant.Unparking">Unparking</a><a href="#variant.WaitingToAdvance">WaitingToAdvance</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.get_end_time">get_end_time</a><a href="#method.time_spent_waiting">time_spent_waiting</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">car</a></p><div id="sidebar-vars" data-name="CarState" data-ty="enum" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">car</a>::<wbr><a class="enum" href="">CarState</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/car.rs.html#267-279" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub(crate) enum CarState {
|
||||
@ -12,7 +12,7 @@
|
||||
Unparking(<a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../sim/struct.TimeInterval.html" title="struct sim::TimeInterval">TimeInterval</a>),
|
||||
Parking(<a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <a class="enum" href="../../../sim/enum.ParkingSpot.html" title="enum sim::ParkingSpot">ParkingSpot</a>, <a class="struct" href="../../../sim/struct.TimeInterval.html" title="struct sim::TimeInterval">TimeInterval</a>),
|
||||
IdlingAtStop(<a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <a class="struct" href="../../../sim/struct.TimeInterval.html" title="struct sim::TimeInterval">TimeInterval</a>),
|
||||
}</pre></div><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/trafficsim/discrete_event.html">https://a-b-street.github.io/docs/trafficsim/discrete_event.html</a> for details about the
|
||||
}</pre></div><div class="docblock"><p>See <a href="https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html">https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html</a> for details about the
|
||||
state machine encoded here.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a class="mod" href="">car</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/car.rs.html#1-301" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Car.html" title="sim::mechanics::car::Car struct">Car</a></td><td class="docblock-short"><p>Represents a single vehicle. Note “car” is a misnomer; it could also be a bus or bike.</p>
|
||||
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.CarState.html" title="sim::mechanics::car::CarState enum">CarState</a></td><td class="docblock-short"><p>See <a href="https://a-b-street.github.io/docs/trafficsim/discrete_event.html">https://a-b-street.github.io/docs/trafficsim/discrete_event.html</a> for details about the
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.CarState.html" title="sim::mechanics::car::CarState enum">CarState</a></td><td class="docblock-short"><p>See <a href="https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html">https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html</a> for details about the
|
||||
state machine encoded here.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-search-js="../../../search-index.js"></div>
|
||||
<script src="../../../main.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["CarState","See https://a-b-street.github.io/docs/trafficsim/discrete_event.html for details about the state machine encoded here."]],"struct":[["Car","Represents a single vehicle. Note “car” is a misnomer; it could also be a bus or bike."]]});
|
||||
initSidebarItems({"enum":[["CarState","See https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html for details about the state machine encoded here."]],"struct":[["Car","Represents a single vehicle. Note “car” is a misnomer; it could also be a bus or bike."]]});
|
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module queue</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a></p><div id="sidebar-vars" data-name="queue" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a class="mod" href="">queue</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/queue.rs.html#1-361" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Queue.html" title="sim::mechanics::queue::Queue struct">Queue</a></td><td class="docblock-short"><p>A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where
|
||||
https://a-b-street.github.io/docs/trafficsim/discrete_event.html#exact-positions is
|
||||
https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#exact-positions is
|
||||
implemented.</p>
|
||||
</td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.dump_cars.html" title="sim::mechanics::queue::dump_cars fn">dump_cars</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.validate_positions.html" title="sim::mechanics::queue::validate_positions fn">validate_positions</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="sim" data-search-js="../../../search-index.js"></div>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["dump_cars",""],["validate_positions",""]],"struct":[["Queue","A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where https://a-b-street.github.io/docs/trafficsim/discrete_event.html#exact-positions is implemented."]]});
|
||||
initSidebarItems({"fn":[["dump_cars",""],["validate_positions",""]],"struct":[["Queue","A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#exact-positions is implemented."]]});
|
@ -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="A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where https://a-b-street.github.io/docs/trafficsim/discrete_event.html#exact-positions is implemented."><meta name="keywords" content="rust, rustlang, rust-lang, Queue"><title>sim::mechanics::queue::Queue - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<!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="A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#exact-positions is implemented."><meta name="keywords" content="rust, rustlang, rust-lang, Queue"><title>sim::mechanics::queue::Queue - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Queue</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.cars">cars</a><a href="#structfield.geom_len">geom_len</a><a href="#structfield.id">id</a><a href="#structfield.laggy_head">laggy_head</a><a href="#structfield.reserved_length">reserved_length</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.free_reserved_space">free_reserved_space</a><a href="#method.get_car_positions">get_car_positions</a><a href="#method.get_idx_to_insert_car">get_idx_to_insert_car</a><a href="#method.get_last_car_position">get_last_car_position</a><a href="#method.get_leader">get_leader</a><a href="#method.inner_get_last_car_position">inner_get_last_car_position</a><a href="#method.is_overflowing">is_overflowing</a><a href="#method.new">new</a><a href="#method.room_for_car">room_for_car</a><a href="#method.target_lane_penalty">target_lane_penalty</a><a href="#method.try_to_reserve_entry">try_to_reserve_entry</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">queue</a></p><div id="sidebar-vars" data-name="Queue" data-ty="struct" 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"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">queue</a>::<wbr><a class="struct" href="">Queue</a></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">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/queue.rs.html#16-29" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub(crate) struct Queue {
|
||||
@ -8,7 +8,7 @@
|
||||
pub geom_len: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>,
|
||||
pub reserved_length: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>,
|
||||
}</pre></div><div class="docblock"><p>A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where
|
||||
https://a-b-street.github.io/docs/trafficsim/discrete_event.html#exact-positions is
|
||||
https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#exact-positions is
|
||||
implemented.</p>
|
||||
</div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="enum" href="../../../map_model/traversable/enum.Traversable.html" title="enum map_model::traversable::Traversable">Traversable</a></code></span><span id="structfield.cars" class="structfield small-section-header"><a href="#structfield.cars" class="anchor field"></a><code>cars: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code></span><span id="structfield.laggy_head" class="structfield small-section-header"><a href="#structfield.laggy_head" class="anchor field"></a><code>laggy_head: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../sim/struct.CarID.html" title="struct sim::CarID">CarID</a>></code></span><div class="docblock"><p>This car’s back is still partly in this queue.</p>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"constant":[["BIKE_LENGTH",""],["BUS_LENGTH",""],["FOLLOWING_DISTANCE","At all speeds (including at rest), cars must be at least this far apart, measured from front of one car to the back of the other."],["LIGHT_RAIL_LENGTH",""],["MAX_CAR_LENGTH",""],["MIN_CAR_LENGTH",""],["SPAWN_DIST","When spawning at borders, start the front of the vehicle this far along and gradually appear. Getting too close to EPSILON_DIST can lead to get_draw_car having no geometry at all."]],"enum":[["AgentID",""],["AgentType",""],["AlertHandler",""],["AlertLocation",""],["CarStatus",""],["DelayCause","Why is an agent delayed? If there are multiple reasons, arbitrarily pick one – ie, somebody could be blocked by two conflicting turns."],["DrivingGoal",""],["ExternalTripEndpoint",""],["ParkingSpot",""],["PedCrowdLocation",""],["PersonState",""],["Problem",""],["ScenarioModifier","Transforms an existing Scenario before instantiating it."],["SidewalkPOI","Point of interest, that is"],["TripEndpoint","Specifies where a trip begins or ends."],["TripMode",""],["TripPhaseType",""],["TripPurpose","Lifted from Seattle’s Soundcast model, but seems general enough to use anyhere."],["TripResult",""],["VehicleType",""]],"fn":[["fork_rng","Need to explain this trick – basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["analytics",""],["cap",""],["events",""],["make","Everything needed to setup a simulation. https://a-b-street.github.io/docs/trafficsim/travel_demand.html for context."],["mechanics",""],["pandemic","An experimental SEIR model by https://github.com/omalaspinas/ glued to the traffic simulation. Transmission may occur when people spend time in shared spaces like buildings, bus stops, and buses."],["recorder",""],["render","Intermediate structures so that sim and game crates don’t have a cyclic dependency."],["router","For vehicles only, not pedestrians. Follows a Path from map_model, but can opportunistically lane-change to avoid a slow lane, can can handle re-planning to look for available parking."],["scheduler",""],["sim",""],["transit",""],["trips",""]],"struct":[["AgentProperties",""],["Analytics","As a simulation runs, different pieces emit Events. The Analytics object listens to these, organizing and storing some information from them. The UI queries Analytics to draw time-series and display statistics."],["BorderSpawnOverTime",""],["CarID",""],["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["CreateCar",""],["CreatePedestrian",""],["DistanceInterval",""],["DrawCarInput",""],["DrawPedCrowdInput",""],["DrawPedestrianInput",""],["ExternalPerson",""],["ExternalTrip",""],["IndividTrip",""],["MapBorders","Lists all border intersections of the map, broken down by mode and whether they support incoming or outgoing traffic."],["OrigPersonID",""],["ParkedCar",""],["PedestrianID",""],["Person",""],["PersonID",""],["PersonSpec",""],["Scenario","A Scenario describes all the input to a simulation. Usually a scenario covers one day."],["ScenarioGenerator",""],["SidewalkSpot",""],["Sim","The Sim ties together all the pieces of the simulation. Its main property is the current time."],["SimFlags","SimFlags specifies a simulation to setup."],["SimOptions","Options controlling the traffic simulation."],["SpawnOverTime",""],["TimeInterval",""],["TripID",""],["TripInfo",""],["TripPhase",""],["UnzoomedAgent",""],["Vehicle",""],["VehicleSpec",""]],"trait":[["SimCallback",""]]});
|
||||
initSidebarItems({"constant":[["BIKE_LENGTH",""],["BUS_LENGTH",""],["FOLLOWING_DISTANCE","At all speeds (including at rest), cars must be at least this far apart, measured from front of one car to the back of the other."],["LIGHT_RAIL_LENGTH",""],["MAX_CAR_LENGTH",""],["MIN_CAR_LENGTH",""],["SPAWN_DIST","When spawning at borders, start the front of the vehicle this far along and gradually appear. Getting too close to EPSILON_DIST can lead to get_draw_car having no geometry at all."]],"enum":[["AgentID",""],["AgentType",""],["AlertHandler",""],["AlertLocation",""],["CarStatus",""],["DelayCause","Why is an agent delayed? If there are multiple reasons, arbitrarily pick one – ie, somebody could be blocked by two conflicting turns."],["DrivingGoal",""],["ExternalTripEndpoint",""],["ParkingSpot",""],["PedCrowdLocation",""],["PersonState",""],["Problem",""],["ScenarioModifier","Transforms an existing Scenario before instantiating it."],["SidewalkPOI","Point of interest, that is"],["TripEndpoint","Specifies where a trip begins or ends."],["TripMode",""],["TripPhaseType",""],["TripPurpose","Lifted from Seattle’s Soundcast model, but seems general enough to use anyhere."],["TripResult",""],["VehicleType",""]],"fn":[["fork_rng","Need to explain this trick – basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["analytics",""],["cap",""],["events",""],["make","Everything needed to setup a simulation. https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html for context."],["mechanics",""],["pandemic","An experimental SEIR model by https://github.com/omalaspinas/ glued to the traffic simulation. Transmission may occur when people spend time in shared spaces like buildings, bus stops, and buses."],["recorder",""],["render","Intermediate structures so that sim and game crates don’t have a cyclic dependency."],["router","For vehicles only, not pedestrians. Follows a Path from map_model, but can opportunistically lane-change to avoid a slow lane, can can handle re-planning to look for available parking."],["scheduler",""],["sim",""],["transit",""],["trips",""]],"struct":[["AgentProperties",""],["Analytics","As a simulation runs, different pieces emit Events. The Analytics object listens to these, organizing and storing some information from them. The UI queries Analytics to draw time-series and display statistics."],["BorderSpawnOverTime",""],["CarID",""],["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["CreateCar",""],["CreatePedestrian",""],["DistanceInterval",""],["DrawCarInput",""],["DrawPedCrowdInput",""],["DrawPedestrianInput",""],["ExternalPerson",""],["ExternalTrip",""],["IndividTrip",""],["MapBorders","Lists all border intersections of the map, broken down by mode and whether they support incoming or outgoing traffic."],["OrigPersonID",""],["ParkedCar",""],["PedestrianID",""],["Person",""],["PersonID",""],["PersonSpec",""],["Scenario","A Scenario describes all the input to a simulation. Usually a scenario covers one day."],["ScenarioGenerator",""],["SidewalkSpot",""],["Sim","The Sim ties together all the pieces of the simulation. Its main property is the current time."],["SimFlags","SimFlags specifies a simulation to setup."],["SimOptions","Options controlling the traffic simulation."],["SpawnOverTime",""],["TimeInterval",""],["TripID",""],["TripInfo",""],["TripPhase",""],["UnzoomedAgent",""],["Vehicle",""],["VehicleSpec",""]],"trait":[["SimCallback",""]]});
|
@ -6,7 +6,7 @@
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Person.html" title="sim::trips::Person struct">Person</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Trip.html" title="sim::trips::Trip struct">Trip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TripInfo.html" title="sim::trips::TripInfo struct">TripInfo</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TripManager.html" title="sim::trips::TripManager struct">TripManager</a></td><td class="docblock-short"><p>Manages people, each of which executes some trips through the day. Each trip is further broken
|
||||
down into legs – for example, a driving trip might start with somebody walking to their car,
|
||||
driving somewhere, parking, and then walking to their final destination.
|
||||
https://a-b-street.github.io/docs/trafficsim/trips.html describes some of the variations.</p>
|
||||
https://a-b-street.github.io/tech/docs/trafficsim/trips.html describes some of the variations.</p>
|
||||
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.PersonState.html" title="sim::trips::PersonState enum">PersonState</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="enum" href="enum.TripLeg.html" title="sim::trips::TripLeg enum">TripLeg</a></td><td class="docblock-short"><p>These don’t specify where the leg starts, since it might be unknown – like when we drive and
|
||||
don’t know where we’ll wind up parking.</p>
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["PersonState",""],["TripLeg","These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking."],["TripMode",""],["TripResult",""]],"struct":[["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["Person",""],["Trip",""],["TripInfo",""],["TripManager","Manages people, each of which executes some trips through the day. Each trip is further broken down into legs – for example, a driving trip might start with somebody walking to their car, driving somewhere, parking, and then walking to their final destination. https://a-b-street.github.io/docs/trafficsim/trips.html describes some of the variations."]]});
|
||||
initSidebarItems({"enum":[["PersonState",""],["TripLeg","These don’t specify where the leg starts, since it might be unknown – like when we drive and don’t know where we’ll wind up parking."],["TripMode",""],["TripResult",""]],"struct":[["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["Person",""],["Trip",""],["TripInfo",""],["TripManager","Manages people, each of which executes some trips through the day. Each trip is further broken down into legs – for example, a driving trip might start with somebody walking to their car, driving somewhere, parking, and then walking to their final destination. https://a-b-street.github.io/tech/docs/trafficsim/trips.html describes some of the variations."]]});
|
File diff suppressed because one or more lines are too long
@ -41,7 +41,7 @@
|
||||
<span id="38">38</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! A/B Street organizes data files [in a particular</span>
|
||||
<span class="doccomment">//! way](https://a-b-street.github.io/docs/dev/data.html). This crate implements methods to</span>
|
||||
<span class="doccomment">//! way](https://a-b-street.github.io/docs/tech/dev/data.html). This crate implements methods to</span>
|
||||
<span class="doccomment">//! find files and (mostly) treat them the same way on native and web.</span>
|
||||
|
||||
<span class="attribute">#![<span class="ident">allow</span>(<span class="ident">clippy</span>::<span class="ident">type_complexity</span>)]</span>
|
||||
|
@ -178,7 +178,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"rustdoc 1.52.1 (9bc8c42bb 2021-05-09)"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The build time in RFC2822, UTC."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Fri, 11 Jun 2021 17:19:26 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Sat, 12 Jun 2021 20:47:40 +0000"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"x86_64"</span>;
|
||||
|
@ -688,7 +688,7 @@
|
||||
<span class="ident">choices</span>.<span class="ident">push</span>((
|
||||
<span class="string">"import json"</span>.<span class="ident">to_string</span>(),
|
||||
<span class="string">"import JSON scenario"</span>.<span class="ident">to_string</span>(),
|
||||
<span class="string">"Select a JSON file specified by https://a-b-street.github.io/docs/dev/formats/scenarios.html"</span>));
|
||||
<span class="string">"Select a JSON file specified by https://a-b-street.github.io/docs/tech/dev/formats/scenarios.html"</span>));
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[
|
||||
@ -737,7 +737,7 @@
|
||||
<span class="ident">Transition</span>::<span class="ident">Pop</span>
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">x</span> <span class="op">=</span><span class="op">=</span> <span class="string">"Learn how to import your own data."</span> {
|
||||
<span class="ident">open_browser</span>(
|
||||
<span class="string">"https://a-b-street.github.io/docs/trafficsim/travel_demand.html#custom-import"</span>,
|
||||
<span class="string">"https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html#custom-import"</span>,
|
||||
);
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
} <span class="kw">else</span> <span class="kw">if</span> <span class="ident">x</span> <span class="op">=</span><span class="op">=</span> <span class="string">"import grid2demand"</span> {
|
||||
|
@ -598,7 +598,7 @@
|
||||
<span id="595">595</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">// This runs a simulation without any graphics and serves a very basic API to control things. See</span>
|
||||
<span class="comment">// https://a-b-street.github.io/docs/dev/api.html for documentation. To run this:</span>
|
||||
<span class="comment">// https://a-b-street.github.io/docs/tech/dev/api.html for documentation. To run this:</span>
|
||||
<span class="comment">//</span>
|
||||
<span class="comment">// > cd headless; cargo run -- --port=1234</span>
|
||||
<span class="comment">// > curl http://localhost:1234/sim/get-time</span>
|
||||
|
@ -753,7 +753,7 @@
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">target_arch</span> <span class="op">=</span> <span class="string">"wasm32"</span>)]</span>
|
||||
{
|
||||
<span class="kw">crate</span>::<span class="ident">tools</span>::<span class="ident">open_browser</span>(
|
||||
<span class="string">"https://a-b-street.github.io/docs/howto/new_city.html"</span>,
|
||||
<span class="string">"https://a-b-street.github.io/docs/user/new_city.html"</span>,
|
||||
);
|
||||
}
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">not</span>(<span class="ident">target_arch</span> <span class="op">=</span> <span class="string">"wasm32"</span>))]</span>
|
||||
|
@ -265,7 +265,7 @@
|
||||
<span class="ident">Outcome</span>::<span class="ident">Clicked</span>(<span class="ident">x</span>) <span class="op">=</span><span class="op">></span> <span class="kw">match</span> <span class="ident">x</span>.<span class="ident">as_ref</span>() {
|
||||
<span class="string">"close"</span> <span class="op">=</span><span class="op">></span> <span class="ident">Transition</span>::<span class="ident">Pop</span>,
|
||||
<span class="string">"Alternate instructions"</span> <span class="op">=</span><span class="op">></span> {
|
||||
<span class="ident">open_browser</span>(<span class="string">"https://a-b-street.github.io/docs/howto/new_city.html"</span>);
|
||||
<span class="ident">open_browser</span>(<span class="string">"https://a-b-street.github.io/docs/user/new_city.html"</span>);
|
||||
<span class="ident">Transition</span>::<span class="ident">Keep</span>
|
||||
}
|
||||
<span class="string">"Go to geojson.io"</span> <span class="op">=</span><span class="op">></span> {
|
||||
|
@ -908,7 +908,7 @@
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Once a Map exists, the player can edit it in the UI (producing `MapEdits` in-memory), then save</span>
|
||||
<span class="doccomment">//! the changes to a file (as `PermanentMapEdits`). See</span>
|
||||
<span class="doccomment">//! <https://a-b-street.github.io/docs/map/edits.html>.</span>
|
||||
<span class="doccomment">//! <https://a-b-street.github.io/docs/tech/map/edits.html>.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
|
@ -125,7 +125,7 @@
|
||||
<span class="doccomment">//! Helpful terminology:</span>
|
||||
<span class="doccomment">//! - ch = contraction hierarchy, for speeding up pathfinding</span>
|
||||
<span class="doccomment">//! - degenerate intersection = only has 2 roads connected, so why is it an intersection at all?</span>
|
||||
<span class="doccomment">//! - lc = lane-change (which is modelled very strangely: <https://a-b-street.github.io/docs/trafficsim/discrete_event.html#lane-changing>)</span>
|
||||
<span class="doccomment">//! - lc = lane-change (which is modelled very strangely: <https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#lane-changing>)</span>
|
||||
<span class="doccomment">//! - ltr = left-to-right, the order of lanes for a road</span>
|
||||
<span class="doccomment">//! - osm = OpenStreetMap</span>
|
||||
<span class="doccomment">//!</span>
|
||||
|
@ -176,7 +176,7 @@
|
||||
<span id="173">173</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Naming is confusing, but RawMap -> InitialMap -> Map. InitialMap is separate pretty much just</span>
|
||||
<span class="doccomment">//! for the step of producing <https://a-b-street.github.io/docs/map/importing/geometry.html>.</span>
|
||||
<span class="doccomment">//! for the step of producing <https://a-b-street.github.io/docs/tech/map/importing/geometry.html>.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>};
|
||||
|
||||
|
@ -457,7 +457,7 @@
|
||||
<span id="454">454</span>
|
||||
<span id="455">455</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! See <https://a-b-street.github.io/docs/map/importing/index.html> for an overview. This module</span>
|
||||
<span class="doccomment">//! See <https://a-b-street.github.io/docs/tech/map/importing/index.html> for an overview. This module</span>
|
||||
<span class="doccomment">//! covers the RawMap->Map stage.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
|
||||
|
@ -829,7 +829,7 @@
|
||||
);
|
||||
}
|
||||
<span class="macro">error</span><span class="macro">!</span>(
|
||||
<span class="string">"Check https://a-b-street.github.io/docs/dev/index.html and file an issue \
|
||||
<span class="string">"Check https://a-b-street.github.io/docs/tech/dev/index.html and file an issue \
|
||||
if you have trouble."</span>
|
||||
);
|
||||
|
||||
|
@ -652,7 +652,7 @@
|
||||
<span id="649">649</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! The sim crate runs a traffic simulation on top of the map_model. See also</span>
|
||||
<span class="doccomment">//! https://a-b-street.github.io/docs/trafficsim/index.html.</span>
|
||||
<span class="doccomment">//! https://a-b-street.github.io/docs/tech/trafficsim/index.html.</span>
|
||||
<span class="doccomment">//!</span>
|
||||
<span class="doccomment">//! The simulation is very roughly layered into two pieces: the low-level "mechanics" of simulating</span>
|
||||
<span class="doccomment">//! individual agents over time, and higher-level systems like TripManager and TransitSimState that</span>
|
||||
|
@ -197,7 +197,7 @@
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Some users of the API (https://a-b-street.github.io/docs/dev/api.html) have their own</span>
|
||||
<span class="doccomment">//! Some users of the API (https://a-b-street.github.io/docs/tech/dev/api.html) have their own</span>
|
||||
<span class="doccomment">//! simulation input data; import it here.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">anyhow</span>::<span class="prelude-ty">Result</span>;
|
||||
|
@ -30,7 +30,7 @@
|
||||
<span id="27">27</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Everything needed to setup a simulation.</span>
|
||||
<span class="doccomment">//! <https://a-b-street.github.io/docs/trafficsim/travel_demand.html> for context.</span>
|
||||
<span class="doccomment">//! <https://a-b-street.github.io/docs/tech/trafficsim/travel_demand.html> for context.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">rand</span>::{<span class="ident">RngCore</span>, <span class="ident">SeedableRng</span>};
|
||||
<span class="kw">use</span> <span class="ident">rand_xorshift</span>::<span class="ident">XorShiftRng</span>;
|
||||
|
@ -566,7 +566,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// See <https://a-b-street.github.io/docs/trafficsim/discrete_event.html> for details about the</span>
|
||||
<span class="doccomment">/// See <https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html> for details about the</span>
|
||||
<span class="doccomment">/// state machine encoded here.</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Serialize</span>, <span class="ident">Deserialize</span>, <span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">enum</span> <span class="ident">CarState</span> {
|
||||
|
@ -1130,7 +1130,7 @@
|
||||
<span class="doccomment">/// react, maybe granting one of the pending requests.</span>
|
||||
<span class="doccomment">///</span>
|
||||
<span class="doccomment">/// Most of the complexity comes from attempting to workaround</span>
|
||||
<span class="doccomment">/// <https://a-b-street.github.io/docs/trafficsim/gridlock.html>.</span>
|
||||
<span class="doccomment">/// <https://a-b-street.github.io/docs/tech/trafficsim/gridlock.html>.</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Serialize</span>, <span class="ident">Deserialize</span>, <span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">struct</span> <span class="ident">IntersectionSimState</span> {
|
||||
<span class="ident">state</span>: <span class="ident">BTreeMap</span><span class="op"><</span><span class="ident">IntersectionID</span>, <span class="ident">State</span><span class="op">></span>,
|
||||
|
@ -375,7 +375,7 @@
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">CarID</span>, <span class="ident">VehicleType</span>, <span class="ident">FOLLOWING_DISTANCE</span>};
|
||||
|
||||
<span class="doccomment">/// A Queue of vehicles on a single lane or turn. No over-taking or lane-changing. This is where</span>
|
||||
<span class="doccomment">/// https://a-b-street.github.io/docs/trafficsim/discrete_event.html#exact-positions is</span>
|
||||
<span class="doccomment">/// https://a-b-street.github.io/docs/tech/trafficsim/discrete_event.html#exact-positions is</span>
|
||||
<span class="doccomment">/// implemented.</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Serialize</span>, <span class="ident">Deserialize</span>, <span class="ident">Clone</span>, <span class="ident">Debug</span>)]</span>
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">struct</span> <span class="ident">Queue</span> {
|
||||
|
@ -1579,7 +1579,7 @@
|
||||
<span class="doccomment">/// Manages people, each of which executes some trips through the day. Each trip is further broken</span>
|
||||
<span class="doccomment">/// down into legs -- for example, a driving trip might start with somebody walking to their car,</span>
|
||||
<span class="doccomment">/// driving somewhere, parking, and then walking to their final destination.</span>
|
||||
<span class="doccomment">/// https://a-b-street.github.io/docs/trafficsim/trips.html describes some of the variations.</span>
|
||||
<span class="doccomment">/// https://a-b-street.github.io/tech/docs/trafficsim/trips.html describes some of the variations.</span>
|
||||
<span class="comment">//</span>
|
||||
<span class="comment">// Here be dragons, keep hands and feet inside the ride at all times...</span>
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Serialize</span>, <span class="ident">Deserialize</span>, <span class="ident">Debug</span>, <span class="ident">Clone</span>)]</span>
|
||||
|
Loading…
Reference in New Issue
Block a user