mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
deploy: 1bde8c5345
This commit is contained in:
parent
811744331c
commit
34cfd470f7
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The build time in RFC2822, UTC."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>BUILT_TIME_UTC in game::pregame::built_info - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><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 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b46195c1bf7e0216/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Tue, 27 Jul 2021 18:31:54 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b46195c1bf7e0216/out/built.rs.html#78" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = r"Tue, 27 Jul 2021 19:21:33 +0000";</pre><div class="docblock"><p>The build time in RFC2822, UTC.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="game" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["game"] = [{"text":"impl <a class=\"trait\" href=\"map_gui/tools/minimap/trait.MinimapControls.html\" title=\"trait map_gui::tools::minimap::MinimapControls\">MinimapControls</a><<a class=\"struct\" href=\"game/app/struct.App.html\" title=\"struct game::app::App\">App</a>> for <a class=\"struct\" href=\"game/sandbox/minimap/struct.MinimapController.html\" title=\"struct game::sandbox::minimap::MinimapController\">MinimapController</a>","synthetic":false,"types":["game::sandbox::minimap::MinimapController"]}];
|
||||
implementors["osm_viewer"] = [{"text":"impl <a class=\"trait\" href=\"map_gui/tools/minimap/trait.MinimapControls.html\" title=\"trait map_gui::tools::minimap::MinimapControls\">MinimapControls</a><<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"osm_viewer/viewer/struct.MinimapController.html\" title=\"struct osm_viewer::viewer::MinimapController\">MinimapController</a>","synthetic":false,"types":["osm_viewer::viewer::MinimapController"]}];
|
||||
implementors["osm_viewer"] = [{"text":"impl MinimapControls<SimpleApp<<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.unit.html\">()</a>>> for <a class=\"struct\" href=\"osm_viewer/viewer/struct.MinimapController.html\" title=\"struct osm_viewer::viewer::MinimapController\">MinimapController</a>","synthetic":false,"types":["osm_viewer::viewer::MinimapController"]}];
|
||||
implementors["santa"] = [{"text":"impl <a class=\"trait\" href=\"map_gui/tools/minimap/trait.MinimapControls.html\" title=\"trait map_gui::tools::minimap::MinimapControls\">MinimapControls</a><<a class=\"struct\" href=\"map_gui/simple_app/struct.SimpleApp.html\" title=\"struct map_gui::simple_app::SimpleApp\">SimpleApp</a><<a class=\"struct\" href=\"santa/session/struct.Session.html\" title=\"struct santa::session::Session\">Session</a>>> for <a class=\"struct\" href=\"santa/game/struct.MinimapController.html\" title=\"struct santa::game::MinimapController\">MinimapController</a>","synthetic":false,"types":["santa::game::MinimapController"]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `assemble_ltr` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, assemble_ltr"><title>assemble_ltr in map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_model/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_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a></p><div id="sidebar-vars" data-name="assemble_ltr" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a>::<wbr><a class="fn" href="">assemble_ltr</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#309-326" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn assemble_ltr(<br> fwd_side: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>>, <br> back_side: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>>, <br> driving_side: <a class="enum" href="../../../map/enum.DrivingSide.html" title="enum map_model::map::DrivingSide">DrivingSide</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a>::<wbr><a class="fn" href="">assemble_ltr</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#334-351" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn assemble_ltr(<br> fwd_side: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>>, <br> back_side: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>>, <br> driving_side: <a class="enum" href="../../../map/enum.DrivingSide.html" title="enum map_model::map::DrivingSide">DrivingSide</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `get_lane_specs_ltr` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_lane_specs_ltr"><title>get_lane_specs_ltr in map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_model/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_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a></p><div id="sidebar-vars" data-name="get_lane_specs_ltr" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a>::<wbr><a class="fn" href="">get_lane_specs_ltr</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#8-307" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn get_lane_specs_ltr(tags: &<a class="struct" href="../../../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, cfg: &<a class="struct" href="../../../map/struct.MapConfig.html" title="struct map_model::map::MapConfig">MapConfig</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a>::<wbr><a class="fn" href="">get_lane_specs_ltr</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#8-332" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn get_lane_specs_ltr(tags: &<a class="struct" href="../../../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>, cfg: &<a class="struct" href="../../../map/struct.MapConfig.html" title="struct map_model::map::MapConfig">MapConfig</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../objects/lane/struct.LaneSpec.html" title="struct map_model::objects::lane::LaneSpec">LaneSpec</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script></body></html>
|
@ -0,0 +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 `osm_separation_type` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, osm_separation_type"><title>osm_separation_type in map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_model/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_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a></p><div id="sidebar-vars" data-name="osm_separation_type" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a href="index.html">lane_specs</a>::<wbr><a class="fn" href="">osm_separation_type</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#355-367" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn osm_separation_type(x: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../../objects/lane/enum.BufferType.html" title="enum map_model::objects::lane::BufferType">BufferType</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `lane_specs` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, lane_specs"><title>map_model::make::initial::lane_specs - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module lane_specs</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a></p><div id="sidebar-vars" data-name="lane_specs" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a class="mod" href="">lane_specs</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#1-546" title="goto source code">[src]</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.assemble_ltr.html" title="map_model::make::initial::lane_specs::assemble_ltr fn">assemble_ltr</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.get_lane_specs_ltr.html" title="map_model::make::initial::lane_specs::get_lane_specs_ltr fn">get_lane_specs_ltr</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">map_model</a>::<wbr><a href="../../index.html">make</a>::<wbr><a href="../index.html">initial</a>::<wbr><a class="mod" href="">lane_specs</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/map_model/make/initial/lane_specs.rs.html#1-587" title="goto source code">[src]</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.assemble_ltr.html" title="map_model::make::initial::lane_specs::assemble_ltr fn">assemble_ltr</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.get_lane_specs_ltr.html" title="map_model::make::initial::lane_specs::get_lane_specs_ltr fn">get_lane_specs_ltr</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.osm_separation_type.html" title="map_model::make::initial::lane_specs::osm_separation_type fn">osm_separation_type</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_model" data-search-index-js="../../../../search-index.js" data-search-js="../../../../search.js"></div>
|
||||
<script src="../../../../main.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["assemble_ltr",""],["get_lane_specs_ltr",""]]});
|
||||
initSidebarItems({"fn":[["assemble_ltr",""],["get_lane_specs_ltr",""],["osm_separation_type",""]]});
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Snap separately mapped cycleways to main roads."><meta name="keywords" content="rust, rustlang, rust-lang, snap_cycleways"><title>snap_cycleways in map_model::make::snappy - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/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_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a></p><div id="sidebar-vars" data-name="snap_cycleways" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="fn" href="">snap_cycleways</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#14-99" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn snap_cycleways(map: &mut <a class="struct" href="../../raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>)</pre><div class="docblock"><p>Snap separately mapped cycleways to main roads.</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="fn" href="">snap_cycleways</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#14-106" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn snap_cycleways(map: &mut <a class="struct" href="../../raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>)</pre><div class="docblock"><p>Snap separately mapped cycleways to main roads.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="map_model" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.js"></script></body></html>
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `v1` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, v1"><title>v1 in map_model::make::snappy - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/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_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a></p><div id="sidebar-vars" data-name="v1" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="fn" href="">v1</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#114-207" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn v1(<br> map: &<a class="struct" href="../../raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> cycleways: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="struct.Cycleway.html" title="struct map_model::make::snappy::Cycleway">Cycleway</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> road_edges: &<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="enum" href="../../objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>><br>) -> <a class="struct" href="../../../abstutil/collections/struct.MultiMap.html" title="struct abstutil::collections::MultiMap">MultiMap</a><<a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="enum" href="../../objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="map_model" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="fn" href="">v1</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#121-214" title="goto source code">[src]</a></span></h1><pre class="rust fn">fn v1(<br> map: &<a class="struct" href="../../raw/struct.RawMap.html" title="struct map_model::raw::RawMap">RawMap</a>, <br> cycleways: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="struct.Cycleway.html" title="struct map_model::make::snappy::Cycleway">Cycleway</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, <br> road_edges: &<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="enum" href="../../objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>><br>) -> <a class="struct" href="../../../abstutil/collections/struct.MultiMap.html" title="struct abstutil::collections::MultiMap">MultiMap</a><<a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>, <a class="enum" href="../../objects/road/enum.Direction.html" title="enum map_model::objects::road::Direction">Direction</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="map_model" data-search-index-js="../../../search-index.js" data-search-js="../../../search.js"></div>
|
||||
<script src="../../../main.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 `snappy` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, snappy"><title>map_model::make::snappy - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module snappy</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</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_model</a>::<wbr><a href="../index.html">make</a></p><div id="sidebar-vars" data-name="snappy" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">snappy</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#1-207" title="goto source code">[src]</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" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a class="mod" href="">snappy</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#1-214" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Cycleway.html" title="map_model::make::snappy::Cycleway struct">Cycleway</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.DEBUG_OUTPUT.html" title="map_model::make::snappy::DEBUG_OUTPUT constant">DEBUG_OUTPUT</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.snap_cycleways.html" title="map_model::make::snappy::snap_cycleways fn">snap_cycleways</a></td><td class="docblock-short"><p>Snap separately mapped cycleways to main roads.</p>
|
||||
|
@ -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 `Cycleway` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, Cycleway"><title>Cycleway in map_model::make::snappy - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct Cycleway</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.center">center</a><a href="#structfield.id">id</a><a href="#structfield.layer">layer</a><a href="#structfield.total_width">total_width</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-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a></p><div id="sidebar-vars" data-name="Cycleway" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="struct" href="">Cycleway</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#101-106" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct Cycleway {
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a>::<wbr><a href="index.html">snappy</a>::<wbr><a class="struct" href="">Cycleway</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/snappy.rs.html#108-113" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct Cycleway {
|
||||
id: <a class="struct" href="../../raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a>,
|
||||
center: <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>,
|
||||
total_width: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>,
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,17 +1,17 @@
|
||||
<!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 `MinimapController` struct in crate `osm_viewer`."><meta name="keywords" content="rust, rustlang, rust-lang, MinimapController"><title>MinimapController in osm_viewer::viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../osm_viewer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct MinimapController</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-MinimapControls%3CSimpleApp%3C()%3E%3E">MinimapControls<SimpleApp<()>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-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">osm_viewer</a>::<wbr><a href="index.html">viewer</a></p><div id="sidebar-vars" data-name="MinimapController" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">osm_viewer</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="struct" href="">MinimapController</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#481" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct MinimapController;</pre></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-MinimapControls%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl <a class="trait" href="../../map_gui/tools/minimap/trait.MinimapControls.html" title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-MinimapControls%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#483-491" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.has_zorder" class="method hidden trait-impl"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder" class="fnname">has_zorder</a>(&self, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.has_zorder" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#484-486" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||||
zoomed in, placed beneath the zoom column. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder">Read more</a></p>
|
||||
</div><h4 id="method.make_legend" class="method hidden trait-impl"><code>fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend" class="fnname">make_legend</a>(&self, _: &mut EventCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> Widget</code><a href="#method.make_legend" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#488-490" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||||
minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend">Read more</a></p>
|
||||
</div><h4 id="method.has_layer" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer" class="fnname">has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.has_layer" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#41" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||||
recalculated. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer">Read more</a></p>
|
||||
</div><h4 id="method.draw_extra" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.draw_extra" class="fnname">draw_extra</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a href="#method.draw_extra" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#46" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
|
||||
</div><h4 id="method.make_unzoomed_panel" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_unzoomed_panel" class="fnname">make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Panel</code><a href="#method.make_unzoomed_panel" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#49" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
|
||||
</div><h4 id="method.make_zoomed_side_panel" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_zoomed_side_panel" class="fnname">make_zoomed_side_panel</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Widget</code><a href="#method.make_zoomed_side_panel" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Controls to be placed to the left to the zoomed-in panel</p>
|
||||
</div><h4 id="method.panel_clicked" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_clicked" class="fnname">panel_clicked</a>(<br> &self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code><a href="#method.panel_clicked" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#63" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
|
||||
</div><h4 id="method.panel_changed" class="method hidden trait-impl"><code>pub fn <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_changed" class="fnname">panel_changed</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, &Panel)</code><a href="#method.panel_changed" class="anchor"></a><a class="srclink" href="../../src/map_gui/tools/minimap.rs.html#67" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Called for <code>Outcome::Changed</code> on the panel.</p>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">osm_viewer</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="struct" href="">MinimapController</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#481" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">struct MinimapController;</pre></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-MinimapControls%3CSimpleApp%3C()%3E%3E" class="impl"><code class="in-band">impl MinimapControls<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-MinimapControls%3CSimpleApp%3C()%3E%3E" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#483-491" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.has_zorder" class="method hidden trait-impl"><code>fn <a href="#tymethod.has_zorder" class="fnname">has_zorder</a>(&self, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.has_zorder" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#484-486" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||||
zoomed in, placed beneath the zoom column. <a href="#tymethod.has_zorder">Read more</a></p>
|
||||
</div><h4 id="method.make_legend" class="method hidden trait-impl"><code>fn <a href="#method.make_legend" class="fnname">make_legend</a>(&self, _: &mut EventCtx<'_>, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> Widget</code><a href="#method.make_legend" class="anchor"></a><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#488-490" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||||
minimap. <a href="#method.make_legend">Read more</a></p>
|
||||
</div><h4 id="method.has_layer" class="method hidden trait-impl"><code>pub fn <a href="#method.has_layer" class="fnname">has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href="#method.has_layer" class="anchor"></a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||||
recalculated. <a href="#method.has_layer">Read more</a></p>
|
||||
</div><h4 id="method.draw_extra" class="method hidden trait-impl"><code>pub fn <a href="#method.draw_extra" class="fnname">draw_extra</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a href="#method.draw_extra" class="anchor"></a></h4><div class='docblock hidden'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
|
||||
</div><h4 id="method.make_unzoomed_panel" class="method hidden trait-impl"><code>pub fn <a href="#method.make_unzoomed_panel" class="fnname">make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Panel</code><a href="#method.make_unzoomed_panel" class="anchor"></a></h4><div class='docblock hidden'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
|
||||
</div><h4 id="method.make_zoomed_side_panel" class="method hidden trait-impl"><code>pub fn <a href="#method.make_zoomed_side_panel" class="fnname">make_zoomed_side_panel</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Widget</code><a href="#method.make_zoomed_side_panel" class="anchor"></a></h4><div class='docblock hidden'><p>Controls to be placed to the left to the zoomed-in panel</p>
|
||||
</div><h4 id="method.panel_clicked" class="method hidden trait-impl"><code>pub fn <a href="#method.panel_clicked" class="fnname">panel_clicked</a>(<br> &self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code><a href="#method.panel_clicked" class="anchor"></a></h4><div class='docblock hidden'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
|
||||
</div><h4 id="method.panel_changed" class="method hidden trait-impl"><code>pub fn <a href="#method.panel_changed" class="fnname">panel_changed</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, &Panel)</code><a href="#method.panel_changed" class="anchor"></a></h4><div class='docblock hidden'><p>Called for <code>Outcome::Changed</code> on the panel.</p>
|
||||
</div></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-Send" class="anchor"></a></h3><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-Sync" class="anchor"></a></h3><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-Unpin" class="anchor"></a></h3><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href="#impl-UnwindSafe" class="anchor"></a></h3></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.type_id" class="method hidden trait-impl"><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 href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><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#208-213" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow" class="method hidden trait-impl"><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 href="#method.borrow" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210" 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></details><details class="rustdoc-toggle implementors-toggle" open><summary><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#216-220" title="goto source code">[src]</a></h3></summary><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden trait-impl"><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 href="#method.borrow_mut" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `App` type in crate `osm_viewer`."><meta name="keywords" content="rust, rustlang, rust-lang, App"><title>App in osm_viewer::viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../osm_viewer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Type Definition App</p><div class="sidebar-elems"><p class="location"><a href="../index.html">osm_viewer</a>::<wbr><a href="index.html">viewer</a></p><div id="sidebar-vars" data-name="App" data-ty="type" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="../index.html">osm_viewer</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="type" href="">App</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#18" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type App = <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="osm_viewer" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="../index.html">osm_viewer</a>::<wbr><a href="index.html">viewer</a>::<wbr><a class="type" href="">App</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/osm_viewer/viewer.rs.html#18" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type App = SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="osm_viewer" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
|
||||
<script src="../../main.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -178,7 +178,7 @@
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"rustdoc 1.53.0 (53cb7b09b 2021-06-17)"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The build time in RFC2822, UTC."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Tue, 27 Jul 2021 18:31:54 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"Tue, 27 Jul 2021 19:21:33 +0000"</span>;
|
||||
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#"The target architecture, given by `CARGO_CFG_TARGET_ARCH`."#</span>]</span>
|
||||
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r"x86_64"</span>;
|
||||
|
@ -547,13 +547,54 @@
|
||||
<span id="544">544</span>
|
||||
<span id="545">545</span>
|
||||
<span id="546">546</span>
|
||||
<span id="547">547</span>
|
||||
<span id="548">548</span>
|
||||
<span id="549">549</span>
|
||||
<span id="550">550</span>
|
||||
<span id="551">551</span>
|
||||
<span id="552">552</span>
|
||||
<span id="553">553</span>
|
||||
<span id="554">554</span>
|
||||
<span id="555">555</span>
|
||||
<span id="556">556</span>
|
||||
<span id="557">557</span>
|
||||
<span id="558">558</span>
|
||||
<span id="559">559</span>
|
||||
<span id="560">560</span>
|
||||
<span id="561">561</span>
|
||||
<span id="562">562</span>
|
||||
<span id="563">563</span>
|
||||
<span id="564">564</span>
|
||||
<span id="565">565</span>
|
||||
<span id="566">566</span>
|
||||
<span id="567">567</span>
|
||||
<span id="568">568</span>
|
||||
<span id="569">569</span>
|
||||
<span id="570">570</span>
|
||||
<span id="571">571</span>
|
||||
<span id="572">572</span>
|
||||
<span id="573">573</span>
|
||||
<span id="574">574</span>
|
||||
<span id="575">575</span>
|
||||
<span id="576">576</span>
|
||||
<span id="577">577</span>
|
||||
<span id="578">578</span>
|
||||
<span id="579">579</span>
|
||||
<span id="580">580</span>
|
||||
<span id="581">581</span>
|
||||
<span id="582">582</span>
|
||||
<span id="583">583</span>
|
||||
<span id="584">584</span>
|
||||
<span id="585">585</span>
|
||||
<span id="586">586</span>
|
||||
<span id="587">587</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">/// Purely from OSM tags, determine the lanes that a road segment has.</span>
|
||||
<span class="kw">use</span> <span class="ident">std::iter</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil::Tags</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">osm</span>, <span class="ident">Direction</span>, <span class="ident">DrivingSide</span>, <span class="ident">LaneSpec</span>, <span class="ident">LaneType</span>, <span class="ident">MapConfig</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">osm</span>, <span class="ident">BufferType</span>, <span class="ident">Direction</span>, <span class="ident">DrivingSide</span>, <span class="ident">LaneSpec</span>, <span class="ident">LaneType</span>, <span class="ident">MapConfig</span>};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">get_lane_specs_ltr</span>(<span class="ident">tags</span>: <span class="kw-2">&</span><span class="ident">Tags</span>, <span class="ident">cfg</span>: <span class="kw-2">&</span><span class="ident">MapConfig</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">LaneSpec</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">fwd</span> <span class="op">=</span> <span class="op">|</span><span class="ident">lt</span>: <span class="ident">LaneType</span><span class="op">|</span> <span class="ident">LaneSpec</span> {
|
||||
@ -782,6 +823,31 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// My brain hurts. How does the above combinatorial explosion play with</span>
|
||||
<span class="comment">// https://wiki.openstreetmap.org/wiki/Proposed_features/cycleway:separation? Let's take the</span>
|
||||
<span class="comment">// "post-processing" approach.</span>
|
||||
<span class="comment">// TODO This skips the buffer between the cycleway and the sidewalk, for now. Only focusing on</span>
|
||||
<span class="comment">// the common case of buffer from vehicles.</span>
|
||||
<span class="comment">// TODO Not doing left-handed driving yet (separation:right)</span>
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">buffer</span>) <span class="op">=</span> <span class="ident">tags</span>
|
||||
.<span class="ident">get</span>(<span class="string">"cycleway:right:separation:left"</span>)
|
||||
.<span class="ident">and_then</span>(<span class="ident">osm_separation_type</span>)
|
||||
{
|
||||
<span class="comment">// TODO These shouldn't fail, but snapping is imperfect... like around</span>
|
||||
<span class="comment">// https://www.openstreetmap.org/way/486283205</span>
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">fwd_side</span>.<span class="ident">iter</span>().<span class="ident">position</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">lt</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType::Biking</span>) {
|
||||
<span class="ident">fwd_side</span>.<span class="ident">insert</span>(<span class="ident">idx</span>, <span class="ident">fwd</span>(<span class="ident">LaneType::Buffer</span>(<span class="ident">buffer</span>)));
|
||||
}
|
||||
}
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">buffer</span>) <span class="op">=</span> <span class="ident">tags</span>
|
||||
.<span class="ident">get</span>(<span class="string">"cycleway:left:separation:left"</span>)
|
||||
.<span class="ident">and_then</span>(<span class="ident">osm_separation_type</span>)
|
||||
{
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">idx</span>) <span class="op">=</span> <span class="ident">back_side</span>.<span class="ident">iter</span>().<span class="ident">position</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span>.<span class="ident">lt</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType::Biking</span>) {
|
||||
<span class="ident">back_side</span>.<span class="ident">insert</span>(<span class="ident">idx</span>, <span class="ident">back</span>(<span class="ident">LaneType::Buffer</span>(<span class="ident">buffer</span>)));
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">if</span> <span class="ident">driving_lane</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType::Driving</span> {
|
||||
<span class="kw">let</span> <span class="ident">has_parking</span> <span class="op">=</span> <span class="macro">vec!</span>[<span class="string">"parallel"</span>, <span class="string">"diagonal"</span>, <span class="string">"perpendicular"</span>];
|
||||
<span class="kw">let</span> <span class="ident">parking_lane_fwd</span> <span class="op">=</span> <span class="ident">tags</span>.<span class="ident">is_any</span>(<span class="ident">osm::PARKING_RIGHT</span>, <span class="ident">has_parking</span>.<span class="ident">clone</span>())
|
||||
@ -875,6 +941,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// See https://wiki.openstreetmap.org/wiki/Proposed_features/cycleway:separation#Typical_values.</span>
|
||||
<span class="comment">// Lots of these mappings are pretty wacky right now. We need more BufferTypes.</span>
|
||||
<span class="kw">fn</span> <span class="ident">osm_separation_type</span>(<span class="ident">x</span>: <span class="kw-2">&</span><span class="ident">String</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">BufferType</span><span class="op">></span> {
|
||||
<span class="kw">match</span> <span class="ident">x</span>.<span class="ident">as_ref</span>() {
|
||||
<span class="string">"bollard"</span> <span class="op">|</span> <span class="string">"vertical_panel"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Some</span>(<span class="ident">BufferType::FlexPosts</span>),
|
||||
<span class="string">"kerb"</span> <span class="op">|</span> <span class="string">"separation_kerb"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Some</span>(<span class="ident">BufferType::Curb</span>),
|
||||
<span class="string">"grass_verge"</span> <span class="op">|</span> <span class="string">"planter"</span> <span class="op">|</span> <span class="string">"tree_row"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Some</span>(<span class="ident">BufferType::Planters</span>),
|
||||
<span class="string">"guard_rail"</span> <span class="op">|</span> <span class="string">"jersey_barrier"</span> <span class="op">|</span> <span class="string">"railing"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Some</span>(<span class="ident">BufferType::JerseyBarrier</span>),
|
||||
<span class="comment">// TODO Make sure there's a parking lane on that side... also mapped? Any flex posts in</span>
|
||||
<span class="comment">// between?</span>
|
||||
<span class="string">"parking_lane"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">None</span>,
|
||||
<span class="string">"barred_area"</span> <span class="op">|</span> <span class="string">"dashed_line"</span> <span class="op">|</span> <span class="string">"solid_line"</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">Some</span>(<span class="ident">BufferType::Stripes</span>),
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="prelude-val">None</span>,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">test</span>)]</span>
|
||||
<span class="kw">mod</span> <span class="ident">tests</span> {
|
||||
<span class="kw">use</span> <span class="kw">super</span>::<span class="kw-2">*</span>;
|
||||
|
@ -208,6 +208,13 @@
|
||||
<span id="205">205</span>
|
||||
<span id="206">206</span>
|
||||
<span id="207">207</span>
|
||||
<span id="208">208</span>
|
||||
<span id="209">209</span>
|
||||
<span id="210">210</span>
|
||||
<span id="211">211</span>
|
||||
<span id="212">212</span>
|
||||
<span id="213">213</span>
|
||||
<span id="214">214</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std::collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashMap</span>};
|
||||
|
||||
@ -217,7 +224,7 @@
|
||||
<span class="kw">use</span> <span class="ident">kml</span>::{<span class="ident">ExtraShape</span>, <span class="ident">ExtraShapes</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span><span class="ident">::raw</span>::{<span class="ident">OriginalRoad</span>, <span class="ident">RawMap</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span><span class="ident">::Direction</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">Direction</span>, <span class="ident">DrivingSide</span>};
|
||||
|
||||
<span class="kw">const</span> <span class="ident">DEBUG_OUTPUT</span>: <span class="ident">bool</span> <span class="op">=</span> <span class="bool-val">false</span>;
|
||||
|
||||
@ -292,18 +299,25 @@
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"left"</span>
|
||||
};
|
||||
<span class="ident">map</span>.<span class="ident">roads</span>
|
||||
.<span class="ident">get_mut</span>(<span class="kw-2">&</span><span class="ident">road_id</span>)
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">osm_tags</span>
|
||||
.<span class="ident">insert</span>(<span class="macro">format!</span>(<span class="string">"cycleway:{}"</span>, <span class="ident">dir</span>), <span class="string">"track"</span>);
|
||||
<span class="kw">let</span> <span class="ident">tags</span> <span class="op">=</span> <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">map</span>.<span class="ident">roads</span>.<span class="ident">get_mut</span>(<span class="kw-2">&</span><span class="ident">road_id</span>).<span class="ident">unwrap</span>().<span class="ident">osm_tags</span>;
|
||||
<span class="ident">tags</span>.<span class="ident">insert</span>(<span class="macro">format!</span>(<span class="string">"cycleway:{}"</span>, <span class="ident">dir</span>), <span class="string">"track"</span>);
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">deleted_cycleway</span>.<span class="ident">osm_tags</span>.<span class="ident">is</span>(<span class="string">"oneway"</span>, <span class="string">"yes"</span>) {
|
||||
<span class="ident">map</span>.<span class="ident">roads</span>
|
||||
.<span class="ident">get_mut</span>(<span class="kw-2">&</span><span class="ident">road_id</span>)
|
||||
.<span class="ident">unwrap</span>()
|
||||
.<span class="ident">osm_tags</span>
|
||||
.<span class="ident">insert</span>(<span class="macro">format!</span>(<span class="string">"cycleway:{}:oneway"</span>, <span class="ident">dir</span>), <span class="string">"no"</span>);
|
||||
<span class="ident">tags</span>.<span class="ident">insert</span>(<span class="macro">format!</span>(<span class="string">"cycleway:{}:oneway"</span>, <span class="ident">dir</span>), <span class="string">"no"</span>);
|
||||
}
|
||||
|
||||
<span class="comment">// I _think_ the second direction is supposed to be relative to the direction of</span>
|
||||
<span class="comment">// travel for the cycleway. But not sure.</span>
|
||||
<span class="kw">let</span> <span class="ident">traffic_side</span> <span class="op">=</span> <span class="kw">if</span> <span class="ident">map</span>.<span class="ident">config</span>.<span class="ident">driving_side</span> <span class="op">=</span><span class="op">=</span> <span class="ident">DrivingSide::Right</span> {
|
||||
<span class="string">"left"</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="string">"right"</span>
|
||||
};
|
||||
<span class="comment">// TODO Copy over separation tags from this separate way. To quickly test right</span>
|
||||
<span class="comment">// now, just pretend we always have flex posts...</span>
|
||||
<span class="ident">tags</span>.<span class="ident">insert</span>(
|
||||
<span class="macro">format!</span>(<span class="string">"cycleway:{}:separation:{}"</span>, <span class="ident">dir</span>, <span class="ident">traffic_side</span>),
|
||||
<span class="string">"bollard"</span>,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user