mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
deploy: 0a353f67f8
This commit is contained in:
parent
2d65a4e713
commit
32e1e5521b
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><script>window.sidebarCurrent = {name: "BUILT_TIME_UTC", ty: "constant", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sat, 16 Jan 2021 05:31:31 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sat, 16 Jan 2021 06:02:24 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,22 +1,22 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `ID` enum in crate `map_editor`."><meta name="keywords" content="rust, rustlang, rust-lang, ID"><title>map_editor::model::ID - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_editor/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Enum ID</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Building">Building</a><a href="#variant.Intersection">Intersection</a><a href="#variant.Road">Road</a><a href="#variant.RoadPoint">RoadPoint</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-Hash">Hash</a><a href="#impl-ObjectID">ObjectID</a><a href="#impl-PartialEq%3CID%3E">PartialEq<ID></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-CallHasher">CallHasher</a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-Equivalent%3CK%3E">Equivalent<K></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a></p><script>window.sidebarCurrent = {name: "ID", ty: "enum", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#511-516" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="enum" href="">ID</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum ID {
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#513-518" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="enum" href="">ID</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum ID {
|
||||
Building(<a class="enum" href="../../map_model/osm/enum.OsmID.html" title="enum map_model::osm::OsmID">OsmID</a>),
|
||||
Intersection(<a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>),
|
||||
Road(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>),
|
||||
RoadPoint(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>),
|
||||
}</pre></div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.Building" class="variant small-section-header"><a href="#variant.Building" class="anchor field"></a><code>Building(<a class="enum" href="../../map_model/osm/enum.OsmID.html" title="enum map_model::osm::OsmID">OsmID</a>)</code></div><div id="variant.Intersection" class="variant small-section-header"><a href="#variant.Intersection" class="anchor field"></a><code>Intersection(<a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>)</code></div><div id="variant.Road" class="variant small-section-header"><a href="#variant.Road" class="anchor field"></a><code>Road(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>)</code></div><div id="variant.RoadPoint" class="variant small-section-header"><a href="#variant.RoadPoint" class="anchor field"></a><code>RoadPoint(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
<div id="variant.Building" class="variant small-section-header"><a href="#variant.Building" class="anchor field"></a><code>Building(<a class="enum" href="../../map_model/osm/enum.OsmID.html" title="enum map_model::osm::OsmID">OsmID</a>)</code></div><div id="variant.Intersection" class="variant small-section-header"><a href="#variant.Intersection" class="anchor field"></a><code>Intersection(<a class="struct" href="../../map_model/osm/struct.NodeID.html" title="struct map_model::osm::NodeID">NodeID</a>)</code></div><div id="variant.Road" class="variant small-section-header"><a href="#variant.Road" class="anchor field"></a><code>Road(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>)</code></div><div id="variant.RoadPoint" class="variant small-section-header"><a href="#variant.RoadPoint" class="anchor field"></a><code>RoadPoint(<a class="struct" href="../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Copy" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Hash" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Hash" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.hash" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__H)</code><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||||
</div></div><h3 id="impl-Copy" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Hash" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Hash" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.hash" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__H)</code><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||||
</div><h4 id="method.hash_slice" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></code><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#184-191" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||||
</div></div><h3 id="impl-ObjectID" class="impl"><code class="in-band">impl <a class="trait" href="../../map_editor/world/trait.ObjectID.html" title="trait map_editor::world::ObjectID">ObjectID</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-ObjectID" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#518-527" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.zorder" class="method hidden"><code>fn <a href="../../map_editor/world/trait.ObjectID.html#tymethod.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#519-526" title="goto source code">[src]</a></h4></div><h3 id="impl-PartialEq%3CID%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-PartialEq%3CID%3E" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
</div></div><h3 id="impl-ObjectID" class="impl"><code class="in-band">impl <a class="trait" href="../../map_editor/world/trait.ObjectID.html" title="trait map_editor::world::ObjectID">ObjectID</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-ObjectID" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#520-529" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.zorder" class="method hidden"><code>fn <a href="../../map_editor/world/trait.ObjectID.html#tymethod.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#521-528" title="goto source code">[src]</a></h4></div><h3 id="impl-PartialEq%3CID%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-PartialEq%3CID%3E" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#510" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#512" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-CallHasher" class="impl"><code class="in-band">impl<T> CallHasher for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, </span></code><a href="#impl-CallHasher" class="anchor"></a></h3><div class="impl-items"><h4 id="method.get_hash" class="method hidden"><code>pub fn <a href="#method.get_hash" class="fnname">get_hash</a><H>(&self, hasher: H) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a> <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></code></h4></div><h3 id="impl-Downcast" class="impl"><code class="in-band">impl<T> Downcast for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>, </span></code><a href="#impl-Downcast" class="anchor"></a></h3><div class="impl-items"><h4 id="method.into_any" class="method hidden"><code>pub fn <a href="#method.into_any" class="fnname">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>></code></h4><div class='docblock hidden'><p>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `dump_to_osm` fn in crate `map_editor`."><meta name="keywords" content="rust, rustlang, rust-lang, dump_to_osm"><title>map_editor::model::dump_to_osm - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_editor/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a></p><script>window.sidebarCurrent = {name: "dump_to_osm", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#549-594" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="fn" href="">dump_to_osm</a></span></h1><pre class="rust fn">fn dump_to_osm(map: &<a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></pre><div class="docblock"><p>Express a RawMap as a .osm file. Why not just save the RawMap? The format may change over time,
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#551-596" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="fn" href="">dump_to_osm</a></span></h1><pre class="rust fn">fn dump_to_osm(map: &<a class="struct" href="../../map_model/raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></pre><div class="docblock"><p>Express a RawMap as a .osm file. Why not just save the RawMap? The format may change over time,
|
||||
and even if a RawMap is saved as JSON, manually updating it is annoying. This is used to create
|
||||
synthetic maps that will never go bad -- there will always be a pipeline to import a .osm file,
|
||||
so actually, .osm is a stable-over-time format.</p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `time_to_id` fn in crate `map_editor`."><meta name="keywords" content="rust, rustlang, rust-lang, time_to_id"><title>map_editor::model::time_to_id - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_editor/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a></p><script>window.sidebarCurrent = {name: "time_to_id", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#531-536" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="fn" href="">time_to_id</a></span></h1><pre class="rust fn">fn time_to_id() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_editor";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#533-538" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">map_editor</a>::<wbr><a href="index.html">model</a>::<wbr><a class="fn" href="">time_to_id</a></span></h1><pre class="rust fn">fn time_to_id() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_editor";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `model` mod in crate `map_editor`."><meta name="keywords" content="rust, rustlang, rust-lang, model"><title>map_editor::model - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_editor/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module model</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../index.html">map_editor</a></p><script>window.sidebarCurrent = {name: "model", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#1-594" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_editor</a>::<wbr><a class="mod" href="">model</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/model.rs.html#1-596" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">map_editor</a>::<wbr><a class="mod" href="">model</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Model.html" title="map_editor::model::Model struct">Model</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.ID.html" title="map_editor::model::ID enum">ID</a></td><td class="docblock-short"></td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
||||
<table><tr class="module-item"><td><a class="constant" href="constant.BUILDING_LENGTH.html" title="map_editor::model::BUILDING_LENGTH constant">BUILDING_LENGTH</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="constant" href="constant.INTERSECTION_RADIUS.html" title="map_editor::model::INTERSECTION_RADIUS constant">INTERSECTION_RADIUS</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
|
File diff suppressed because one or more lines are too long
@ -3,4 +3,4 @@
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_editor/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Trait ObjectID</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.zorder">zorder</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class="location"><a href="../index.html">map_editor</a>::<wbr><a href="index.html">world</a></p><script>window.sidebarCurrent = {name: "ObjectID", ty: "trait", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/map_editor/world.rs.html#10-13" title="goto source code">[src]</a></span><span class="in-band">Trait <a href="../index.html">map_editor</a>::<wbr><a href="index.html">world</a>::<wbr><a class="trait" href="">ObjectID</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait ObjectID: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> {
|
||||
fn <a href="#tymethod.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
|
||||
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><h3 id="tymethod.zorder" class="method"><code>fn <a href="#tymethod.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></h3></div><span class="loading-content">Loading content...</span><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><h3 id="impl-ObjectID" class="impl"><code class="in-band">impl ObjectID for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-ObjectID" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#518-527" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.zorder" class="method hidden"><code>fn <a href="#method.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#519-526" title="goto source code">[src]</a></h4></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../../implementors/map_editor/world/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_editor";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><h3 id="tymethod.zorder" class="method"><code>fn <a href="#tymethod.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></h3></div><span class="loading-content">Loading content...</span><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><h3 id="impl-ObjectID" class="impl"><code class="in-band">impl ObjectID for <a class="enum" href="../../map_editor/model/enum.ID.html" title="enum map_editor::model::ID">ID</a></code><a href="#impl-ObjectID" class="anchor"></a><a class="srclink" href="../../src/map_editor/model.rs.html#520-529" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.zorder" class="method hidden"><code>fn <a href="#method.zorder" class="fnname">zorder</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../src/map_editor/model.rs.html#521-528" title="goto source code">[src]</a></h4></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../../implementors/map_editor/world/trait.ObjectID.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_editor";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -27,7 +27,7 @@ and display statistics.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.BorderSpawnOverTime.html" title="sim::BorderSpawnOverTime struct">BorderSpawnOverTime</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CarID.html" title="sim::CarID struct">CarID</a></td><td class="docblock-short"><p>The numeric ID must be globally unique, without considering VehicleType. VehicleType is bundled
|
||||
for convenient debugging.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.CommutersVehiclesCounts.html" title="sim::CommutersVehiclesCounts struct">CommutersVehiclesCounts</a></td><td class="docblock-short"><p>The number of active vehicles and commuters, broken into different categories.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.CreateCar.html" title="sim::CreateCar struct">CreateCar</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CreatePedestrian.html" title="sim::CreatePedestrian struct">CreatePedestrian</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DistanceInterval.html" title="sim::DistanceInterval struct">DistanceInterval</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawCarInput.html" title="sim::DrawCarInput struct">DrawCarInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawPedCrowdInput.html" title="sim::DrawPedCrowdInput struct">DrawPedCrowdInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawPedestrianInput.html" title="sim::DrawPedestrianInput struct">DrawPedestrianInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalPerson.html" title="sim::ExternalPerson struct">ExternalPerson</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalTrip.html" title="sim::ExternalTrip struct">ExternalTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.IndividTrip.html" title="sim::IndividTrip struct">IndividTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.OrigPersonID.html" title="sim::OrigPersonID struct">OrigPersonID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ParkedCar.html" title="sim::ParkedCar struct">ParkedCar</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PedestrianID.html" title="sim::PedestrianID struct">PedestrianID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Person.html" title="sim::Person struct">Person</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PersonID.html" title="sim::PersonID struct">PersonID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PersonSpec.html" title="sim::PersonSpec struct">PersonSpec</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Scenario.html" title="sim::Scenario struct">Scenario</a></td><td class="docblock-short"><p>A Scenario describes all the input to a simulation. Usually a scenario covers one day.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.CreateCar.html" title="sim::CreateCar struct">CreateCar</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.CreatePedestrian.html" title="sim::CreatePedestrian struct">CreatePedestrian</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DistanceInterval.html" title="sim::DistanceInterval struct">DistanceInterval</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawCarInput.html" title="sim::DrawCarInput struct">DrawCarInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawPedCrowdInput.html" title="sim::DrawPedCrowdInput struct">DrawPedCrowdInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.DrawPedestrianInput.html" title="sim::DrawPedestrianInput struct">DrawPedestrianInput</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalPerson.html" title="sim::ExternalPerson struct">ExternalPerson</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalTrip.html" title="sim::ExternalTrip struct">ExternalTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.IndividTrip.html" title="sim::IndividTrip struct">IndividTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MapBorders.html" title="sim::MapBorders struct">MapBorders</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.OrigPersonID.html" title="sim::OrigPersonID struct">OrigPersonID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ParkedCar.html" title="sim::ParkedCar struct">ParkedCar</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PedestrianID.html" title="sim::PedestrianID struct">PedestrianID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Person.html" title="sim::Person struct">Person</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PersonID.html" title="sim::PersonID struct">PersonID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.PersonSpec.html" title="sim::PersonSpec struct">PersonSpec</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Scenario.html" title="sim::Scenario struct">Scenario</a></td><td class="docblock-short"><p>A Scenario describes all the input to a simulation. Usually a scenario covers one day.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ScenarioGenerator.html" title="sim::ScenarioGenerator struct">ScenarioGenerator</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.SidewalkSpot.html" title="sim::SidewalkSpot struct">SidewalkSpot</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Sim.html" title="sim::Sim struct">Sim</a></td><td class="docblock-short"><p>The Sim ties together all the pieces of the simulation. Its main property is the current time.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.SimFlags.html" title="sim::SimFlags struct">SimFlags</a></td><td class="docblock-short"><p>SimFlags specifies a simulation to setup.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.SimOptions.html" title="sim::SimOptions struct">SimOptions</a></td><td class="docblock-short"><p>Options controlling the traffic simulation.</p>
|
||||
|
4
rustdoc/sim/make/external/index.html
vendored
4
rustdoc/sim/make/external/index.html
vendored
@ -1,8 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `external` mod in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, external"><title>sim::make::external - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module external</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class="location"><a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a></p><script>window.sidebarCurrent = {name: "external", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/sim/make/external.rs.html#1-89" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">external</a></span></h1><div class="docblock"><p>Some users of the API (https://dabreegster.github.io/abstreet/dev/api.html) have their own
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/sim/make/external.rs.html#1-169" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">external</a></span></h1><div class="docblock"><p>Some users of the API (https://dabreegster.github.io/abstreet/dev/api.html) have their own
|
||||
simulation input data; import it here.</p>
|
||||
</div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ExternalPerson.html" title="sim::make::external::ExternalPerson struct">ExternalPerson</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalTrip.html" title="sim::make::external::ExternalTrip struct">ExternalTrip</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ExternalPerson.html" title="sim::make::external::ExternalPerson struct">ExternalPerson</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.ExternalTrip.html" title="sim::make::external::ExternalTrip struct">ExternalTrip</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.MapBorders.html" title="sim::make::external::MapBorders struct">MapBorders</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.ExternalTripEndpoint.html" title="sim::make::external::ExternalTripEndpoint enum">ExternalTripEndpoint</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "sim";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
2
rustdoc/sim/make/external/sidebar-items.js
vendored
2
rustdoc/sim/make/external/sidebar-items.js
vendored
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["ExternalTripEndpoint",""]],"struct":[["ExternalPerson",""],["ExternalTrip",""]]});
|
||||
initSidebarItems({"enum":[["ExternalTripEndpoint",""]],"struct":[["ExternalPerson",""],["ExternalTrip",""],["MapBorders",""]]});
|
33
rustdoc/sim/make/external/struct.MapBorders.html
vendored
Normal file
33
rustdoc/sim/make/external/struct.MapBorders.html
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/sim/make/mod.rs.html#1-27" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">sim</a>::<wbr><a class="mod" href="">make</a></span></h1><div class="docblock"><p>Everything needed to setup a simulation.
|
||||
<a href="https://dabreegster.github.io/abstreet/trafficsim/travel_demand.html">https://dabreegster.github.io/abstreet/trafficsim/travel_demand.html</a> for context.</p>
|
||||
</div><h2 id="reexports" class="section-header"><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::external::<a class="struct" href="../../sim/struct.ExternalPerson.html" title="struct sim::ExternalPerson">ExternalPerson</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="struct" href="../../sim/struct.ExternalTrip.html" title="struct sim::ExternalTrip">ExternalTrip</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="enum" href="../../sim/enum.ExternalTripEndpoint.html" title="enum sim::ExternalTripEndpoint">ExternalTripEndpoint</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.BorderSpawnOverTime.html" title="struct sim::BorderSpawnOverTime">BorderSpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.ScenarioGenerator.html" title="struct sim::ScenarioGenerator">ScenarioGenerator</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.SpawnOverTime.html" title="struct sim::SpawnOverTime">SpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::load::<a class="struct" href="../../sim/struct.SimFlags.html" title="struct sim::SimFlags">SimFlags</a>;</code></td></tr><tr><td><code>pub use self::modifier::<a class="enum" href="../../sim/enum.ScenarioModifier.html" title="enum sim::ScenarioModifier">ScenarioModifier</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.IndividTrip.html" title="struct sim::IndividTrip">IndividTrip</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.PersonSpec.html" title="struct sim::PersonSpec">PersonSpec</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.Scenario.html" title="struct sim::Scenario">Scenario</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="enum" href="../../sim/enum.TripPurpose.html" title="enum sim::TripPurpose">TripPurpose</a>;</code></td></tr><tr><td><code>pub use self::spawner::<a class="enum" href="../../sim/enum.TripEndpoint.html" title="enum sim::TripEndpoint">TripEndpoint</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr><td><code>pub use self::external::<a class="struct" href="../../sim/struct.ExternalPerson.html" title="struct sim::ExternalPerson">ExternalPerson</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="struct" href="../../sim/struct.ExternalTrip.html" title="struct sim::ExternalTrip">ExternalTrip</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="enum" href="../../sim/enum.ExternalTripEndpoint.html" title="enum sim::ExternalTripEndpoint">ExternalTripEndpoint</a>;</code></td></tr><tr><td><code>pub use self::external::<a class="struct" href="../../sim/struct.MapBorders.html" title="struct sim::MapBorders">MapBorders</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.BorderSpawnOverTime.html" title="struct sim::BorderSpawnOverTime">BorderSpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.ScenarioGenerator.html" title="struct sim::ScenarioGenerator">ScenarioGenerator</a>;</code></td></tr><tr><td><code>pub use self::generator::<a class="struct" href="../../sim/struct.SpawnOverTime.html" title="struct sim::SpawnOverTime">SpawnOverTime</a>;</code></td></tr><tr><td><code>pub use self::load::<a class="struct" href="../../sim/struct.SimFlags.html" title="struct sim::SimFlags">SimFlags</a>;</code></td></tr><tr><td><code>pub use self::modifier::<a class="enum" href="../../sim/enum.ScenarioModifier.html" title="enum sim::ScenarioModifier">ScenarioModifier</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.IndividTrip.html" title="struct sim::IndividTrip">IndividTrip</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.PersonSpec.html" title="struct sim::PersonSpec">PersonSpec</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="struct" href="../../sim/struct.Scenario.html" title="struct sim::Scenario">Scenario</a>;</code></td></tr><tr><td><code>pub use self::scenario::<a class="enum" href="../../sim/enum.TripPurpose.html" title="enum sim::TripPurpose">TripPurpose</a>;</code></td></tr><tr><td><code>pub use self::spawner::<a class="enum" href="../../sim/enum.TripEndpoint.html" title="enum sim::TripEndpoint">TripEndpoint</a>;</code></td></tr></table><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||
<table><tr class="module-item"><td><a class="mod" href="activity_model/index.html" title="sim::make::activity_model mod">activity_model</a></td><td class="docblock-short"><p>An activity model creates "people" that follow a set schedule of activities through the day.
|
||||
Each activity (like shopping, working, sleeping) lasts some time, and requires the person to go
|
||||
somewhere at some time. This is an extremely simple activity model that just uses data inferred
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"constant":[["BIKE_LENGTH",""],["BUS_LENGTH",""],["FOLLOWING_DISTANCE","At all speeds (including at rest), cars must be at least this far apart, measured from front of one car to the back of the other."],["LIGHT_RAIL_LENGTH",""],["MAX_CAR_LENGTH",""],["MIN_CAR_LENGTH",""],["SPAWN_DIST","When spawning at borders, start the front of the vehicle this far along and gradually appear. Getting too close to EPSILON_DIST can lead to get_draw_car having no geometry at all."]],"enum":[["AgentID",""],["AgentType",""],["AlertHandler",""],["AlertLocation",""],["CarStatus",""],["DelayCause","Why is an agent delayed? If there are multiple reasons, arbitrarily pick one -- ie, somebody could be blocked by two conflicting turns."],["DrivingGoal",""],["ExternalTripEndpoint",""],["ParkingSpot",""],["PedCrowdLocation",""],["PersonState",""],["ScenarioModifier","Transforms an existing Scenario before instantiating it."],["SidewalkPOI","Point of interest, that is"],["TripEndpoint","Specifies where a trip begins or ends."],["TripMode",""],["TripPhaseType",""],["TripPurpose","Lifted from Seattle's Soundcast model, but seems general enough to use anyhere."],["TripResult",""],["VehicleType",""]],"fn":[["fork_rng","Need to explain this trick -- basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["analytics",""],["cap",""],["events",""],["make","Everything needed to setup a simulation. https://dabreegster.github.io/abstreet/trafficsim/travel_demand.html for context."],["mechanics",""],["pandemic","An experimental SEIR model by https://github.com/omalaspinas/ glued to the traffic simulation. Transmission may occur when people spend time in shared spaces like buildings, bus stops, and buses."],["recorder",""],["render","Intermediate structures so that sim and game crates don't have a cyclic dependency."],["router","For vehicles only, not pedestrians. Follows a Path from map_model, but can opportunistically lane-change to avoid a slow lane, can can handle re-planning to look for available parking."],["scheduler",""],["sim",""],["transit",""],["trips",""]],"struct":[["AgentProperties",""],["Analytics","As a simulation runs, different pieces emit Events. The Analytics object listens to these, organizing and storing some information from them. The UI queries Analytics to draw time-series and display statistics."],["BorderSpawnOverTime",""],["CarID","The numeric ID must be globally unique, without considering VehicleType. VehicleType is bundled for convenient debugging."],["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["CreateCar",""],["CreatePedestrian",""],["DistanceInterval",""],["DrawCarInput",""],["DrawPedCrowdInput",""],["DrawPedestrianInput",""],["ExternalPerson",""],["ExternalTrip",""],["IndividTrip",""],["OrigPersonID",""],["ParkedCar",""],["PedestrianID",""],["Person",""],["PersonID",""],["PersonSpec",""],["Scenario","A Scenario describes all the input to a simulation. Usually a scenario covers one day."],["ScenarioGenerator",""],["SidewalkSpot",""],["Sim","The Sim ties together all the pieces of the simulation. Its main property is the current time."],["SimFlags","SimFlags specifies a simulation to setup."],["SimOptions","Options controlling the traffic simulation."],["SpawnOverTime",""],["TimeInterval",""],["TripID",""],["TripInfo",""],["TripPhase",""],["UnzoomedAgent",""],["Vehicle",""],["VehicleSpec",""]],"trait":[["SimCallback",""]]});
|
||||
initSidebarItems({"constant":[["BIKE_LENGTH",""],["BUS_LENGTH",""],["FOLLOWING_DISTANCE","At all speeds (including at rest), cars must be at least this far apart, measured from front of one car to the back of the other."],["LIGHT_RAIL_LENGTH",""],["MAX_CAR_LENGTH",""],["MIN_CAR_LENGTH",""],["SPAWN_DIST","When spawning at borders, start the front of the vehicle this far along and gradually appear. Getting too close to EPSILON_DIST can lead to get_draw_car having no geometry at all."]],"enum":[["AgentID",""],["AgentType",""],["AlertHandler",""],["AlertLocation",""],["CarStatus",""],["DelayCause","Why is an agent delayed? If there are multiple reasons, arbitrarily pick one -- ie, somebody could be blocked by two conflicting turns."],["DrivingGoal",""],["ExternalTripEndpoint",""],["ParkingSpot",""],["PedCrowdLocation",""],["PersonState",""],["ScenarioModifier","Transforms an existing Scenario before instantiating it."],["SidewalkPOI","Point of interest, that is"],["TripEndpoint","Specifies where a trip begins or ends."],["TripMode",""],["TripPhaseType",""],["TripPurpose","Lifted from Seattle's Soundcast model, but seems general enough to use anyhere."],["TripResult",""],["VehicleType",""]],"fn":[["fork_rng","Need to explain this trick -- basically keeps consistency between two different simulations when each one might make slightly different sequences of calls to the RNG."]],"mod":[["analytics",""],["cap",""],["events",""],["make","Everything needed to setup a simulation. https://dabreegster.github.io/abstreet/trafficsim/travel_demand.html for context."],["mechanics",""],["pandemic","An experimental SEIR model by https://github.com/omalaspinas/ glued to the traffic simulation. Transmission may occur when people spend time in shared spaces like buildings, bus stops, and buses."],["recorder",""],["render","Intermediate structures so that sim and game crates don't have a cyclic dependency."],["router","For vehicles only, not pedestrians. Follows a Path from map_model, but can opportunistically lane-change to avoid a slow lane, can can handle re-planning to look for available parking."],["scheduler",""],["sim",""],["transit",""],["trips",""]],"struct":[["AgentProperties",""],["Analytics","As a simulation runs, different pieces emit Events. The Analytics object listens to these, organizing and storing some information from them. The UI queries Analytics to draw time-series and display statistics."],["BorderSpawnOverTime",""],["CarID","The numeric ID must be globally unique, without considering VehicleType. VehicleType is bundled for convenient debugging."],["CommutersVehiclesCounts","The number of active vehicles and commuters, broken into different categories."],["CreateCar",""],["CreatePedestrian",""],["DistanceInterval",""],["DrawCarInput",""],["DrawPedCrowdInput",""],["DrawPedestrianInput",""],["ExternalPerson",""],["ExternalTrip",""],["IndividTrip",""],["MapBorders",""],["OrigPersonID",""],["ParkedCar",""],["PedestrianID",""],["Person",""],["PersonID",""],["PersonSpec",""],["Scenario","A Scenario describes all the input to a simulation. Usually a scenario covers one day."],["ScenarioGenerator",""],["SidewalkSpot",""],["Sim","The Sim ties together all the pieces of the simulation. Its main property is the current time."],["SimFlags","SimFlags specifies a simulation to setup."],["SimOptions","Options controlling the traffic simulation."],["SpawnOverTime",""],["TimeInterval",""],["TripID",""],["TripInfo",""],["TripPhase",""],["UnzoomedAgent",""],["Vehicle",""],["VehicleSpec",""]],"trait":[["SimCallback",""]]});
|
33
rustdoc/sim/struct.MapBorders.html
Normal file
33
rustdoc/sim/struct.MapBorders.html
Normal file
File diff suppressed because one or more lines are too long
@ -122,7 +122,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.49.0 (e1884a8e3 2020-12-29)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Sat, 16 Jan 2021 05:31:31 +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">"Sat, 16 Jan 2021 06:02:24 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -595,6 +595,8 @@
|
||||
<span id="592">592</span>
|
||||
<span id="593">593</span>
|
||||
<span id="594">594</span>
|
||||
<span id="595">595</span>
|
||||
<span id="596">596</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashMap</span>};
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">io</span>::<span class="ident">Write</span>;
|
||||
@ -904,7 +906,9 @@
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">road_object</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">id</span>: <span class="ident">OriginalRoad</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Object</span><span class="op"><</span><span class="ident">ID</span><span class="op">></span> {
|
||||
<span class="kw">let</span> (<span class="ident">center</span>, <span class="ident">total_width</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">map</span>.<span class="ident">roads</span>[<span class="kw-2">&</span><span class="ident">id</span>].<span class="ident">get_geometry</span>(<span class="ident">id</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">map</span>.<span class="ident">config</span>);
|
||||
<span class="kw">let</span> (<span class="ident">center</span>, <span class="ident">total_width</span>) <span class="op">=</span> <span class="self">self</span>.<span class="ident">map</span>.<span class="ident">roads</span>[<span class="kw-2">&</span><span class="ident">id</span>]
|
||||
.<span class="ident">get_geometry</span>(<span class="ident">id</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">map</span>.<span class="ident">config</span>)
|
||||
.<span class="ident">unwrap</span>();
|
||||
<span class="ident">Object</span>::<span class="ident">new</span>(
|
||||
<span class="ident">ID</span>::<span class="ident">Road</span>(<span class="ident">id</span>),
|
||||
<span class="ident">Color</span>::<span class="ident">grey</span>(<span class="number">0.8</span>),
|
||||
|
@ -678,7 +678,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">events</span>::{<span class="ident">AlertLocation</span>, <span class="ident">TripPhaseType</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">make</span>::{
|
||||
<span class="ident">fork_rng</span>, <span class="ident">BorderSpawnOverTime</span>, <span class="ident">ExternalPerson</span>, <span class="ident">ExternalTrip</span>, <span class="ident">ExternalTripEndpoint</span>, <span class="ident">IndividTrip</span>,
|
||||
<span class="ident">PersonSpec</span>, <span class="ident">Scenario</span>, <span class="ident">ScenarioGenerator</span>, <span class="ident">ScenarioModifier</span>, <span class="ident">SimFlags</span>, <span class="ident">SpawnOverTime</span>,
|
||||
<span class="ident">MapBorders</span>, <span class="ident">PersonSpec</span>, <span class="ident">Scenario</span>, <span class="ident">ScenarioGenerator</span>, <span class="ident">ScenarioModifier</span>, <span class="ident">SimFlags</span>, <span class="ident">SpawnOverTime</span>,
|
||||
<span class="ident">TripEndpoint</span>, <span class="ident">TripPurpose</span>,
|
||||
};
|
||||
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">use</span> <span class="self">self</span>::<span class="ident">make</span>::{<span class="ident">StartTripArgs</span>, <span class="ident">TripSpec</span>};
|
||||
|
@ -1,95 +1,175 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `sim/src/make/external.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>external.rs - source</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
<span id="5"> 5</span>
|
||||
<span id="6"> 6</span>
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10">10</span>
|
||||
<span id="11">11</span>
|
||||
<span id="12">12</span>
|
||||
<span id="13">13</span>
|
||||
<span id="14">14</span>
|
||||
<span id="15">15</span>
|
||||
<span id="16">16</span>
|
||||
<span id="17">17</span>
|
||||
<span id="18">18</span>
|
||||
<span id="19">19</span>
|
||||
<span id="20">20</span>
|
||||
<span id="21">21</span>
|
||||
<span id="22">22</span>
|
||||
<span id="23">23</span>
|
||||
<span id="24">24</span>
|
||||
<span id="25">25</span>
|
||||
<span id="26">26</span>
|
||||
<span id="27">27</span>
|
||||
<span id="28">28</span>
|
||||
<span id="29">29</span>
|
||||
<span id="30">30</span>
|
||||
<span id="31">31</span>
|
||||
<span id="32">32</span>
|
||||
<span id="33">33</span>
|
||||
<span id="34">34</span>
|
||||
<span id="35">35</span>
|
||||
<span id="36">36</span>
|
||||
<span id="37">37</span>
|
||||
<span id="38">38</span>
|
||||
<span id="39">39</span>
|
||||
<span id="40">40</span>
|
||||
<span id="41">41</span>
|
||||
<span id="42">42</span>
|
||||
<span id="43">43</span>
|
||||
<span id="44">44</span>
|
||||
<span id="45">45</span>
|
||||
<span id="46">46</span>
|
||||
<span id="47">47</span>
|
||||
<span id="48">48</span>
|
||||
<span id="49">49</span>
|
||||
<span id="50">50</span>
|
||||
<span id="51">51</span>
|
||||
<span id="52">52</span>
|
||||
<span id="53">53</span>
|
||||
<span id="54">54</span>
|
||||
<span id="55">55</span>
|
||||
<span id="56">56</span>
|
||||
<span id="57">57</span>
|
||||
<span id="58">58</span>
|
||||
<span id="59">59</span>
|
||||
<span id="60">60</span>
|
||||
<span id="61">61</span>
|
||||
<span id="62">62</span>
|
||||
<span id="63">63</span>
|
||||
<span id="64">64</span>
|
||||
<span id="65">65</span>
|
||||
<span id="66">66</span>
|
||||
<span id="67">67</span>
|
||||
<span id="68">68</span>
|
||||
<span id="69">69</span>
|
||||
<span id="70">70</span>
|
||||
<span id="71">71</span>
|
||||
<span id="72">72</span>
|
||||
<span id="73">73</span>
|
||||
<span id="74">74</span>
|
||||
<span id="75">75</span>
|
||||
<span id="76">76</span>
|
||||
<span id="77">77</span>
|
||||
<span id="78">78</span>
|
||||
<span id="79">79</span>
|
||||
<span id="80">80</span>
|
||||
<span id="81">81</span>
|
||||
<span id="82">82</span>
|
||||
<span id="83">83</span>
|
||||
<span id="84">84</span>
|
||||
<span id="85">85</span>
|
||||
<span id="86">86</span>
|
||||
<span id="87">87</span>
|
||||
<span id="88">88</span>
|
||||
<span id="89">89</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
<span id="5"> 5</span>
|
||||
<span id="6"> 6</span>
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10"> 10</span>
|
||||
<span id="11"> 11</span>
|
||||
<span id="12"> 12</span>
|
||||
<span id="13"> 13</span>
|
||||
<span id="14"> 14</span>
|
||||
<span id="15"> 15</span>
|
||||
<span id="16"> 16</span>
|
||||
<span id="17"> 17</span>
|
||||
<span id="18"> 18</span>
|
||||
<span id="19"> 19</span>
|
||||
<span id="20"> 20</span>
|
||||
<span id="21"> 21</span>
|
||||
<span id="22"> 22</span>
|
||||
<span id="23"> 23</span>
|
||||
<span id="24"> 24</span>
|
||||
<span id="25"> 25</span>
|
||||
<span id="26"> 26</span>
|
||||
<span id="27"> 27</span>
|
||||
<span id="28"> 28</span>
|
||||
<span id="29"> 29</span>
|
||||
<span id="30"> 30</span>
|
||||
<span id="31"> 31</span>
|
||||
<span id="32"> 32</span>
|
||||
<span id="33"> 33</span>
|
||||
<span id="34"> 34</span>
|
||||
<span id="35"> 35</span>
|
||||
<span id="36"> 36</span>
|
||||
<span id="37"> 37</span>
|
||||
<span id="38"> 38</span>
|
||||
<span id="39"> 39</span>
|
||||
<span id="40"> 40</span>
|
||||
<span id="41"> 41</span>
|
||||
<span id="42"> 42</span>
|
||||
<span id="43"> 43</span>
|
||||
<span id="44"> 44</span>
|
||||
<span id="45"> 45</span>
|
||||
<span id="46"> 46</span>
|
||||
<span id="47"> 47</span>
|
||||
<span id="48"> 48</span>
|
||||
<span id="49"> 49</span>
|
||||
<span id="50"> 50</span>
|
||||
<span id="51"> 51</span>
|
||||
<span id="52"> 52</span>
|
||||
<span id="53"> 53</span>
|
||||
<span id="54"> 54</span>
|
||||
<span id="55"> 55</span>
|
||||
<span id="56"> 56</span>
|
||||
<span id="57"> 57</span>
|
||||
<span id="58"> 58</span>
|
||||
<span id="59"> 59</span>
|
||||
<span id="60"> 60</span>
|
||||
<span id="61"> 61</span>
|
||||
<span id="62"> 62</span>
|
||||
<span id="63"> 63</span>
|
||||
<span id="64"> 64</span>
|
||||
<span id="65"> 65</span>
|
||||
<span id="66"> 66</span>
|
||||
<span id="67"> 67</span>
|
||||
<span id="68"> 68</span>
|
||||
<span id="69"> 69</span>
|
||||
<span id="70"> 70</span>
|
||||
<span id="71"> 71</span>
|
||||
<span id="72"> 72</span>
|
||||
<span id="73"> 73</span>
|
||||
<span id="74"> 74</span>
|
||||
<span id="75"> 75</span>
|
||||
<span id="76"> 76</span>
|
||||
<span id="77"> 77</span>
|
||||
<span id="78"> 78</span>
|
||||
<span id="79"> 79</span>
|
||||
<span id="80"> 80</span>
|
||||
<span id="81"> 81</span>
|
||||
<span id="82"> 82</span>
|
||||
<span id="83"> 83</span>
|
||||
<span id="84"> 84</span>
|
||||
<span id="85"> 85</span>
|
||||
<span id="86"> 86</span>
|
||||
<span id="87"> 87</span>
|
||||
<span id="88"> 88</span>
|
||||
<span id="89"> 89</span>
|
||||
<span id="90"> 90</span>
|
||||
<span id="91"> 91</span>
|
||||
<span id="92"> 92</span>
|
||||
<span id="93"> 93</span>
|
||||
<span id="94"> 94</span>
|
||||
<span id="95"> 95</span>
|
||||
<span id="96"> 96</span>
|
||||
<span id="97"> 97</span>
|
||||
<span id="98"> 98</span>
|
||||
<span id="99"> 99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
<span id="102">102</span>
|
||||
<span id="103">103</span>
|
||||
<span id="104">104</span>
|
||||
<span id="105">105</span>
|
||||
<span id="106">106</span>
|
||||
<span id="107">107</span>
|
||||
<span id="108">108</span>
|
||||
<span id="109">109</span>
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
<span id="127">127</span>
|
||||
<span id="128">128</span>
|
||||
<span id="129">129</span>
|
||||
<span id="130">130</span>
|
||||
<span id="131">131</span>
|
||||
<span id="132">132</span>
|
||||
<span id="133">133</span>
|
||||
<span id="134">134</span>
|
||||
<span id="135">135</span>
|
||||
<span id="136">136</span>
|
||||
<span id="137">137</span>
|
||||
<span id="138">138</span>
|
||||
<span id="139">139</span>
|
||||
<span id="140">140</span>
|
||||
<span id="141">141</span>
|
||||
<span id="142">142</span>
|
||||
<span id="143">143</span>
|
||||
<span id="144">144</span>
|
||||
<span id="145">145</span>
|
||||
<span id="146">146</span>
|
||||
<span id="147">147</span>
|
||||
<span id="148">148</span>
|
||||
<span id="149">149</span>
|
||||
<span id="150">150</span>
|
||||
<span id="151">151</span>
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
<span id="154">154</span>
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Some users of the API (https://dabreegster.github.io/abstreet/dev/api.html) have their own</span>
|
||||
<span class="doccomment">//! simulation input data; import it here.</span>
|
||||
@ -98,7 +178,7 @@
|
||||
<span class="kw">use</span> <span class="ident">serde</span>::<span class="ident">Deserialize</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">FindClosest</span>, <span class="ident">LonLat</span>, <span class="ident">Time</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::<span class="ident">Map</span>;
|
||||
<span class="kw">use</span> <span class="ident">map_model</span>::{<span class="ident">IntersectionID</span>, <span class="ident">Map</span>, <span class="ident">PathConstraints</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">IndividTrip</span>, <span class="ident">PersonSpec</span>, <span class="ident">TripEndpoint</span>, <span class="ident">TripMode</span>, <span class="ident">TripPurpose</span>};
|
||||
|
||||
@ -132,14 +212,9 @@
|
||||
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_buildings</span>() {
|
||||
<span class="ident">closest</span>.<span class="ident">add</span>(<span class="ident">TripEndpoint</span>::<span class="ident">Bldg</span>(<span class="ident">b</span>.<span class="ident">id</span>), <span class="ident">b</span>.<span class="ident">polygon</span>.<span class="ident">points</span>());
|
||||
}
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">borders</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_intersections</span>() {
|
||||
<span class="kw">if</span> <span class="ident">i</span>.<span class="ident">is_border</span>() {
|
||||
<span class="ident">borders</span>.<span class="ident">push</span>((<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(<span class="ident">i</span>.<span class="ident">id</span>), <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>()));
|
||||
}
|
||||
}
|
||||
<span class="kw">let</span> <span class="ident">borders</span> <span class="op">=</span> <span class="ident">MapBorders</span>::<span class="ident">new</span>(<span class="ident">map</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">lookup_pt</span> <span class="op">=</span> <span class="op">|</span><span class="ident">endpt</span><span class="op">|</span> <span class="kw">match</span> <span class="ident">endpt</span> {
|
||||
<span class="kw">let</span> <span class="ident">lookup_pt</span> <span class="op">=</span> <span class="op">|</span><span class="ident">endpt</span>, <span class="ident">is_origin</span>, <span class="ident">mode</span><span class="op">|</span> <span class="kw">match</span> <span class="ident">endpt</span> {
|
||||
<span class="ident">ExternalTripEndpoint</span>::<span class="ident">TripEndpoint</span>(<span class="ident">endpt</span>) <span class="op">=</span><span class="op">></span> <span class="prelude-val">Ok</span>(<span class="ident">endpt</span>),
|
||||
<span class="ident">ExternalTripEndpoint</span>::<span class="ident">Position</span>(<span class="ident">gps</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">pt</span> <span class="op">=</span> <span class="ident">gps</span>.<span class="ident">to_pt</span>(<span class="ident">map</span>.<span class="ident">get_gps_bounds</span>());
|
||||
@ -149,12 +224,15 @@
|
||||
<span class="prelude-val">None</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Err</span>(<span class="macro">anyhow</span><span class="macro">!</span>(<span class="string">"No building within 100m of {}"</span>, <span class="ident">gps</span>)),
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">borders</span>
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">min_by_key</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">border</span>)<span class="op">|</span> <span class="ident">border</span>.<span class="ident">fast_dist</span>(<span class="ident">pt</span>))
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="number">0</span>
|
||||
.<span class="ident">clone</span>())
|
||||
<span class="kw">let</span> (<span class="ident">incoming</span>, <span class="ident">outgoing</span>) <span class="op">=</span> <span class="ident">borders</span>.<span class="ident">for_mode</span>(<span class="ident">mode</span>);
|
||||
<span class="kw">let</span> <span class="ident">candidates</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">is_origin</span> { <span class="ident">incoming</span> } <span class="kw">else</span> { <span class="ident">outgoing</span> };
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">TripEndpoint</span>::<span class="ident">Border</span>(
|
||||
<span class="ident">candidates</span>
|
||||
.<span class="ident">iter</span>()
|
||||
.<span class="ident">min_by_key</span>(<span class="op">|</span>(<span class="kw">_</span>, <span class="ident">border</span>)<span class="op">|</span> <span class="ident">border</span>.<span class="ident">fast_dist</span>(<span class="ident">gps</span>))
|
||||
.<span class="ident">ok_or_else</span>(<span class="op">|</span><span class="op">|</span> <span class="macro">anyhow</span><span class="macro">!</span>(<span class="string">"No border for {}"</span>, <span class="ident">mode</span>.<span class="ident">ongoing_verb</span>()))<span class="question-mark">?</span>
|
||||
.<span class="number">0</span>,
|
||||
))
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -163,7 +241,7 @@
|
||||
<span class="kw">for</span> <span class="ident">person</span> <span class="kw">in</span> <span class="ident">input</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">spec</span> <span class="op">=</span> <span class="ident">PersonSpec</span> {
|
||||
<span class="ident">orig_id</span>: <span class="prelude-val">None</span>,
|
||||
<span class="ident">origin</span>: <span class="ident">lookup_pt</span>(<span class="ident">person</span>.<span class="ident">origin</span>)<span class="question-mark">?</span>,
|
||||
<span class="ident">origin</span>: <span class="ident">lookup_pt</span>(<span class="ident">person</span>.<span class="ident">origin</span>, <span class="bool-val">true</span>, <span class="ident">person</span>.<span class="ident">trips</span>[<span class="number">0</span>].<span class="ident">mode</span>)<span class="question-mark">?</span>,
|
||||
<span class="ident">trips</span>: <span class="ident">Vec</span>::<span class="ident">new</span>(),
|
||||
};
|
||||
<span class="kw">for</span> <span class="ident">trip</span> <span class="kw">in</span> <span class="ident">person</span>.<span class="ident">trips</span> {
|
||||
@ -171,7 +249,9 @@
|
||||
<span class="ident">spec</span>.<span class="ident">trips</span>.<span class="ident">push</span>(<span class="ident">IndividTrip</span>::<span class="ident">new</span>(
|
||||
<span class="ident">trip</span>.<span class="ident">departure</span>,
|
||||
<span class="ident">TripPurpose</span>::<span class="ident">Shopping</span>,
|
||||
<span class="ident">lookup_pt</span>(<span class="ident">trip</span>.<span class="ident">destination</span>)<span class="question-mark">?</span>,
|
||||
<span class="comment">// TODO Do we handle somebody going off-map via one one-way bridge, and</span>
|
||||
<span class="comment">// re-entering using the other?</span>
|
||||
<span class="ident">lookup_pt</span>(<span class="ident">trip</span>.<span class="ident">destination</span>, <span class="bool-val">false</span>, <span class="ident">trip</span>.<span class="ident">mode</span>)<span class="question-mark">?</span>,
|
||||
<span class="ident">trip</span>.<span class="ident">mode</span>,
|
||||
));
|
||||
}
|
||||
@ -180,5 +260,85 @@
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">results</span>)
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">MapBorders</span> {
|
||||
<span class="kw">pub</span> <span class="ident">incoming_walking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">incoming_driving</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">incoming_biking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">outgoing_walking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">outgoing_driving</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw">pub</span> <span class="ident">outgoing_biking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">MapBorders</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">new</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="ident">MapBorders</span> {
|
||||
<span class="kw">let</span> <span class="ident">bounds</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_gps_bounds</span>();
|
||||
<span class="kw">let</span> <span class="ident">incoming_walking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_incoming_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> {
|
||||
<span class="op">!</span><span class="ident">i</span>.<span class="ident">get_outgoing_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Pedestrian</span>)
|
||||
.<span class="ident">is_empty</span>()
|
||||
})
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">incoming_driving</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_incoming_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="op">!</span><span class="ident">i</span>.<span class="ident">get_outgoing_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Car</span>).<span class="ident">is_empty</span>())
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">incoming_biking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_incoming_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="op">!</span><span class="ident">i</span>.<span class="ident">get_outgoing_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Bike</span>).<span class="ident">is_empty</span>())
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">outgoing_walking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_outgoing_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> {
|
||||
<span class="op">!</span><span class="ident">i</span>.<span class="ident">get_incoming_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Pedestrian</span>)
|
||||
.<span class="ident">is_empty</span>()
|
||||
})
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">outgoing_driving</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_outgoing_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="op">!</span><span class="ident">i</span>.<span class="ident">get_incoming_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Car</span>).<span class="ident">is_empty</span>())
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="kw">let</span> <span class="ident">outgoing_biking</span>: <span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">all_outgoing_borders</span>()
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="op">!</span><span class="ident">i</span>.<span class="ident">get_incoming_lanes</span>(<span class="ident">map</span>, <span class="ident">PathConstraints</span>::<span class="ident">Bike</span>).<span class="ident">is_empty</span>())
|
||||
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> (<span class="ident">i</span>.<span class="ident">id</span>, <span class="ident">i</span>.<span class="ident">polygon</span>.<span class="ident">center</span>().<span class="ident">to_gps</span>(<span class="ident">bounds</span>)))
|
||||
.<span class="ident">collect</span>();
|
||||
<span class="ident">MapBorders</span> {
|
||||
<span class="ident">incoming_walking</span>,
|
||||
<span class="ident">incoming_driving</span>,
|
||||
<span class="ident">incoming_biking</span>,
|
||||
<span class="ident">outgoing_walking</span>,
|
||||
<span class="ident">outgoing_driving</span>,
|
||||
<span class="ident">outgoing_biking</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Returns the (incoming, outgoing) borders for the specififed mode.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">for_mode</span>(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
<span class="ident">mode</span>: <span class="ident">TripMode</span>,
|
||||
) <span class="op">-</span><span class="op">></span> (
|
||||
<span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
<span class="kw-2">&</span><span class="ident">Vec</span><span class="op"><</span>(<span class="ident">IntersectionID</span>, <span class="ident">LonLat</span>)<span class="op">></span>,
|
||||
) {
|
||||
<span class="kw">match</span> <span class="ident">mode</span> {
|
||||
<span class="ident">TripMode</span>::<span class="ident">Walk</span> <span class="op">|</span> <span class="ident">TripMode</span>::<span class="ident">Transit</span> <span class="op">=</span><span class="op">></span> (<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">incoming_walking</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">outgoing_walking</span>),
|
||||
<span class="ident">TripMode</span>::<span class="ident">Drive</span> <span class="op">=</span><span class="op">></span> (<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">incoming_driving</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">outgoing_driving</span>),
|
||||
<span class="ident">TripMode</span>::<span class="ident">Bike</span> <span class="op">=</span><span class="op">></span> (<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">incoming_biking</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">outgoing_biking</span>),
|
||||
}
|
||||
}
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "sim";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -35,7 +35,7 @@
|
||||
<span class="kw">use</span> <span class="ident">rand</span>::{<span class="ident">RngCore</span>, <span class="ident">SeedableRng</span>};
|
||||
<span class="kw">use</span> <span class="ident">rand_xorshift</span>::<span class="ident">XorShiftRng</span>;
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">external</span>::{<span class="ident">ExternalPerson</span>, <span class="ident">ExternalTrip</span>, <span class="ident">ExternalTripEndpoint</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">external</span>::{<span class="ident">ExternalPerson</span>, <span class="ident">ExternalTrip</span>, <span class="ident">ExternalTripEndpoint</span>, <span class="ident">MapBorders</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">generator</span>::{<span class="ident">BorderSpawnOverTime</span>, <span class="ident">ScenarioGenerator</span>, <span class="ident">SpawnOverTime</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">load</span>::<span class="ident">SimFlags</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">modifier</span>::<span class="ident">ScenarioModifier</span>;
|
||||
|
Loading…
Reference in New Issue
Block a user