mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-23 08:54:30 +03:00
deploy: 876930d6e6
This commit is contained in:
parent
2ed7e29a24
commit
c9bc601468
@ -4,6 +4,6 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-ed50344f6d8f69b9/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r"Thu, 23 Jun 2022 13:33:07 +0000";</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-ed50344f6d8f69b9/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r"Thu, 23 Jun 2022 13:46:46 +0000";</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
|
||||
</body></html>
|
@ -1070,7 +1070,7 @@
|
||||
|
||||
<span class="doccomment">/// Usually m^2, unless the polygon is in screen-space</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">area</span>(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="ident">f64</span> {
|
||||
<span class="comment">// Polygon orientation messes this up sometimes</span>
|
||||
<span class="comment">// Don't use signed_area, since we may work with polygons that have different orientations</span>
|
||||
<span class="self">self</span>.<span class="ident">to_geo</span>().<span class="ident">unsigned_area</span>()
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,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.61.0 (fe5b13d68 2022-05-18)"</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"Thu, 23 Jun 2022 13:33:07 +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"Thu, 23 Jun 2022 13:46:46 +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>;
|
||||
|
@ -5,13 +5,13 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../synthpop/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">MapBorder</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.gps_pos">gps_pos</a></li><li><a href="#structfield.i">i</a></li><li><a href="#structfield.pos">pos</a></li><li><a href="#structfield.weight">weight</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new">new</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li></ul></div></section><h2 class="location"><a href="index.html">In synthpop::borders</a></h2><div id="sidebar-vars" data-name="MapBorder" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../synthpop/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">synthpop</a>::<wbr><a href="index.html">borders</a>::<wbr><a class="struct" href="#">MapBorder</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/synthpop/borders.rs.html#20-27">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct MapBorder {
|
||||
pub i: <a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>,
|
||||
pub i: IntersectionID,
|
||||
pub pos: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>,
|
||||
pub gps_pos: <a class="struct" href="../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>,
|
||||
pub weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: <a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a></code></span><span id="structfield.pos" class="structfield small-section-header"><a href="#structfield.pos" class="anchor field"></a><code>pos: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></code></span><span id="structfield.gps_pos" class="structfield small-section-header"><a href="#structfield.gps_pos" class="anchor field"></a><code>gps_pos: <a class="struct" href="../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></code></span><span id="structfield.weight" class="structfield small-section-header"><a href="#structfield.weight" class="anchor field"></a><code>weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><div class="docblock"><p>Based on the classification of the connecting road, a weight for how likely this border is
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: IntersectionID</code></span><span id="structfield.pos" class="structfield small-section-header"><a href="#structfield.pos" class="anchor field"></a><code>pos: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></code></span><span id="structfield.gps_pos" class="structfield small-section-header"><a href="#structfield.gps_pos" class="anchor field"></a><code>gps_pos: <a class="struct" href="../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></code></span><span id="structfield.weight" class="structfield small-section-header"><a href="#structfield.weight" class="anchor field"></a><code>weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><div class="docblock"><p>Based on the classification of the connecting road, a weight for how likely this border is
|
||||
to be used for traffic.</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#93-115">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#94-114">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: &<a class="struct" href="../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#19">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#19">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#93-115">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#94-114">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">fn <a href="#method.new" class="fnname">new</a>(map: &Map, i: &Intersection) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#19">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#19">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details></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"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
@ -13,7 +13,7 @@
|
||||
pub outgoing_biking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>>,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Lists all border intersections of the map, broken down by mode and whether they support
|
||||
incoming or outgoing traffic.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.incoming_walking" class="structfield small-section-header"><a href="#structfield.incoming_walking" class="anchor field"></a><code>incoming_walking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.incoming_driving" class="structfield small-section-header"><a href="#structfield.incoming_driving" class="anchor field"></a><code>incoming_driving: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.incoming_biking" class="structfield small-section-header"><a href="#structfield.incoming_biking" class="anchor field"></a><code>incoming_biking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_walking" class="structfield small-section-header"><a href="#structfield.outgoing_walking" class="anchor field"></a><code>outgoing_walking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_driving" class="structfield small-section-header"><a href="#structfield.outgoing_driving" class="anchor field"></a><code>outgoing_driving: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_biking" class="structfield small-section-header"><a href="#structfield.outgoing_biking" class="anchor field"></a><code>outgoing_biking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#29-91">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#30-81">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.for_mode" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#84-90">source</a></span><a href="#method.for_mode" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.for_mode" class="fnname">for_mode</a>(&self, mode: <a class="enum" href="../enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>&<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>>, &<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a></h4></section></summary><div class="docblock"><p>Returns the (incoming, outgoing) borders for the specififed mode.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.incoming_walking" class="structfield small-section-header"><a href="#structfield.incoming_walking" class="anchor field"></a><code>incoming_walking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.incoming_driving" class="structfield small-section-header"><a href="#structfield.incoming_driving" class="anchor field"></a><code>incoming_driving: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.incoming_biking" class="structfield small-section-header"><a href="#structfield.incoming_biking" class="anchor field"></a><code>incoming_biking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_walking" class="structfield small-section-header"><a href="#structfield.outgoing_walking" class="anchor field"></a><code>outgoing_walking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_driving" class="structfield small-section-header"><a href="#structfield.outgoing_driving" class="anchor field"></a><code>outgoing_driving: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><span id="structfield.outgoing_biking" class="structfield small-section-header"><a href="#structfield.outgoing_biking" class="anchor field"></a><code>outgoing_biking: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#29-91">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#30-81">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(map: &Map) -> <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.for_mode" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#84-90">source</a></span><a href="#method.for_mode" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.for_mode" class="fnname">for_mode</a>(&self, mode: <a class="enum" href="../enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>&<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>>, &<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a>><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a></h4></section></summary><div class="docblock"><p>Returns the (incoming, outgoing) borders for the specififed mode.</p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#9">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/borders.rs.html#9">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details></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"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MapBorders.html" title="struct synthpop::borders::MapBorders">MapBorders</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
@ -7,16 +7,16 @@
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">synthpop</a>::<wbr><a href="index.html">counts</a>::<wbr><a class="struct" href="#">TrafficCounts</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/synthpop/counts.rs.html#14-22">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct TrafficCounts {
|
||||
pub map: <a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>,
|
||||
pub description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub per_road: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>>,
|
||||
pub per_intersection: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>>,
|
||||
pub per_road: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><RoadID>,
|
||||
pub per_intersection: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><IntersectionID>,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This represents the number of vehicles (or trips, or something else) crossing roads and
|
||||
intersections over some span of time. The data could represent real observations or something
|
||||
from a simulation.</p>
|
||||
<p>There’s some nice UIs in other crates to compare counts.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.map" class="structfield small-section-header"><a href="#structfield.map" class="anchor field"></a><code>map: <a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.per_road" class="structfield small-section-header"><a href="#structfield.per_road" class="anchor field"></a><code>per_road: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>></code></span><span id="structfield.per_intersection" class="structfield small-section-header"><a href="#structfield.per_intersection" class="anchor field"></a><code>per_intersection: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#35-139">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_path_requests" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#39-77">source</a></span><a href="#method.from_path_requests" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_path_requests" class="fnname">from_path_requests</a>(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> requests: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/pathfind/v1/struct.PathRequest.html" title="struct map_model::pathfind::v1::PathRequest">PathRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>, <br> pathfinder: &<a class="struct" href="../../map_model/pathfind/pathfinder/struct.Pathfinder.html" title="struct map_model::pathfind::pathfinder::Pathfinder">Pathfinder</a>, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> Self</h4></section></summary><div class="docblock"><p>Run pathfinding on all of the requests, then count the throughput on every road and
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.map" class="structfield small-section-header"><a href="#structfield.map" class="anchor field"></a><code>map: <a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.per_road" class="structfield small-section-header"><a href="#structfield.per_road" class="anchor field"></a><code>per_road: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><RoadID></code></span><span id="structfield.per_intersection" class="structfield small-section-header"><a href="#structfield.per_intersection" class="anchor field"></a><code>per_intersection: <a class="struct" href="../../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><IntersectionID></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#35-139">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_path_requests" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#39-77">source</a></span><a href="#method.from_path_requests" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_path_requests" class="fnname">from_path_requests</a>(<br> map: &Map, <br> description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> requests: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>PathRequest, <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>, <br> pathfinder: &Pathfinder, <br> timer: &mut <a class="struct" href="../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> Self</h4></section></summary><div class="docblock"><p>Run pathfinding on all of the requests, then count the throughput on every road and
|
||||
intersection. Each request has the count it should contribute – use
|
||||
<code>PathRequest::deduplicate</code> to easily generate this.</p>
|
||||
</div></details><section id="method.update_with_path" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#79-105">source</a></span><a href="#method.update_with_path" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.update_with_path" class="fnname">update_with_path</a>(&mut self, path: <a class="struct" href="../../map_model/pathfind/v2/struct.PathV2.html" title="struct map_model::pathfind::v2::PathV2">PathV2</a>, count: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.quickly_compare" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#108-138">source</a></span><a href="#method.quickly_compare" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.quickly_compare" class="fnname">quickly_compare</a>(&self, other: &<a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a>)</h4></section></summary><div class="docblock"><p>Print a comparison of counts. Only look at roads/intersections in <code>self</code>.</p>
|
||||
</div></details><section id="method.update_with_path" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#79-105">source</a></span><a href="#method.update_with_path" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.update_with_path" class="fnname">update_with_path</a>(&mut self, path: PathV2, count: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, map: &Map)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.quickly_compare" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#108-138">source</a></span><a href="#method.quickly_compare" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.quickly_compare" class="fnname">quickly_compare</a>(&self, other: &<a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a>)</h4></section></summary><div class="docblock"><p>Print a comparison of counts. Only look at roads/intersections in <code>self</code>.</p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#13">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#13">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#24-33">source</a></span><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/counts.rs.html#25-32">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> Self</h4></section></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Transforms an existing Scenario before instantiating it.</p>
|
||||
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.RepeatDays" class="variant small-section-header"><a href="#variant.RepeatDays" class="anchor field"></a><code>RepeatDays(<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>)</code></h3><h3 id="variant.RepeatDaysNoise" class="variant small-section-header"><a href="#variant.RepeatDaysNoise" class="anchor field"></a><code>RepeatDaysNoise</code></h3><div class="sub-variant" id="variant.RepeatDaysNoise.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.RepeatDaysNoise.field.days" class="variant small-section-header"><a href="#variant.RepeatDaysNoise.field.days" class="anchor field"></a><code>days: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span></div><div class="sub-variant-field"><span id="variant.RepeatDaysNoise.field.departure_time_noise" class="variant small-section-header"><a href="#variant.RepeatDaysNoise.field.departure_time_noise" class="anchor field"></a><code>departure_time_noise: <a class="struct" href="../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></code></span></div></div><h3 id="variant.ChangeMode" class="variant small-section-header"><a href="#variant.ChangeMode" class="anchor field"></a><code>ChangeMode</code></h3><div class="sub-variant" id="variant.ChangeMode.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ChangeMode.field.pct_ppl" class="variant small-section-header"><a href="#variant.ChangeMode.field.pct_ppl" class="anchor field"></a><code>pct_ppl: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.departure_filter" class="variant small-section-header"><a href="#variant.ChangeMode.field.departure_filter" class="anchor field"></a><code>departure_filter: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="struct" href="../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.from_modes" class="variant small-section-header"><a href="#variant.ChangeMode.field.from_modes" class="anchor field"></a><code>from_modes: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="enum" href="enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.to_mode" class="variant small-section-header"><a href="#variant.ChangeMode.field.to_mode" class="anchor field"></a><code>to_mode: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>></code></span><div class="docblock"><p>If <code>None</code>, then just cancel the trip.</p>
|
||||
</div></div></div><h3 id="variant.AddExtraTrips" class="variant small-section-header"><a href="#variant.AddExtraTrips" class="anchor field"></a><code>AddExtraTrips(<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></h3><div class="docblock"><p>Scenario name</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#34-129">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="enum" href="modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.apply" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#37-100">source</a></span><a href="#method.apply" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.apply" class="fnname">apply</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, s: <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>, rng: &mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class="docblock"><p>If this modifies scenario_name, then that means prebaked results don’t match up and
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#34-129">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="enum" href="modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.apply" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#37-100">source</a></span><a href="#method.apply" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.apply" class="fnname">apply</a>(&self, map: &Map, s: <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>, rng: &mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class="docblock"><p>If this modifies scenario_name, then that means prebaked results don’t match up and
|
||||
shouldn’t be used.</p>
|
||||
</div></details><section id="method.describe" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#102-128">source</a></span><a href="#method.describe" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.describe" class="fnname">describe</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#16">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/modifier.rs.html#16">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="modifier/enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
||||
</a><h2 class="location"><a href="#">ExternalPerson</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.trips">trips</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.import">import</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li></ul></div></section><h2 class="location"><a href="index.html">In synthpop::external</a></h2><div id="sidebar-vars" data-name="ExternalPerson" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../synthpop/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">synthpop</a>::<wbr><a href="index.html">external</a>::<wbr><a class="struct" href="#">ExternalPerson</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/synthpop/external.rs.html#13-15">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct ExternalPerson {
|
||||
pub trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.trips" class="structfield small-section-header"><a href="#structfield.trips" class="anchor field"></a><code>trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/external.rs.html#32-124">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.import" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/external.rs.html#39-123">source</a></span><a href="#method.import" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.import" class="fnname">import</a>(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> input: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a>>, <br> skip_problems: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../scenario/struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>>></h4></section></summary><div class="docblock"><p>Import external scenario data. The main difference between <code>ExternalPerson</code> and
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.trips" class="structfield small-section-header"><a href="#structfield.trips" class="anchor field"></a><code>trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/external.rs.html#32-124">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.import" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/external.rs.html#39-123">source</a></span><a href="#method.import" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.import" class="fnname">import</a>(<br> map: &Map, <br> input: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a>>, <br> skip_problems: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../scenario/struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>>></h4></section></summary><div class="docblock"><p>Import external scenario data. The main difference between <code>ExternalPerson</code> and
|
||||
<code>PersonSpec</code> is a way to specify endpoints by a <code>LonLat</code>. This is snapped to the nearest
|
||||
building. If the point is outside of the map boundary, it’s snapped to the nearest border
|
||||
(by Euclidean distance – the network outside the given map isn’t known). Failure happens
|
||||
|
@ -20,7 +20,7 @@
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Transforms an existing Scenario before instantiating it.</p>
|
||||
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.RepeatDays" class="variant small-section-header"><a href="#variant.RepeatDays" class="anchor field"></a><code>RepeatDays(<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>)</code></h3><h3 id="variant.RepeatDaysNoise" class="variant small-section-header"><a href="#variant.RepeatDaysNoise" class="anchor field"></a><code>RepeatDaysNoise</code></h3><div class="sub-variant" id="variant.RepeatDaysNoise.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.RepeatDaysNoise.field.days" class="variant small-section-header"><a href="#variant.RepeatDaysNoise.field.days" class="anchor field"></a><code>days: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span></div><div class="sub-variant-field"><span id="variant.RepeatDaysNoise.field.departure_time_noise" class="variant small-section-header"><a href="#variant.RepeatDaysNoise.field.departure_time_noise" class="anchor field"></a><code>departure_time_noise: <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></code></span></div></div><h3 id="variant.ChangeMode" class="variant small-section-header"><a href="#variant.ChangeMode" class="anchor field"></a><code>ChangeMode</code></h3><div class="sub-variant" id="variant.ChangeMode.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.ChangeMode.field.pct_ppl" class="variant small-section-header"><a href="#variant.ChangeMode.field.pct_ppl" class="anchor field"></a><code>pct_ppl: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.departure_filter" class="variant small-section-header"><a href="#variant.ChangeMode.field.departure_filter" class="anchor field"></a><code>departure_filter: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a>, <a class="struct" href="../../geom/time/struct.Time.html" title="struct geom::time::Time">Time</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.from_modes" class="variant small-section-header"><a href="#variant.ChangeMode.field.from_modes" class="anchor field"></a><code>from_modes: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="enum" href="../enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>></code></span></div><div class="sub-variant-field"><span id="variant.ChangeMode.field.to_mode" class="variant small-section-header"><a href="#variant.ChangeMode.field.to_mode" class="anchor field"></a><code>to_mode: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../enum.TripMode.html" title="enum synthpop::TripMode">TripMode</a>></code></span><div class="docblock"><p>If <code>None</code>, then just cancel the trip.</p>
|
||||
</div></div></div><h3 id="variant.AddExtraTrips" class="variant small-section-header"><a href="#variant.AddExtraTrips" class="anchor field"></a><code>AddExtraTrips(<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></h3><div class="docblock"><p>Scenario name</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#34-129">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="enum" href="enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.apply" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#37-100">source</a></span><a href="#method.apply" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.apply" class="fnname">apply</a>(&self, map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, s: <a class="struct" href="../scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>, rng: &mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -> <a class="struct" href="../scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class="docblock"><p>If this modifies scenario_name, then that means prebaked results don’t match up and
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#34-129">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="enum" href="enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.apply" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#37-100">source</a></span><a href="#method.apply" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.apply" class="fnname">apply</a>(&self, map: &Map, s: <a class="struct" href="../scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a>, rng: &mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a>) -> <a class="struct" href="../scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class="docblock"><p>If this modifies scenario_name, then that means prebaked results don’t match up and
|
||||
shouldn’t be used.</p>
|
||||
</div></details><section id="method.describe" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#102-128">source</a></span><a href="#method.describe" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.describe" class="fnname">describe</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#16">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/modifier.rs.html#16">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="enum.ScenarioModifier.html" title="enum synthpop::modifier::ScenarioModifier">ScenarioModifier</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
|
@ -11,7 +11,7 @@
|
||||
pub only_seed_buses: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Scenario describes all the input to a simulation. Usually a scenario covers one day.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.map_name" class="structfield small-section-header"><a href="#structfield.map_name" class="anchor field"></a><code>map_name: <a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.people" class="structfield small-section-header"><a href="#structfield.people" class="anchor field"></a><code>people: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>></code></span><span id="structfield.only_seed_buses" class="structfield small-section-header"><a href="#structfield.only_seed_buses" class="anchor field"></a><code>only_seed_buses: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>></code></span><div class="docblock"><p>None means seed all buses. Otherwise the route name must be present here.</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#106-162">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><section id="method.save" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#107-112">source</a></span><a href="#method.save" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.save" class="fnname">save</a>(&self)</h4></section><section id="method.empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#114-121">source</a></span><a href="#method.empty" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>(map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, name: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.remove_weird_schedules" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#123-140">source</a></span><a href="#method.remove_weird_schedules" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.remove_weird_schedules" class="fnname">remove_weird_schedules</a>(self, verbose: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.all_trips" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#142-144">source</a></span><a href="#method.all_trips" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.all_trips" class="fnname">all_trips</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<a class="struct" href="struct.IndividTrip.html" title="struct synthpop::scenario::IndividTrip">IndividTrip</a>></h4></section><section id="method.default_scenario_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#146-161">source</a></span><a href="#method.default_scenario_for_map" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.default_scenario_for_map" class="fnname">default_scenario_for_map</a>(name: &<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#106-162">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><section id="method.save" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#107-112">source</a></span><a href="#method.save" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.save" class="fnname">save</a>(&self)</h4></section><section id="method.empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#114-121">source</a></span><a href="#method.empty" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>(map: &Map, name: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.remove_weird_schedules" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#123-140">source</a></span><a href="#method.remove_weird_schedules" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.remove_weird_schedules" class="fnname">remove_weird_schedules</a>(self, verbose: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.all_trips" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#142-144">source</a></span><a href="#method.all_trips" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.all_trips" class="fnname">all_trips</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<a class="struct" href="struct.IndividTrip.html" title="struct synthpop::scenario::IndividTrip">IndividTrip</a>></h4></section><section id="method.default_scenario_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#146-161">source</a></span><a href="#method.default_scenario_for_map" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.default_scenario_for_map" class="fnname">default_scenario_for_map</a>(name: &<a class="struct" href="../../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
|
@ -6,7 +6,7 @@
|
||||
</a><h2 class="location"><a href="#">ExternalPerson</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.trips">trips</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.import">import</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li></ul></div></section><h2 class="location"><a href="index.html">In synthpop</a></h2><div id="sidebar-vars" data-name="ExternalPerson" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../synthpop/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">synthpop</a>::<wbr><a class="struct" href="#">ExternalPerson</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/synthpop/external.rs.html#13-15">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct ExternalPerson {
|
||||
pub trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="external/struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.trips" class="structfield small-section-header"><a href="#structfield.trips" class="anchor field"></a><code>trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="external/struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/external.rs.html#32-124">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="external/struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.import" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/external.rs.html#39-123">source</a></span><a href="#method.import" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.import" class="fnname">import</a>(<br> map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> input: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="external/struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a>>, <br> skip_problems: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="scenario/struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>>></h4></section></summary><div class="docblock"><p>Import external scenario data. The main difference between <code>ExternalPerson</code> and
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.trips" class="structfield small-section-header"><a href="#structfield.trips" class="anchor field"></a><code>trips: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="external/struct.ExternalTrip.html" title="struct synthpop::external::ExternalTrip">ExternalTrip</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/external.rs.html#32-124">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="external/struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.import" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/external.rs.html#39-123">source</a></span><a href="#method.import" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.import" class="fnname">import</a>(<br> map: &Map, <br> input: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="external/struct.ExternalPerson.html" title="struct synthpop::external::ExternalPerson">ExternalPerson</a>>, <br> skip_problems: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="scenario/struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>>></h4></section></summary><div class="docblock"><p>Import external scenario data. The main difference between <code>ExternalPerson</code> and
|
||||
<code>PersonSpec</code> is a way to specify endpoints by a <code>LonLat</code>. This is snapped to the nearest
|
||||
building. If the point is outside of the map boundary, it’s snapped to the nearest border
|
||||
(by Euclidean distance – the network outside the given map isn’t known). Failure happens
|
||||
|
@ -5,13 +5,13 @@
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../synthpop/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">MapBorder</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.gps_pos">gps_pos</a></li><li><a href="#structfield.i">i</a></li><li><a href="#structfield.pos">pos</a></li><li><a href="#structfield.weight">weight</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.new">new</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li></ul></div></section><h2 class="location"><a href="index.html">In synthpop</a></h2><div id="sidebar-vars" data-name="MapBorder" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../synthpop/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">synthpop</a>::<wbr><a class="struct" href="#">MapBorder</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/synthpop/borders.rs.html#20-27">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct MapBorder {
|
||||
pub i: <a class="struct" href="../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>,
|
||||
pub i: IntersectionID,
|
||||
pub pos: <a class="struct" href="../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>,
|
||||
pub gps_pos: <a class="struct" href="../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>,
|
||||
pub weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: <a class="struct" href="../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a></code></span><span id="structfield.pos" class="structfield small-section-header"><a href="#structfield.pos" class="anchor field"></a><code>pos: <a class="struct" href="../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></code></span><span id="structfield.gps_pos" class="structfield small-section-header"><a href="#structfield.gps_pos" class="anchor field"></a><code>gps_pos: <a class="struct" href="../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></code></span><span id="structfield.weight" class="structfield small-section-header"><a href="#structfield.weight" class="anchor field"></a><code>weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><div class="docblock"><p>Based on the classification of the connecting road, a weight for how likely this border is
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: IntersectionID</code></span><span id="structfield.pos" class="structfield small-section-header"><a href="#structfield.pos" class="anchor field"></a><code>pos: <a class="struct" href="../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></code></span><span id="structfield.gps_pos" class="structfield small-section-header"><a href="#structfield.gps_pos" class="anchor field"></a><code>gps_pos: <a class="struct" href="../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></code></span><span id="structfield.weight" class="structfield small-section-header"><a href="#structfield.weight" class="anchor field"></a><code>weight: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><div class="docblock"><p>Based on the classification of the connecting road, a weight for how likely this border is
|
||||
to be used for traffic.</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#93-115">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#94-114">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: &<a class="struct" href="../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</a>) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#19">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#19">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#93-115">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#94-114">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">fn <a href="#method.new" class="fnname">new</a>(map: &Map, i: &Intersection) -> Self</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#19">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/borders.rs.html#19">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details></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"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="borders/struct.MapBorder.html" title="struct synthpop::borders::MapBorder">MapBorder</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
pub only_seed_buses: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Scenario describes all the input to a simulation. Usually a scenario covers one day.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.scenario_name" class="structfield small-section-header"><a href="#structfield.scenario_name" class="anchor field"></a><code>scenario_name: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.map_name" class="structfield small-section-header"><a href="#structfield.map_name" class="anchor field"></a><code>map_name: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.people" class="structfield small-section-header"><a href="#structfield.people" class="anchor field"></a><code>people: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="scenario/struct.PersonSpec.html" title="struct synthpop::scenario::PersonSpec">PersonSpec</a>></code></span><span id="structfield.only_seed_buses" class="structfield small-section-header"><a href="#structfield.only_seed_buses" class="anchor field"></a><code>only_seed_buses: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>></code></span><div class="docblock"><p>None means seed all buses. Otherwise the route name must be present here.</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#106-162">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><section id="method.save" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#107-112">source</a></span><a href="#method.save" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.save" class="fnname">save</a>(&self)</h4></section><section id="method.empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#114-121">source</a></span><a href="#method.empty" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>(map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, name: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.remove_weird_schedules" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#123-140">source</a></span><a href="#method.remove_weird_schedules" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.remove_weird_schedules" class="fnname">remove_weird_schedules</a>(self, verbose: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.all_trips" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#142-144">source</a></span><a href="#method.all_trips" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.all_trips" class="fnname">all_trips</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<a class="struct" href="scenario/struct.IndividTrip.html" title="struct synthpop::scenario::IndividTrip">IndividTrip</a>></h4></section><section id="method.default_scenario_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#146-161">source</a></span><a href="#method.default_scenario_for_map" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.default_scenario_for_map" class="fnname">default_scenario_for_map</a>(name: &<a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#106-162">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><section id="method.save" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#107-112">source</a></span><a href="#method.save" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.save" class="fnname">save</a>(&self)</h4></section><section id="method.empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#114-121">source</a></span><a href="#method.empty" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>(map: &Map, name: &<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.remove_weird_schedules" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#123-140">source</a></span><a href="#method.remove_weird_schedules" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.remove_weird_schedules" class="fnname">remove_weird_schedules</a>(self, verbose: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a>) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section><section id="method.all_trips" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#142-144">source</a></span><a href="#method.all_trips" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.all_trips" class="fnname">all_trips</a>(&self) -> impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<a class="struct" href="scenario/struct.IndividTrip.html" title="struct synthpop::scenario::IndividTrip">IndividTrip</a>></h4></section><section id="method.default_scenario_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#146-161">source</a></span><a href="#method.default_scenario_for_map" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.default_scenario_for_map" class="fnname">default_scenario_for_map</a>(name: &<a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="scenario/struct.Scenario.html" title="struct synthpop::scenario::Scenario">Scenario</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/scenario.rs.html#15">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
|
@ -7,16 +7,16 @@
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">synthpop</a>::<wbr><a class="struct" href="#">TrafficCounts</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/synthpop/counts.rs.html#14-22">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct TrafficCounts {
|
||||
pub map: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a>,
|
||||
pub description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub per_road: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>>,
|
||||
pub per_intersection: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>>,
|
||||
pub per_road: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><RoadID>,
|
||||
pub per_intersection: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><IntersectionID>,
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This represents the number of vehicles (or trips, or something else) crossing roads and
|
||||
intersections over some span of time. The data could represent real observations or something
|
||||
from a simulation.</p>
|
||||
<p>There’s some nice UIs in other crates to compare counts.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.map" class="structfield small-section-header"><a href="#structfield.map" class="anchor field"></a><code>map: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.per_road" class="structfield small-section-header"><a href="#structfield.per_road" class="anchor field"></a><code>per_road: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../map_model/objects/road/struct.RoadID.html" title="struct map_model::objects::road::RoadID">RoadID</a>></code></span><span id="structfield.per_intersection" class="structfield small-section-header"><a href="#structfield.per_intersection" class="anchor field"></a><code>per_intersection: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><<a class="struct" href="../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#35-139">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_path_requests" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#39-77">source</a></span><a href="#method.from_path_requests" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_path_requests" class="fnname">from_path_requests</a>(<br> map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> requests: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../map_model/pathfind/v1/struct.PathRequest.html" title="struct map_model::pathfind::v1::PathRequest">PathRequest</a>, <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>, <br> pathfinder: &<a class="struct" href="../map_model/pathfind/pathfinder/struct.Pathfinder.html" title="struct map_model::pathfind::pathfinder::Pathfinder">Pathfinder</a>, <br> timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> Self</h4></section></summary><div class="docblock"><p>Run pathfinding on all of the requests, then count the throughput on every road and
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.map" class="structfield small-section-header"><a href="#structfield.map" class="anchor field"></a><code>map: <a class="struct" href="../abstio/abst_paths/struct.MapName.html" title="struct abstio::abst_paths::MapName">MapName</a></code></span><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.per_road" class="structfield small-section-header"><a href="#structfield.per_road" class="anchor field"></a><code>per_road: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><RoadID></code></span><span id="structfield.per_intersection" class="structfield small-section-header"><a href="#structfield.per_intersection" class="anchor field"></a><code>per_intersection: <a class="struct" href="../abstutil/collections/struct.Counter.html" title="struct abstutil::collections::Counter">Counter</a><IntersectionID></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#35-139">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_path_requests" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#39-77">source</a></span><a href="#method.from_path_requests" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_path_requests" class="fnname">from_path_requests</a>(<br> map: &Map, <br> description: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> requests: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>PathRequest, <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>, <br> pathfinder: &Pathfinder, <br> timer: &mut <a class="struct" href="../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> Self</h4></section></summary><div class="docblock"><p>Run pathfinding on all of the requests, then count the throughput on every road and
|
||||
intersection. Each request has the count it should contribute – use
|
||||
<code>PathRequest::deduplicate</code> to easily generate this.</p>
|
||||
</div></details><section id="method.update_with_path" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#79-105">source</a></span><a href="#method.update_with_path" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.update_with_path" class="fnname">update_with_path</a>(&mut self, path: <a class="struct" href="../map_model/pathfind/v2/struct.PathV2.html" title="struct map_model::pathfind::v2::PathV2">PathV2</a>, count: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.quickly_compare" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#108-138">source</a></span><a href="#method.quickly_compare" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.quickly_compare" class="fnname">quickly_compare</a>(&self, other: &<a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a>)</h4></section></summary><div class="docblock"><p>Print a comparison of counts. Only look at roads/intersections in <code>self</code>.</p>
|
||||
</div></details><section id="method.update_with_path" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#79-105">source</a></span><a href="#method.update_with_path" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.update_with_path" class="fnname">update_with_path</a>(&mut self, path: PathV2, count: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, map: &Map)</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.quickly_compare" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#108-138">source</a></span><a href="#method.quickly_compare" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.quickly_compare" class="fnname">quickly_compare</a>(&self, other: &<a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a>)</h4></section></summary><div class="docblock"><p>Print a comparison of counts. Only look at roads/intersections in <code>self</code>.</p>
|
||||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#13">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#13">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#24-33">source</a></span><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="counts/struct.TrafficCounts.html" title="struct synthpop::counts::TrafficCounts">TrafficCounts</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/synthpop/counts.rs.html#25-32">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> Self</h4></section></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.61.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
|
Loading…
Reference in New Issue
Block a user