mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
deploy: 60e7c91d03
This commit is contained in:
parent
e0ebd99e98
commit
f6e4f7fec6
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Wed, 30 Dec 2020 21:39:46 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Wed, 30 Dec 2020 23:42:59 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `crosswalk_icon` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, crosswalk_icon"><title>map_gui::render::traffic_signal::crosswalk_icon - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'crosswalk_icon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#268-274' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>crosswalk_icon</a></span></h1><pre class='rust fn'>fn crosswalk_icon(geom: &<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</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><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#272-278' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>crosswalk_icon</a></span></h1><pre class='rust fn'>fn crosswalk_icon(geom: &<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</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><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `dont_walk_icon` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, dont_walk_icon"><title>map_gui::render::traffic_signal::dont_walk_icon - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'dont_walk_icon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#258-264' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>dont_walk_icon</a></span></h1><pre class='rust fn'>pub fn dont_walk_icon(movement: &<a class="struct" href="../../../map_model/objects/turn/struct.Movement.html" title="struct map_model::objects::turn::Movement">Movement</a>, prerender: &Prerender) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#262-268' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>dont_walk_icon</a></span></h1><pre class='rust fn'>pub fn dont_walk_icon(movement: &<a class="struct" href="../../../map_model/objects/turn/struct.Movement.html" title="struct map_model::objects::turn::Movement">Movement</a>, prerender: &Prerender) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_signal_stage` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_signal_stage"><title>map_gui::render::traffic_signal::draw_signal_stage - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_signal_stage', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#12-191' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_signal_stage</a></span></h1><pre class='rust fn'>pub fn draw_signal_stage(<br> prerender: &Prerender, <br> stage: &<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> time_left: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>>, <br> batch: &mut GeomBatch, <br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> signal_style: <a class="enum" href="../../../map_gui/options/enum.TrafficSignalStyle.html" title="enum map_gui::options::TrafficSignalStyle">TrafficSignalStyle</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#12-195' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_signal_stage</a></span></h1><pre class='rust fn'>pub fn draw_signal_stage(<br> prerender: &Prerender, <br> stage: &<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> time_left: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>>, <br> batch: &mut GeomBatch, <br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> signal_style: <a class="enum" href="../../../map_gui/options/enum.TrafficSignalStyle.html" title="enum map_gui::options::TrafficSignalStyle">TrafficSignalStyle</a><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_stage_number` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_stage_number"><title>map_gui::render::traffic_signal::draw_stage_number - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_stage_number', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#193-212' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_stage_number</a></span></h1><pre class='rust fn'>pub fn draw_stage_number(<br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> prerender: &Prerender, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> batch: &mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#197-216' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_stage_number</a></span></h1><pre class='rust fn'>pub fn draw_stage_number(<br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> prerender: &Prerender, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> batch: &mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_time_left` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_time_left"><title>map_gui::render::traffic_signal::draw_time_left - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'draw_time_left', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#214-249' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_time_left</a></span></h1><pre class='rust fn'>fn draw_time_left(<br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> prerender: &Prerender, <br> stage: &<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> time_left: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> batch: &mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#218-253' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>draw_time_left</a></span></h1><pre class='rust fn'>fn draw_time_left(<br> app: &dyn <a class="trait" href="../../../map_gui/trait.AppLike.html" title="trait map_gui::AppLike">AppLike</a>, <br> prerender: &Prerender, <br> stage: &<a class="struct" href="../../../map_model/objects/traffic_signals/struct.Stage.html" title="struct map_model::objects::traffic_signals::Stage">Stage</a>, <br> i: <a class="struct" href="../../../map_model/objects/intersection/struct.IntersectionID.html" title="struct map_model::objects::intersection::IntersectionID">IntersectionID</a>, <br> idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> time_left: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> batch: &mut GeomBatch<br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `walk_icon` fn in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, walk_icon"><title>map_gui::render::traffic_signal::walk_icon - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/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_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a></p><script>window.sidebarCurrent = {name: 'walk_icon', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#251-257' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>walk_icon</a></span></h1><pre class='rust fn'>pub fn walk_icon(movement: &<a class="struct" href="../../../map_model/objects/turn/struct.Movement.html" title="struct map_model::objects::turn::Movement">Movement</a>, prerender: &Prerender) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#255-261' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a href='index.html'>traffic_signal</a>::<wbr><a class="fn" href=''>walk_icon</a></span></h1><pre class='rust fn'>pub fn walk_icon(movement: &<a class="struct" href="../../../map_model/objects/turn/struct.Movement.html" title="struct map_model::objects::turn::Movement">Movement</a>, prerender: &Prerender) -> GeomBatch</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.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 `traffic_signal` mod in crate `map_gui`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signal"><title>map_gui::render::traffic_signal - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_gui/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signal</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_gui</a>::<wbr><a href='../index.html'>render</a></p><script>window.sidebarCurrent = {name: 'traffic_signal', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#1-274' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>traffic_signal</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_gui/render/traffic_signal.rs.html#1-278' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_gui</a>::<wbr><a href='../index.html'>render</a>::<wbr><a class="mod" href=''>traffic_signal</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.crosswalk_icon.html" title='map_gui::render::traffic_signal::crosswalk_icon fn'>crosswalk_icon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.dont_walk_icon.html" title='map_gui::render::traffic_signal::dont_walk_icon fn'>dont_walk_icon</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_signal_stage.html" title='map_gui::render::traffic_signal::draw_signal_stage fn'>draw_signal_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_stage_number.html" title='map_gui::render::traffic_signal::draw_stage_number fn'>draw_stage_number</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.draw_time_left.html" title='map_gui::render::traffic_signal::draw_time_left fn'>draw_time_left</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.walk_icon.html" title='map_gui::render::traffic_signal::walk_icon fn'>walk_icon</a></td><td class='docblock-short'></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_gui";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `PROTECTED` constant in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, PROTECTED"><title>map_model::make::traffic_signals::PROTECTED - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'PROTECTED', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#383' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="constant" href=''>PROTECTED</a></span></h1><pre class='rust const'>const PROTECTED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> = true;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#331' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="constant" href=''>PROTECTED</a></span></h1><pre class='rust const'>const PROTECTED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> = true;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `YIELD` constant in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, YIELD"><title>map_model::make::traffic_signals::YIELD - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'YIELD', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#384' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="constant" href=''>YIELD</a></span></h1><pre class='rust const'>const YIELD: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> = false;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#332' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="constant" href=''>YIELD</a></span></h1><pre class='rust const'>const YIELD: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> = false;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `all_walk_all_yield` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, all_walk_all_yield"><title>map_model::make::traffic_signals::all_walk_all_yield - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'all_walk_all_yield', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#322-341' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>all_walk_all_yield</a></span></h1><pre class='rust fn'>fn all_walk_all_yield(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#270-289' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>all_walk_all_yield</a></span></h1><pre class='rust fn'>fn all_walk_all_yield(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.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 `brute_force` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, brute_force"><title>map_model::make::traffic_signals::brute_force - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'brute_force', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#454-474' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>brute_force</a></span></h1><pre class='rust fn'>pub fn brute_force(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>)</pre><div class='docblock'><p>Temporary experiment to group all movements into the smallest number of stages.</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#402-422' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>brute_force</a></span></h1><pre class='rust fn'>pub fn brute_force(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>)</pre><div class='docblock'><p>Temporary experiment to group all movements into the smallest number of stages.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `degenerate` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, degenerate"><title>map_model::make::traffic_signals::degenerate - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'degenerate', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#133-148' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>degenerate</a></span></h1><pre class='rust fn'>fn degenerate(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#130-143' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>degenerate</a></span></h1><pre class='rust fn'>fn degenerate(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `expand_all_stages` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, expand_all_stages"><title>map_model::make::traffic_signals::expand_all_stages - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'expand_all_stages', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#373-381' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>expand_all_stages</a></span></h1><pre class='rust fn'>fn expand_all_stages(ts: &mut <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#321-329' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>expand_all_stages</a></span></h1><pre class='rust fn'>fn expand_all_stages(ts: &mut <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +0,0 @@
|
||||
<!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 `four_oneways` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, four_oneways"><title>map_model::make::traffic_signals::four_oneways - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'four_oneways', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#278-320' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>four_oneways</a></span></h1><pre class='rust fn'>fn four_oneways(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `four_way_four_stage` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, four_way_four_stage"><title>map_model::make::traffic_signals::four_way_four_stage - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'four_way_four_stage', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#211-243' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>four_way_four_stage</a></span></h1><pre class='rust fn'>fn four_way_four_stage(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#207-237' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>four_way_four_stage</a></span></h1><pre class='rust fn'>fn four_way_four_stage(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `four_way_two_stage` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, four_way_two_stage"><title>map_model::make::traffic_signals::four_way_two_stage - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'four_way_two_stage', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#245-276' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>four_way_two_stage</a></span></h1><pre class='rust fn'>fn four_way_two_stage(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#239-268' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>four_way_two_stage</a></span></h1><pre class='rust fn'>fn four_way_two_stage(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `get_possible_policies` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_possible_policies"><title>map_model::make::traffic_signals::get_possible_policies - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'get_possible_policies', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#14-90' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>get_possible_policies</a></span></h1><pre class='rust fn'>pub fn get_possible_policies(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></pre><div class='docblock'><p>Applies a bunch of heuristics to a single intersection, returning the valid results in
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#14-87' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>get_possible_policies</a></span></h1><pre class='rust fn'>pub fn get_possible_policies(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, <br> timer: &mut <a class="struct" href="../../../abstutil/time/struct.Timer.html" title="struct abstutil::time::Timer">Timer</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></pre><div class='docblock'><p>Applies a bunch of heuristics to a single intersection, returning the valid results in
|
||||
best-first order. The signal configuration is only based on the roads connected to the
|
||||
intersection.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `get_sorted_incoming_roads` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_sorted_incoming_roads"><title>map_model::make::traffic_signals::get_sorted_incoming_roads - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'get_sorted_incoming_roads', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#531-542' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>get_sorted_incoming_roads</a></span></h1><pre class='rust fn'>fn get_sorted_incoming_roads(i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>></pre><div class='docblock'><p>Return all incoming roads to an intersection, sorted by angle. This skips one-way roads
|
||||
outbound from the intersection, since no turns originate from those anyway. This allows
|
||||
heuristics for a 3-way intersection to not care if one of the roads happens to be a dual
|
||||
carriageway (split into two one-ways).</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `greedy_assignment` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, greedy_assignment"><title>map_model::make::traffic_signals::greedy_assignment - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'greedy_assignment', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#101-131' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>greedy_assignment</a></span></h1><pre class='rust fn'>fn greedy_assignment(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#98-128' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>greedy_assignment</a></span></h1><pre class='rust fn'>fn greedy_assignment(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `half_signal` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, half_signal"><title>map_model::make::traffic_signals::half_signal - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'half_signal', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#150-170' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>half_signal</a></span></h1><pre class='rust fn'>fn half_signal(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#145-165' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>half_signal</a></span></h1><pre class='rust fn'>fn half_signal(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `helper` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, helper"><title>map_model::make::traffic_signals::helper - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'helper', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#496-524' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>helper</a></span></h1><pre class='rust fn'>fn helper(items: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, max_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#444-472' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>helper</a></span></h1><pre class='rust fn'>fn helper(items: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, max_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `make_stages` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_stages"><title>map_model::make::traffic_signals::make_stages - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'make_stages', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#386-451' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_stages</a></span></h1><pre class='rust fn'>fn make_stages(<br> ts: &mut <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>, <br> stage_specs: <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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</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="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>>, <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#334-399' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>make_stages</a></span></h1><pre class='rust fn'>fn make_stages(<br> ts: &mut <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>, <br> stage_specs: <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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</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="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>>, <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>><br>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `new` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, new"><title>map_model::make::traffic_signals::new - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'new', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#92-99' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>new</a></span></h1><pre class='rust fn'>fn new(id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#89-96' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>new</a></span></h1><pre class='rust fn'>fn new(id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `okay_partition` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, okay_partition"><title>map_model::make::traffic_signals::okay_partition - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'okay_partition', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#476-489' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>okay_partition</a></span></h1><pre class='rust fn'>fn okay_partition(movements: <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="../../../map_model/struct.Movement.html" title="struct map_model::Movement">Movement</a>>, partition: <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#424-437' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>okay_partition</a></span></h1><pre class='rust fn'>fn okay_partition(movements: <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="../../../map_model/struct.Movement.html" title="struct map_model::Movement">Movement</a>>, partition: <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `stage_per_road` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, stage_per_road"><title>map_model::make::traffic_signals::stage_per_road - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'stage_per_road', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#343-370' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>stage_per_road</a></span></h1><pre class='rust fn'>fn stage_per_road(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#291-318' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>stage_per_road</a></span></h1><pre class='rust fn'>fn stage_per_road(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `synchronize` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, synchronize"><title>map_model::make::traffic_signals::synchronize - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'synchronize', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#531-577' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>synchronize</a></span></h1><pre class='rust fn'>pub fn synchronize(map: &mut <a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>)</pre><div class='docblock'><p>Simple second-pass after generating all signals. Find pairs of traffic signals very close to
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#479-525' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>synchronize</a></span></h1><pre class='rust fn'>pub fn synchronize(map: &mut <a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>)</pre><div class='docblock'><p>Simple second-pass after generating all signals. Find pairs of traffic signals very close to
|
||||
each other with 2 stages each, see if the primary movement of the first stages lead to each
|
||||
other, and flip the order of stages if not. This is often wrong when the most common movement is
|
||||
actually turning left then going straight (near Mercer for example), but not sure how we could
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `three_way` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, three_way"><title>map_model::make::traffic_signals::three_way - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'three_way', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#172-209' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>three_way</a></span></h1><pre class='rust fn'>fn three_way(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#167-205' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="fn" href=''>three_way</a></span></h1><pre class='rust fn'>fn three_way(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="struct" href="../../../map_model/struct.ControlTrafficSignal.html" title="struct map_model::ControlTrafficSignal">ControlTrafficSignal</a>></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,13 +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 `traffic_signals` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, traffic_signals"><title>map_model::make::traffic_signals - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module traffic_signals</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><script>window.sidebarCurrent = {name: 'traffic_signals', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#1-577' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a class="mod" href=''>traffic_signals</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#1-542' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a class="mod" href=''>traffic_signals</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.Partition.html" title='map_model::make::traffic_signals::Partition struct'>Partition</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.PROTECTED.html" title='map_model::make::traffic_signals::PROTECTED constant'>PROTECTED</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.YIELD.html" title='map_model::make::traffic_signals::YIELD constant'>YIELD</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.all_walk_all_yield.html" title='map_model::make::traffic_signals::all_walk_all_yield fn'>all_walk_all_yield</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.brute_force.html" title='map_model::make::traffic_signals::brute_force fn'>brute_force</a></td><td class='docblock-short'><p>Temporary experiment to group all movements into the smallest number of stages.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.degenerate.html" title='map_model::make::traffic_signals::degenerate fn'>degenerate</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.expand_all_stages.html" title='map_model::make::traffic_signals::expand_all_stages fn'>expand_all_stages</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.four_oneways.html" title='map_model::make::traffic_signals::four_oneways fn'>four_oneways</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.four_way_four_stage.html" title='map_model::make::traffic_signals::four_way_four_stage fn'>four_way_four_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.four_way_two_stage.html" title='map_model::make::traffic_signals::four_way_two_stage fn'>four_way_two_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.get_possible_policies.html" title='map_model::make::traffic_signals::get_possible_policies fn'>get_possible_policies</a></td><td class='docblock-short'><p>Applies a bunch of heuristics to a single intersection, returning the valid results in
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.degenerate.html" title='map_model::make::traffic_signals::degenerate fn'>degenerate</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.expand_all_stages.html" title='map_model::make::traffic_signals::expand_all_stages fn'>expand_all_stages</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.four_way_four_stage.html" title='map_model::make::traffic_signals::four_way_four_stage fn'>four_way_four_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.four_way_two_stage.html" title='map_model::make::traffic_signals::four_way_two_stage fn'>four_way_two_stage</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.get_possible_policies.html" title='map_model::make::traffic_signals::get_possible_policies fn'>get_possible_policies</a></td><td class='docblock-short'><p>Applies a bunch of heuristics to a single intersection, returning the valid results in
|
||||
best-first order. The signal configuration is only based on the roads connected to the
|
||||
intersection.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get_sorted_incoming_roads.html" title='map_model::make::traffic_signals::get_sorted_incoming_roads fn'>get_sorted_incoming_roads</a></td><td class='docblock-short'><p>Return all incoming roads to an intersection, sorted by angle. This skips one-way roads
|
||||
outbound from the intersection, since no turns originate from those anyway. This allows
|
||||
heuristics for a 3-way intersection to not care if one of the roads happens to be a dual
|
||||
carriageway (split into two one-ways).</p>
|
||||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.greedy_assignment.html" title='map_model::make::traffic_signals::greedy_assignment fn'>greedy_assignment</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.half_signal.html" title='map_model::make::traffic_signals::half_signal fn'>half_signal</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.helper.html" title='map_model::make::traffic_signals::helper fn'>helper</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.make_stages.html" title='map_model::make::traffic_signals::make_stages fn'>make_stages</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.new.html" title='map_model::make::traffic_signals::new fn'>new</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.okay_partition.html" title='map_model::make::traffic_signals::okay_partition fn'>okay_partition</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.stage_per_road.html" title='map_model::make::traffic_signals::stage_per_road fn'>stage_per_road</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.synchronize.html" title='map_model::make::traffic_signals::synchronize fn'>synchronize</a></td><td class='docblock-short'><p>Simple second-pass after generating all signals. Find pairs of traffic signals very close to
|
||||
each other with 2 stages each, see if the primary movement of the first stages lead to each
|
||||
other, and flip the order of stages if not. This is often wrong when the most common movement is
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"constant":[["PROTECTED",""],["YIELD",""]],"fn":[["all_walk_all_yield",""],["brute_force","Temporary experiment to group all movements into the smallest number of stages."],["degenerate",""],["expand_all_stages",""],["four_oneways",""],["four_way_four_stage",""],["four_way_two_stage",""],["get_possible_policies","Applies a bunch of heuristics to a single intersection, returning the valid results in best-first order. The signal configuration is only based on the roads connected to the intersection."],["greedy_assignment",""],["half_signal",""],["helper",""],["make_stages",""],["new",""],["okay_partition",""],["stage_per_road",""],["synchronize","Simple second-pass after generating all signals. Find pairs of traffic signals very close to each other with 2 stages each, see if the primary movement of the first stages lead to each other, and flip the order of stages if not. This is often wrong when the most common movement is actually turning left then going straight (near Mercer for example), but not sure how we could know that without demand data."],["three_way",""]],"struct":[["Partition",""]]});
|
||||
initSidebarItems({"constant":[["PROTECTED",""],["YIELD",""]],"fn":[["all_walk_all_yield",""],["brute_force","Temporary experiment to group all movements into the smallest number of stages."],["degenerate",""],["expand_all_stages",""],["four_way_four_stage",""],["four_way_two_stage",""],["get_possible_policies","Applies a bunch of heuristics to a single intersection, returning the valid results in best-first order. The signal configuration is only based on the roads connected to the intersection."],["get_sorted_incoming_roads","Return all incoming roads to an intersection, sorted by angle. This skips one-way roads outbound from the intersection, since no turns originate from those anyway. This allows heuristics for a 3-way intersection to not care if one of the roads happens to be a dual carriageway (split into two one-ways)."],["greedy_assignment",""],["half_signal",""],["helper",""],["make_stages",""],["new",""],["okay_partition",""],["stage_per_road",""],["synchronize","Simple second-pass after generating all signals. Find pairs of traffic signals very close to each other with 2 stages each, see if the primary movement of the first stages lead to each other, and flip the order of stages if not. This is often wrong when the most common movement is actually turning left then going straight (near Mercer for example), but not sure how we could know that without demand data."],["three_way",""]],"struct":[["Partition",""]]});
|
@ -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 `Partition` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, Partition"><title>map_model::make::traffic_signals::Partition - 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 src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</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 Partition</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-Clone">Clone</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-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a></p><script>window.sidebarCurrent = {name: 'Partition', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#493' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="struct" href=''>Partition</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Partition(<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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>>);</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'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#492' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#492' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#441' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>make</a>::<wbr><a href='index.html'>traffic_signals</a>::<wbr><a class="struct" href=''>Partition</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Partition(<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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>>);</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'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#440' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a class='srclink' href='../../../src/map_model/make/traffic_signals.rs.html#440' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div></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="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../map_model/make/traffic_signals/struct.Partition.html" title="struct map_model::make::traffic_signals::Partition">Partition</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -122,7 +122,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.48.0 (7eac88abb 2020-11-16)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Wed, 30 Dec 2020 21:39:46 +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">"Wed, 30 Dec 2020 23:42:59 +0000"</span>;
|
||||
<span class="doccomment">/// The target architecture, given by `cfg!(target_arch)`.</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"x86_64"</span>;
|
||||
<span class="doccomment">/// The endianness, given by `cfg!(target_endian)`.</span>
|
||||
|
@ -275,6 +275,10 @@
|
||||
<span id="272">272</span>
|
||||
<span id="273">273</span>
|
||||
<span id="274">274</span>
|
||||
<span id="275">275</span>
|
||||
<span id="276">276</span>
|
||||
<span id="277">277</span>
|
||||
<span id="278">278</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">BTreeSet</span>;
|
||||
|
||||
@ -371,33 +375,37 @@
|
||||
<span class="kw">for</span> <span class="ident">m</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">stage</span>.<span class="ident">yield_movements</span> {
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">m</span>.<span class="ident">crosswalk</span>);
|
||||
<span class="kw">let</span> <span class="ident">pl</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">signal</span>.<span class="ident">movements</span>[<span class="ident">m</span>].<span class="ident">geom</span>;
|
||||
<span class="ident">batch</span>.<span class="ident">extend</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">BLACK</span>,
|
||||
<span class="ident">pl</span>.<span class="ident">exact_slice</span>(
|
||||
<span class="ident">SIDEWALK_THICKNESS</span> <span class="op">-</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
|
||||
<span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span> <span class="op">+</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
|
||||
)
|
||||
.<span class="ident">dashed_arrow</span>(
|
||||
<span class="ident">BIG_ARROW_THICKNESS</span>,
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.2</span>),
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.3</span>),
|
||||
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
|
||||
),
|
||||
);
|
||||
<span class="ident">batch</span>.<span class="ident">extend</span>(
|
||||
<span class="kw">if</span> <span class="ident">yellow_light</span> {
|
||||
<span class="ident">indicator_color</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">app</span>.<span class="ident">cs</span>().<span class="ident">signal_protected_turn</span>.<span class="ident">alpha</span>(<span class="ident">percent</span>)
|
||||
},
|
||||
<span class="ident">pl</span>.<span class="ident">exact_slice</span>(<span class="ident">SIDEWALK_THICKNESS</span>, <span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span>)
|
||||
.<span class="ident">dashed_arrow</span>(
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">slice</span>) <span class="op">=</span> <span class="ident">pl</span>.<span class="ident">maybe_exact_slice</span>(
|
||||
<span class="ident">SIDEWALK_THICKNESS</span> <span class="op">-</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
|
||||
<span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span> <span class="op">+</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.1</span>),
|
||||
) {
|
||||
<span class="ident">batch</span>.<span class="ident">extend</span>(
|
||||
<span class="ident">Color</span>::<span class="ident">BLACK</span>,
|
||||
<span class="ident">slice</span>.<span class="ident">dashed_arrow</span>(
|
||||
<span class="ident">BIG_ARROW_THICKNESS</span>,
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.2</span>),
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.3</span>),
|
||||
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
|
||||
),
|
||||
);
|
||||
}
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">slice</span>) <span class="op">=</span>
|
||||
<span class="ident">pl</span>.<span class="ident">maybe_exact_slice</span>(<span class="ident">SIDEWALK_THICKNESS</span>, <span class="ident">pl</span>.<span class="ident">length</span>() <span class="op">-</span> <span class="ident">SIDEWALK_THICKNESS</span>)
|
||||
{
|
||||
<span class="ident">batch</span>.<span class="ident">extend</span>(
|
||||
<span class="kw">if</span> <span class="ident">yellow_light</span> {
|
||||
<span class="ident">indicator_color</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">app</span>.<span class="ident">cs</span>().<span class="ident">signal_protected_turn</span>.<span class="ident">alpha</span>(<span class="ident">percent</span>)
|
||||
},
|
||||
<span class="ident">slice</span>.<span class="ident">dashed_arrow</span>(
|
||||
<span class="ident">BIG_ARROW_THICKNESS</span> <span class="op">/</span> <span class="number">2.0</span>,
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">1.0</span>),
|
||||
<span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">0.5</span>),
|
||||
<span class="ident">ArrowCap</span>::<span class="ident">Triangle</span>,
|
||||
),
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
<span class="ident">draw_stage_number</span>(<span class="ident">app</span>, <span class="ident">prerender</span>, <span class="ident">i</span>, <span class="ident">idx</span>, <span class="ident">batch</span>);
|
||||
}
|
||||
|
@ -543,41 +543,6 @@
|
||||
<span id="540">540</span>
|
||||
<span id="541">541</span>
|
||||
<span id="542">542</span>
|
||||
<span id="543">543</span>
|
||||
<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>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::<span class="ident">HashSet</span>;
|
||||
|
||||
@ -638,9 +603,6 @@
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ts</span>) <span class="op">=</span> <span class="ident">degenerate</span>(<span class="ident">map</span>, <span class="ident">id</span>) {
|
||||
<span class="ident">results</span>.<span class="ident">push</span>((<span class="string">"degenerate (2 roads)"</span>.<span class="ident">to_string</span>(), <span class="ident">ts</span>));
|
||||
}
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">ts</span>) <span class="op">=</span> <span class="ident">four_oneways</span>(<span class="ident">map</span>, <span class="ident">id</span>) {
|
||||
<span class="ident">results</span>.<span class="ident">push</span>((<span class="string">"two-stage for 4 one-ways"</span>.<span class="ident">to_string</span>(), <span class="ident">ts</span>));
|
||||
}
|
||||
<span class="ident">results</span>.<span class="ident">push</span>((<span class="string">"stage per road"</span>.<span class="ident">to_string</span>(), <span class="ident">stage_per_road</span>(<span class="ident">map</span>, <span class="ident">id</span>)));
|
||||
<span class="ident">results</span>.<span class="ident">push</span>((
|
||||
<span class="string">"arbitrary assignment"</span>.<span class="ident">to_string</span>(),
|
||||
@ -712,13 +674,11 @@
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">degenerate</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ControlTrafficSignal</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">2</span> {
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">get_sorted_incoming_roads</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="kw">if</span> <span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">2</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">iter</span>();
|
||||
<span class="kw">let</span> <span class="ident">r1</span> <span class="op">=</span> <span class="kw-2">*</span><span class="ident">roads</span>.<span class="ident">next</span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="ident">r2</span> <span class="op">=</span> <span class="kw-2">*</span><span class="ident">roads</span>.<span class="ident">next</span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> (<span class="ident">r1</span>, <span class="ident">r2</span>) <span class="op">=</span> (<span class="ident">roads</span>[<span class="number">0</span>], <span class="ident">roads</span>[<span class="number">1</span>]);
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">ts</span> <span class="op">=</span> <span class="ident">new</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="ident">make_stages</span>(
|
||||
@ -751,7 +711,8 @@
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">three_way</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ControlTrafficSignal</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">3</span> {
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">get_sorted_incoming_roads</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="kw">if</span> <span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">3</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">ts</span> <span class="op">=</span> <span class="ident">new</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
@ -762,10 +723,10 @@
|
||||
.<span class="ident">values</span>()
|
||||
.<span class="ident">find</span>(<span class="op">|</span><span class="ident">g</span><span class="op">|</span> <span class="ident">g</span>.<span class="ident">turn_type</span> <span class="op">=</span><span class="op">=</span> <span class="ident">TurnType</span>::<span class="ident">Straight</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> (<span class="ident">north</span>, <span class="ident">south</span>) <span class="op">=</span> (<span class="ident">straight</span>.<span class="ident">id</span>.<span class="ident">from</span>.<span class="ident">id</span>, <span class="ident">straight</span>.<span class="ident">id</span>.<span class="ident">to</span>.<span class="ident">id</span>);
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">clone</span>();
|
||||
<span class="ident">roads</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">north</span>);
|
||||
<span class="ident">roads</span>.<span class="ident">remove</span>(<span class="kw-2">&</span><span class="ident">south</span>);
|
||||
<span class="kw">let</span> <span class="ident">east</span> <span class="op">=</span> <span class="ident">roads</span>.<span class="ident">into_iter</span>().<span class="ident">next</span>().<span class="ident">unwrap</span>();
|
||||
<span class="kw">let</span> <span class="ident">east</span> <span class="op">=</span> <span class="ident">roads</span>
|
||||
.<span class="ident">into_iter</span>()
|
||||
.<span class="ident">find</span>(<span class="op">|</span><span class="ident">r</span><span class="op">|</span> <span class="kw-2">*</span><span class="ident">r</span> <span class="op">!</span><span class="op">=</span> <span class="ident">north</span> <span class="op">&&</span> <span class="kw-2">*</span><span class="ident">r</span> <span class="op">!</span><span class="op">=</span> <span class="ident">south</span>)
|
||||
.<span class="ident">unwrap</span>();
|
||||
|
||||
<span class="comment">// Two-stage with no protected lefts, right turn on red, turning cars yield to peds</span>
|
||||
<span class="ident">make_stages</span>(
|
||||
@ -790,14 +751,12 @@
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">four_way_four_stage</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ControlTrafficSignal</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">4</span> {
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">get_sorted_incoming_roads</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="kw">if</span> <span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">4</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
|
||||
<span class="comment">// Just to refer to these easily, label with directions. Imagine an axis-aligned four-way.</span>
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">get_i</span>(<span class="ident">i</span>)
|
||||
.<span class="ident">get_roads_sorted_by_incoming_angle</span>(<span class="ident">map</span>.<span class="ident">all_roads</span>());
|
||||
<span class="kw">let</span> (<span class="ident">north</span>, <span class="ident">west</span>, <span class="ident">south</span>, <span class="ident">east</span>) <span class="op">=</span> (<span class="ident">roads</span>[<span class="number">0</span>], <span class="ident">roads</span>[<span class="number">1</span>], <span class="ident">roads</span>[<span class="number">2</span>], <span class="ident">roads</span>[<span class="number">3</span>]);
|
||||
|
||||
<span class="comment">// Four-stage with protected lefts, right turn on red (except for the protected lefts),</span>
|
||||
@ -824,14 +783,12 @@
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">four_way_two_stage</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ControlTrafficSignal</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">4</span> {
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">get_sorted_incoming_roads</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="kw">if</span> <span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">4</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
|
||||
<span class="comment">// Just to refer to these easily, label with directions. Imagine an axis-aligned four-way.</span>
|
||||
<span class="kw">let</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">map</span>
|
||||
.<span class="ident">get_i</span>(<span class="ident">i</span>)
|
||||
.<span class="ident">get_roads_sorted_by_incoming_angle</span>(<span class="ident">map</span>.<span class="ident">all_roads</span>());
|
||||
<span class="kw">let</span> (<span class="ident">north</span>, <span class="ident">west</span>, <span class="ident">south</span>, <span class="ident">east</span>) <span class="op">=</span> (<span class="ident">roads</span>[<span class="number">0</span>], <span class="ident">roads</span>[<span class="number">1</span>], <span class="ident">roads</span>[<span class="number">2</span>], <span class="ident">roads</span>[<span class="number">3</span>]);
|
||||
|
||||
<span class="comment">// Two-stage with no protected lefts, right turn on red, turning cars yielding to peds</span>
|
||||
@ -856,50 +813,6 @@
|
||||
<span class="prelude-val">Some</span>(<span class="ident">ts</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">four_oneways</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">ControlTrafficSignal</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">4</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">incomings</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">map</span>.<span class="ident">get_i</span>(<span class="ident">i</span>).<span class="ident">roads</span> {
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">map</span>.<span class="ident">get_r</span>(<span class="kw-2">*</span><span class="ident">r</span>).<span class="ident">incoming_lanes</span>(<span class="ident">i</span>).<span class="ident">is_empty</span>() {
|
||||
<span class="ident">incomings</span>.<span class="ident">push</span>(<span class="kw-2">*</span><span class="ident">r</span>);
|
||||
}
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">incomings</span>.<span class="ident">len</span>() <span class="op">!</span><span class="op">=</span> <span class="number">2</span> {
|
||||
<span class="kw">return</span> <span class="prelude-val">None</span>;
|
||||
}
|
||||
<span class="kw">let</span> <span class="ident">r1</span> <span class="op">=</span> <span class="ident">incomings</span>[<span class="number">0</span>];
|
||||
<span class="kw">let</span> <span class="ident">r2</span> <span class="op">=</span> <span class="ident">incomings</span>[<span class="number">1</span>];
|
||||
|
||||
<span class="comment">// TODO This may not generalize...</span>
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">ts</span> <span class="op">=</span> <span class="ident">new</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
<span class="ident">make_stages</span>(
|
||||
<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">ts</span>,
|
||||
<span class="macro">vec</span><span class="macro">!</span>[
|
||||
<span class="macro">vec</span><span class="macro">!</span>[
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r1</span>], <span class="ident">TurnType</span>::<span class="ident">Straight</span>, <span class="ident">PROTECTED</span>),
|
||||
<span class="comment">// TODO Technically, upgrade to protected if there's no opposing crosswalk --</span>
|
||||
<span class="comment">// even though it doesn't matter much.</span>
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r1</span>], <span class="ident">TurnType</span>::<span class="ident">Right</span>, <span class="ident">YIELD</span>),
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r1</span>], <span class="ident">TurnType</span>::<span class="ident">Left</span>, <span class="ident">YIELD</span>),
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r1</span>], <span class="ident">TurnType</span>::<span class="ident">Right</span>, <span class="ident">YIELD</span>),
|
||||
<span class="comment">// TODO Refactor</span>
|
||||
],
|
||||
<span class="macro">vec</span><span class="macro">!</span>[
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r2</span>], <span class="ident">TurnType</span>::<span class="ident">Straight</span>, <span class="ident">PROTECTED</span>),
|
||||
<span class="comment">// TODO Technically, upgrade to protected if there's no opposing crosswalk --</span>
|
||||
<span class="comment">// even though it doesn't matter much.</span>
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r2</span>], <span class="ident">TurnType</span>::<span class="ident">Right</span>, <span class="ident">YIELD</span>),
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r2</span>], <span class="ident">TurnType</span>::<span class="ident">Left</span>, <span class="ident">YIELD</span>),
|
||||
(<span class="macro">vec</span><span class="macro">!</span>[<span class="ident">r2</span>], <span class="ident">TurnType</span>::<span class="ident">Right</span>, <span class="ident">YIELD</span>),
|
||||
],
|
||||
],
|
||||
);
|
||||
<span class="prelude-val">Some</span>(<span class="ident">ts</span>)
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">all_walk_all_yield</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="ident">IntersectionID</span>) <span class="op">-</span><span class="op">></span> <span class="ident">ControlTrafficSignal</span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">ts</span> <span class="op">=</span> <span class="ident">new</span>(<span class="ident">i</span>, <span class="ident">map</span>);
|
||||
|
||||
@ -1156,5 +1069,22 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Return all incoming roads to an intersection, sorted by angle. This skips one-way roads</span>
|
||||
<span class="doccomment">/// outbound from the intersection, since no turns originate from those anyway. This allows</span>
|
||||
<span class="doccomment">/// heuristics for a 3-way intersection to not care if one of the roads happens to be a dual</span>
|
||||
<span class="doccomment">/// carriageway (split into two one-ways).</span>
|
||||
<span class="kw">fn</span> <span class="ident">get_sorted_incoming_roads</span>(<span class="ident">i</span>: <span class="ident">IntersectionID</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">RoadID</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">roads</span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="ident">map</span>
|
||||
.<span class="ident">get_i</span>(<span class="ident">i</span>)
|
||||
.<span class="ident">get_roads_sorted_by_incoming_angle</span>(<span class="ident">map</span>.<span class="ident">all_roads</span>())
|
||||
{
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">map</span>.<span class="ident">get_r</span>(<span class="ident">r</span>).<span class="ident">incoming_lanes</span>(<span class="ident">i</span>).<span class="ident">is_empty</span>() {
|
||||
<span class="ident">roads</span>.<span class="ident">push</span>(<span class="ident">r</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">roads</span>
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
Loading…
Reference in New Issue
Block a user