mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 48a60c965b
This commit is contained in:
parent
0844b23b0b
commit
930c5714f9
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a></p><script>window.sidebarCurrent = {name: "BUILT_TIME_UTC", ty: "constant", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 15 Jan 2021 18:32:16 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-b5501e76eef510ad/out/built.rs.html#53" title="goto source code">[src]</a></span><span class="in-band">Constant <a href="../../index.html">game</a>::<wbr><a href="../index.html">pregame</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="">BUILT_TIME_UTC</a></span></h1><pre class="rust const">pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Sat, 16 Jan 2021 00:00:28 +0000";</pre><div class="docblock"><p>The built-time in RFC2822, UTC</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "game";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -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 `curvey_turn` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, curvey_turn"><title>map_model::make::turns::curvey_turn - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "curvey_turn", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#245-270" 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">turns</a>::<wbr><a class="fn" href="">curvey_turn</a></span></h1><pre class="rust fn">fn curvey_turn(src: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, dst: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</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/turns.rs.html#247-272" 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">turns</a>::<wbr><a class="fn" href="">curvey_turn</a></span></h1><pre class="rust fn">fn curvey_turn(src: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, dst: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>) -> <a class="type" href="https://docs.rs/anyhow/1.0.37/anyhow/type.Result.html" title="type anyhow::Result">Result</a><<a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</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 `does_turn_pass_restrictions` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, does_turn_pass_restrictions"><title>map_model::make::turns::does_turn_pass_restrictions - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "does_turn_pass_restrictions", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#159-187" 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">turns</a>::<wbr><a class="fn" href="">does_turn_pass_restrictions</a></span></h1><pre class="rust fn">fn does_turn_pass_restrictions(turn: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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/turns.rs.html#161-189" 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">turns</a>::<wbr><a class="fn" href="">does_turn_pass_restrictions</a></span></h1><pre class="rust fn">fn does_turn_pass_restrictions(turn: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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 `ensure_unique` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, ensure_unique"><title>map_model::make::turns::ensure_unique - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "ensure_unique", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#131-146" 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">turns</a>::<wbr><a class="fn" href="">ensure_unique</a></span></h1><pre class="rust fn">fn ensure_unique(turns: <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.Turn.html" title="struct map_model::Turn">Turn</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.Turn.html" title="struct map_model::Turn">Turn</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/turns.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">turns</a>::<wbr><a class="fn" href="">ensure_unique</a></span></h1><pre class="rust fn">fn ensure_unique(turns: <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.Turn.html" title="struct map_model::Turn">Turn</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.Turn.html" title="struct map_model::Turn">Turn</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 `from_pt` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, from_pt"><title>map_model::make::turns::from_pt - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "from_pt", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#276-278" 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">turns</a>::<wbr><a class="fn" href="">from_pt</a></span></h1><pre class="rust fn">fn from_pt(pt: Point2d<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</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/turns.rs.html#278-280" 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">turns</a>::<wbr><a class="fn" href="">from_pt</a></span></h1><pre class="rust fn">fn from_pt(pt: Point2d<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>>) -> <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</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 `is_turn_allowed` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, is_turn_allowed"><title>map_model::make::turns::is_turn_allowed - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "is_turn_allowed", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#148-157" 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">turns</a>::<wbr><a class="fn" href="">is_turn_allowed</a></span></h1><pre class="rust fn">fn is_turn_allowed(turn: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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/turns.rs.html#150-159" 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">turns</a>::<wbr><a class="fn" href="">is_turn_allowed</a></span></h1><pre class="rust fn">fn is_turn_allowed(turn: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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 `lc_penalty` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, lc_penalty"><title>map_model::make::turns::lc_penalty - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "lc_penalty", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#280-315" 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">turns</a>::<wbr><a class="fn" href="">lc_penalty</a></span></h1><pre class="rust fn">fn lc_penalty(t: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</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/turns.rs.html#282-317" 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">turns</a>::<wbr><a class="fn" href="">lc_penalty</a></span></h1><pre class="rust fn">fn lc_penalty(t: &<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</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 `make_all_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_all_turns"><title>map_model::make::turns::make_all_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "make_all_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#13-129" 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">turns</a>::<wbr><a class="fn" href="">make_all_turns</a></span></h1><pre class="rust fn">pub fn make_all_turns(<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.Intersection.html" title="struct map_model::Intersection">Intersection</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>></pre><div class="docblock"><p>Generate all driving and walking turns at an intersection, accounting for OSM turn restrictions.</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/turns.rs.html#13-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">turns</a>::<wbr><a class="fn" href="">make_all_turns</a></span></h1><pre class="rust fn">pub fn make_all_turns(<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.Intersection.html" title="struct map_model::Intersection">Intersection</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>></pre><div class="docblock"><p>Generate all driving and walking turns at an intersection, accounting for OSM turn restrictions.</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 `make_vehicle_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_vehicle_turns"><title>map_model::make::turns::make_vehicle_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "make_vehicle_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#189-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">turns</a>::<wbr><a class="fn" href="">make_vehicle_turns</a></span></h1><pre class="rust fn">fn make_vehicle_turns(<br> i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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/turns.rs.html#191-245" 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">turns</a>::<wbr><a class="fn" href="">make_vehicle_turns</a></span></h1><pre class="rust fn">fn make_vehicle_turns(<br> i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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 `remove_merging_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, remove_merging_turns"><title>map_model::make::turns::remove_merging_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "remove_merging_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#317-383" 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">turns</a>::<wbr><a class="fn" href="">remove_merging_turns</a></span></h1><pre class="rust fn">fn remove_merging_turns(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> input: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>>, <br> turn_type: <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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/turns.rs.html#319-385" 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">turns</a>::<wbr><a class="fn" href="">remove_merging_turns</a></span></h1><pre class="rust fn">fn remove_merging_turns(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> input: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</a>>, <br> turn_type: <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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 `to_pt` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, to_pt"><title>map_model::make::turns::to_pt - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "to_pt", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#272-274" 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">turns</a>::<wbr><a class="fn" href="">to_pt</a></span></h1><pre class="rust fn">fn to_pt(pt: <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Point2d<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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/turns.rs.html#274-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">turns</a>::<wbr><a class="fn" href="">to_pt</a></span></h1><pre class="rust fn">fn to_pt(pt: <a class="struct" href="../../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Point2d<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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 `turn_type_from_angles` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, turn_type_from_angles"><title>map_model::make::turns::turn_type_from_angles - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">turns</a></p><script>window.sidebarCurrent = {name: "turn_type_from_angles", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#385-400" 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">turns</a>::<wbr><a class="fn" href="">turn_type_from_angles</a></span></h1><pre class="rust fn">fn turn_type_from_angles(from: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>, to: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>) -> <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</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/turns.rs.html#387-402" 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">turns</a>::<wbr><a class="fn" href="">turn_type_from_angles</a></span></h1><pre class="rust fn">fn turn_type_from_angles(from: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>, to: <a class="struct" href="../../../geom/angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a>) -> <a class="enum" href="../../../map_model/enum.TurnType.html" title="enum map_model::TurnType">TurnType</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,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `turns` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, turns"><title>map_model::make::turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module turns</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a></p><script>window.sidebarCurrent = {name: "turns", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/turns.rs.html#1-400" 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="">turns</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_model/make/turns.rs.html#1-402" 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="">turns</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.curvey_turn.html" title="map_model::make::turns::curvey_turn fn">curvey_turn</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.does_turn_pass_restrictions.html" title="map_model::make::turns::does_turn_pass_restrictions fn">does_turn_pass_restrictions</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.ensure_unique.html" title="map_model::make::turns::ensure_unique fn">ensure_unique</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.from_pt.html" title="map_model::make::turns::from_pt fn">from_pt</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.is_turn_allowed.html" title="map_model::make::turns::is_turn_allowed fn">is_turn_allowed</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.lc_penalty.html" title="map_model::make::turns::lc_penalty fn">lc_penalty</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_all_turns.html" title="map_model::make::turns::make_all_turns fn">make_all_turns</a></td><td class="docblock-short"><p>Generate all driving and walking turns at an intersection, accounting for OSM turn restrictions.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.make_vehicle_turns.html" title="map_model::make::turns::make_vehicle_turns fn">make_vehicle_turns</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.remove_merging_turns.html" title="map_model::make::turns::remove_merging_turns fn">remove_merging_turns</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.to_pt.html" title="map_model::make::turns::to_pt fn">to_pt</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.turn_type_from_angles.html" title="map_model::make::turns::turn_type_from_angles fn">turn_type_from_angles</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_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_walking_turns_v2` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, _make_walking_turns_v2"><title>map_model::make::walking_turns::_make_walking_turns_v2 - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "_make_walking_turns_v2", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#153-258" 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">walking_turns</a>::<wbr><a class="fn" href="">_make_walking_turns_v2</a></span></h1><pre class="rust fn">pub fn _make_walking_turns_v2(<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.Intersection.html" title="struct map_model::Intersection">Intersection</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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/walking_turns.rs.html#169-274" 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">walking_turns</a>::<wbr><a class="fn" href="">_make_walking_turns_v2</a></span></h1><pre class="rust fn">pub fn _make_walking_turns_v2(<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.Intersection.html" title="struct map_model::Intersection">Intersection</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="struct" href="../../../map_model/struct.Turn.html" title="struct map_model::Turn">Turn</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>
|
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `filter_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, filter_turns"><title>map_model::make::walking_turns::filter_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "filter_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#154-166" 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">walking_turns</a>::<wbr><a class="fn" href="">filter_turns</a></span></h1><pre class="rust fn">pub fn filter_turns(input: <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.Turn.html" title="struct map_model::Turn">Turn</a>>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</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.Turn.html" title="struct map_model::Turn">Turn</a>></pre><div class="docblock"><p>Filter out crosswalks on really short roads. In reality, these roads are usually located within
|
||||
an intersection, which isn't a valid place for a pedestrian crossing.</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 `get_sidewalk` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, get_sidewalk"><title>map_model::make::walking_turns::get_sidewalk - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "get_sidewalk", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#493-500" 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">walking_turns</a>::<wbr><a class="fn" href="">get_sidewalk</a></span></h1><pre class="rust fn">fn get_sidewalk<'a>(<br> lanes: &'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.Lane.html" title="struct map_model::Lane">Lane</a>>, <br> children: <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</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 <a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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/walking_turns.rs.html#509-516" 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">walking_turns</a>::<wbr><a class="fn" href="">get_sidewalk</a></span></h1><pre class="rust fn">fn get_sidewalk<'a>(<br> lanes: &'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.Lane.html" title="struct map_model::Lane">Lane</a>>, <br> children: <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</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 <a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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_crosswalks` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_crosswalks"><title>map_model::make::walking_turns::make_crosswalks - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "make_crosswalks", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#299-327" 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">walking_turns</a>::<wbr><a class="fn" href="">make_crosswalks</a></span></h1><pre class="rust fn">fn make_crosswalks(i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, l1: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, l2: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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="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.Turn.html" title="struct map_model::Turn">Turn</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/walking_turns.rs.html#315-343" 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">walking_turns</a>::<wbr><a class="fn" href="">make_crosswalks</a></span></h1><pre class="rust fn">fn make_crosswalks(i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, l1: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, l2: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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="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.Turn.html" title="struct map_model::Turn">Turn</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_degenerate_crosswalks` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_degenerate_crosswalks"><title>map_model::make::walking_turns::make_degenerate_crosswalks - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "make_degenerate_crosswalks", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#330-392" 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">walking_turns</a>::<wbr><a class="fn" href="">make_degenerate_crosswalks</a></span></h1><pre class="rust fn">fn make_degenerate_crosswalks(<br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, <br> lanes: &<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.Lane.html" title="struct map_model::Lane">Lane</a>>, <br> r1: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a>, <br> r2: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</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="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.Turn.html" title="struct map_model::Turn">Turn</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/walking_turns.rs.html#346-408" 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">walking_turns</a>::<wbr><a class="fn" href="">make_degenerate_crosswalks</a></span></h1><pre class="rust fn">fn make_degenerate_crosswalks(<br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, <br> lanes: &<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.Lane.html" title="struct map_model::Lane">Lane</a>>, <br> r1: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a>, <br> r2: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</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="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.Turn.html" title="struct map_model::Turn">Turn</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 `make_footway_turns` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_footway_turns"><title>map_model::make::walking_turns::make_footway_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "make_footway_turns", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#261-297" 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">walking_turns</a>::<wbr><a class="fn" href="">make_footway_turns</a></span></h1><pre class="rust fn">fn make_footway_turns(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.Intersection.html" title="struct map_model::Intersection">Intersection</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.Turn.html" title="struct map_model::Turn">Turn</a>></pre><div class="docblock"><p>At an intersection of footpaths only, just generate a turn between every pair of lanes.</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/walking_turns.rs.html#277-313" 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">walking_turns</a>::<wbr><a class="fn" href="">make_footway_turns</a></span></h1><pre class="rust fn">fn make_footway_turns(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.Intersection.html" title="struct map_model::Intersection">Intersection</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.Turn.html" title="struct map_model::Turn">Turn</a>></pre><div class="docblock"><p>At an intersection of footpaths only, just generate a turn between every pair of lanes.</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 `make_shared_sidewalk_corner` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, make_shared_sidewalk_corner"><title>map_model::make::walking_turns::make_shared_sidewalk_corner - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "make_shared_sidewalk_corner", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#395-487" 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">walking_turns</a>::<wbr><a class="fn" href="">make_shared_sidewalk_corner</a></span></h1><pre class="rust fn">fn make_shared_sidewalk_corner(<br> driving_side: <a class="enum" href="../../../map_model/enum.DrivingSide.html" title="enum map_model::DrivingSide">DrivingSide</a>, <br> i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, <br> l1: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, <br> l2: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</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/walking_turns.rs.html#411-503" 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">walking_turns</a>::<wbr><a class="fn" href="">make_shared_sidewalk_corner</a></span></h1><pre class="rust fn">fn make_shared_sidewalk_corner(<br> driving_side: <a class="enum" href="../../../map_model/enum.DrivingSide.html" title="enum map_model::DrivingSide">DrivingSide</a>, <br> i: &<a class="struct" href="../../../map_model/struct.Intersection.html" title="struct map_model::Intersection">Intersection</a>, <br> l1: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>, <br> l2: &<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</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="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</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 `turn_id` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, turn_id"><title>map_model::make::walking_turns::turn_id - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_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">walking_turns</a></p><script>window.sidebarCurrent = {name: "turn_id", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#489-491" 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">walking_turns</a>::<wbr><a class="fn" href="">turn_id</a></span></h1><pre class="rust fn">fn turn_id(parent: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, src: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, dst: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="struct" href="../../../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</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/walking_turns.rs.html#505-507" 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">walking_turns</a>::<wbr><a class="fn" href="">turn_id</a></span></h1><pre class="rust fn">fn turn_id(parent: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>, src: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, dst: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="struct" href="../../../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</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,9 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `walking_turns` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, walking_turns"><title>map_model::make::walking_turns - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module walking_turns</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">make</a></p><script>window.sidebarCurrent = {name: "walking_turns", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/make/walking_turns.rs.html#1-500" 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="">walking_turns</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._make_walking_turns_v2.html" title="map_model::make::walking_turns::_make_walking_turns_v2 fn">_make_walking_turns_v2</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.get_sidewalk.html" title="map_model::make::walking_turns::get_sidewalk fn">get_sidewalk</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_crosswalks.html" title="map_model::make::walking_turns::make_crosswalks fn">make_crosswalks</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_degenerate_crosswalks.html" title="map_model::make::walking_turns::make_degenerate_crosswalks fn">make_degenerate_crosswalks</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_footway_turns.html" title="map_model::make::walking_turns::make_footway_turns fn">make_footway_turns</a></td><td class="docblock-short"><p>At an intersection of footpaths only, just generate a turn between every pair of lanes.</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/walking_turns.rs.html#1-516" 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="">walking_turns</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._make_walking_turns_v2.html" title="map_model::make::walking_turns::_make_walking_turns_v2 fn">_make_walking_turns_v2</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.filter_turns.html" title="map_model::make::walking_turns::filter_turns fn">filter_turns</a></td><td class="docblock-short"><p>Filter out crosswalks on really short roads. In reality, these roads are usually located within
|
||||
an intersection, which isn't a valid place for a pedestrian crossing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.get_sidewalk.html" title="map_model::make::walking_turns::get_sidewalk fn">get_sidewalk</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_crosswalks.html" title="map_model::make::walking_turns::make_crosswalks fn">make_crosswalks</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_degenerate_crosswalks.html" title="map_model::make::walking_turns::make_degenerate_crosswalks fn">make_degenerate_crosswalks</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_footway_turns.html" title="map_model::make::walking_turns::make_footway_turns fn">make_footway_turns</a></td><td class="docblock-short"><p>At an intersection of footpaths only, just generate a turn between every pair of lanes.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.make_shared_sidewalk_corner.html" title="map_model::make::walking_turns::make_shared_sidewalk_corner fn">make_shared_sidewalk_corner</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.make_walking_turns.html" title="map_model::make::walking_turns::make_walking_turns fn">make_walking_turns</a></td><td class="docblock-short"><p>Generate Crosswalk and SharedSidewalkCorner (places where two sidewalks directly meet) turns</p>
|
||||
</td></tr><tr class="module-item"><td><a class="fn" href="fn.turn_id.html" title="map_model::make::walking_turns::turn_id fn">turn_id</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_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"fn":[["_make_walking_turns_v2",""],["get_sidewalk",""],["make_crosswalks",""],["make_degenerate_crosswalks",""],["make_footway_turns","At an intersection of footpaths only, just generate a turn between every pair of lanes."],["make_shared_sidewalk_corner",""],["make_walking_turns","Generate Crosswalk and SharedSidewalkCorner (places where two sidewalks directly meet) turns"],["turn_id",""]]});
|
||||
initSidebarItems({"fn":[["_make_walking_turns_v2",""],["filter_turns","Filter out crosswalks on really short roads. In reality, these roads are usually located within an intersection, which isn't a valid place for a pedestrian crossing."],["get_sidewalk",""],["make_crosswalks",""],["make_degenerate_crosswalks",""],["make_footway_turns","At an intersection of footpaths only, just generate a turn between every pair of lanes."],["make_shared_sidewalk_corner",""],["make_walking_turns","Generate Crosswalk and SharedSidewalkCorner (places where two sidewalks directly meet) turns"],["turn_id",""]]});
|
@ -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 `road` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, road"><title>map_model::objects::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 id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module road</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a></p><script>window.sidebarCurrent = {name: "road", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/objects/road.rs.html#1-459" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="">road</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/objects/road.rs.html#1-466" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="">road</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.DirectedRoadID.html" title="map_model::objects::road::DirectedRoadID struct">DirectedRoadID</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Road.html" title="map_model::objects::road::Road struct">Road</a></td><td class="docblock-short"><p>A Road represents a segment between exactly two Intersections. It contains Lanes as children.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.RoadID.html" title="map_model::objects::road::RoadID struct">RoadID</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.Direction.html" title="map_model::objects::road::Direction enum">Direction</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_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Road` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, Road"><title>map_model::objects::road::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 id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc 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 Road</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.access_restrictions">access_restrictions</a><a href="#structfield.center_pts">center_pts</a><a href="#structfield.complicated_turn_restrictions">complicated_turn_restrictions</a><a href="#structfield.dst_i">dst_i</a><a href="#structfield.id">id</a><a href="#structfield.lanes_ltr">lanes_ltr</a><a href="#structfield.orig_id">orig_id</a><a href="#structfield.osm_tags">osm_tags</a><a href="#structfield.speed_limit">speed_limit</a><a href="#structfield.src_i">src_i</a><a href="#structfield.turn_restrictions">turn_restrictions</a><a href="#structfield.zorder">zorder</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.access_restrictions_from_osm">access_restrictions_from_osm</a><a href="#method.all_bus_stops">all_bus_stops</a><a href="#method.all_lanes">all_lanes</a><a href="#method.children">children</a><a href="#method.children_backwards">children_backwards</a><a href="#method.children_forwards">children_forwards</a><a href="#method.common_endpt">common_endpt</a><a href="#method.dir">dir</a><a href="#method.dir_and_offset">dir_and_offset</a><a href="#method.find_closest_lane">find_closest_lane</a><a href="#method.get_dir_change_pl">get_dir_change_pl</a><a href="#method.get_half_width">get_half_width</a><a href="#method.get_left_side">get_left_side</a><a href="#method.get_name">get_name</a><a href="#method.get_rank">get_rank</a><a href="#method.get_thick_polygon">get_thick_polygon</a><a href="#method.get_zone">get_zone</a><a href="#method.incoming_lanes">incoming_lanes</a><a href="#method.is_cycleway">is_cycleway</a><a href="#method.is_footway">is_footway</a><a href="#method.is_light_rail">is_light_rail</a><a href="#method.is_private">is_private</a><a href="#method.is_service">is_service</a><a href="#method.lanes_ltr">lanes_ltr</a><a href="#method.offset">offset</a><a href="#method.outgoing_lanes">outgoing_lanes</a><a href="#method.parking_to_driving">parking_to_driving</a><a href="#method.percent_grade">percent_grade</a><a href="#method.speed_limit_from_osm">speed_limit_from_osm</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-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-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">objects</a>::<wbr><a href="index.html">road</a></p><script>window.sidebarCurrent = {name: "Road", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<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 Road</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.access_restrictions">access_restrictions</a><a href="#structfield.center_pts">center_pts</a><a href="#structfield.complicated_turn_restrictions">complicated_turn_restrictions</a><a href="#structfield.dst_i">dst_i</a><a href="#structfield.id">id</a><a href="#structfield.lanes_ltr">lanes_ltr</a><a href="#structfield.orig_id">orig_id</a><a href="#structfield.osm_tags">osm_tags</a><a href="#structfield.speed_limit">speed_limit</a><a href="#structfield.src_i">src_i</a><a href="#structfield.turn_restrictions">turn_restrictions</a><a href="#structfield.zorder">zorder</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.access_restrictions_from_osm">access_restrictions_from_osm</a><a href="#method.all_bus_stops">all_bus_stops</a><a href="#method.all_lanes">all_lanes</a><a href="#method.children">children</a><a href="#method.children_backwards">children_backwards</a><a href="#method.children_forwards">children_forwards</a><a href="#method.common_endpt">common_endpt</a><a href="#method.dir">dir</a><a href="#method.dir_and_offset">dir_and_offset</a><a href="#method.find_closest_lane">find_closest_lane</a><a href="#method.get_dir_change_pl">get_dir_change_pl</a><a href="#method.get_half_width">get_half_width</a><a href="#method.get_left_side">get_left_side</a><a href="#method.get_name">get_name</a><a href="#method.get_rank">get_rank</a><a href="#method.get_thick_polygon">get_thick_polygon</a><a href="#method.get_zone">get_zone</a><a href="#method.incoming_lanes">incoming_lanes</a><a href="#method.is_cycleway">is_cycleway</a><a href="#method.is_extremely_short">is_extremely_short</a><a href="#method.is_footway">is_footway</a><a href="#method.is_light_rail">is_light_rail</a><a href="#method.is_private">is_private</a><a href="#method.is_service">is_service</a><a href="#method.lanes_ltr">lanes_ltr</a><a href="#method.offset">offset</a><a href="#method.outgoing_lanes">outgoing_lanes</a><a href="#method.parking_to_driving">parking_to_driving</a><a href="#method.percent_grade">percent_grade</a><a href="#method.speed_limit_from_osm">speed_limit_from_osm</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-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-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">objects</a>::<wbr><a href="index.html">road</a></p><script>window.sidebarCurrent = {name: "Road", 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!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/objects/road.rs.html#94-116" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a href="index.html">road</a>::<wbr><a class="struct" href="">Road</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct Road {
|
||||
pub id: <a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>,
|
||||
pub osm_tags: <a class="struct" href="../../../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>,
|
||||
@ -21,19 +21,22 @@
|
||||
</div><span id="structfield.orig_id" class="structfield small-section-header"><a href="#structfield.orig_id" class="anchor field"></a><code>orig_id: <a class="struct" href="../../../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a></code></span><span id="structfield.speed_limit" class="structfield small-section-header"><a href="#structfield.speed_limit" class="anchor field"></a><code>speed_limit: <a class="struct" href="../../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></code></span><span id="structfield.access_restrictions" class="structfield small-section-header"><a href="#structfield.access_restrictions" class="anchor field"></a><code>access_restrictions: <a class="struct" href="../../../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code></span><span id="structfield.zorder" class="structfield small-section-header"><a href="#structfield.zorder" class="anchor field"></a><code>zorder: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span id="structfield.lanes_ltr" class="structfield small-section-header"><a href="#structfield.lanes_ltr" class="anchor field"></a><code>lanes_ltr: <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><div class="docblock"><p>Invariant: A road must contain at least one child</p>
|
||||
</div><span id="structfield.center_pts" class="structfield small-section-header"><a href="#structfield.center_pts" class="anchor field"></a><code>center_pts: <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code></span><div class="docblock"><p>The physical center of the road, including sidewalks, after trimming. The order implies
|
||||
road orientation. No edits ever change this.</p>
|
||||
</div><span id="structfield.src_i" class="structfield small-section-header"><a href="#structfield.src_i" class="anchor field"></a><code>src_i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.dst_i" class="structfield small-section-header"><a href="#structfield.dst_i" class="anchor field"></a><code>dst_i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#118-390" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.lanes_ltr" class="method"><code>pub fn <a href="#method.lanes_ltr" class="fnname">lanes_ltr</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#121-124" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns all lanes from the left side of the road to right. Left/right is determined by the
|
||||
</div><span id="structfield.src_i" class="structfield small-section-header"><a href="#structfield.src_i" class="anchor field"></a><code>src_i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.dst_i" class="structfield small-section-header"><a href="#structfield.dst_i" class="anchor field"></a><code>dst_i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#118-397" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.lanes_ltr" class="method"><code>pub fn <a href="#method.lanes_ltr" class="fnname">lanes_ltr</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#121-124" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns all lanes from the left side of the road to right. Left/right is determined by the
|
||||
orientation of center_pts.</p>
|
||||
</div><h4 id="method.get_left_side" class="method"><code>pub fn <a href="#method.get_left_side" class="fnname">get_left_side</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#126-128" title="goto source code">[src]</a></h4><h4 id="method.offset" class="method"><code>pub fn <a href="#method.offset" class="fnname">offset</a>(&self, lane: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#131-138" title="goto source code">[src]</a></h4><div class="docblock"><p>Counting from the left side of the road</p>
|
||||
</div><h4 id="method.dir" class="method"><code>pub fn <a href="#method.dir" class="fnname">dir</a>(&self, lane: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#140-147" title="goto source code">[src]</a></h4><h4 id="method.parking_to_driving" class="method"><code>pub fn <a href="#method.parking_to_driving" class="fnname">parking_to_driving</a>(&self, parking: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#149-151" title="goto source code">[src]</a></h4><h4 id="method.speed_limit_from_osm" class="method"><code>pub(crate) fn <a href="#method.speed_limit_from_osm" class="fnname">speed_limit_from_osm</a>(&self) -> <a class="struct" href="../../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#153-184" title="goto source code">[src]</a></h4><h4 id="method.find_closest_lane" class="method"><code>pub fn <a href="#method.find_closest_lane" class="fnname">find_closest_lane</a><F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="struct" href="../../../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>(<br> &self, <br> from: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <br> filter: F, <br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#189-208" title="goto source code">[src]</a></h4><div class="docblock"><p>Includes off-side</p>
|
||||
</div><h4 id="method.all_lanes" class="method"><code>pub fn <a href="#method.all_lanes" class="fnname">all_lanes</a>(&self) -> <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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#210-212" title="goto source code">[src]</a></h4><h4 id="method.get_dir_change_pl" class="method"><code>pub fn <a href="#method.get_dir_change_pl" class="fnname">get_dir_change_pl</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#216-233" title="goto source code">[src]</a></h4><div class="docblock"><p>This is the FIRST yellow line where the direction of the road changes. If multiple direction
|
||||
changes happen, the result is kind of arbitrary.</p>
|
||||
</div><h4 id="method.get_half_width" class="method"><code>pub fn <a href="#method.get_half_width" class="fnname">get_half_width</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#235-241" title="goto source code">[src]</a></h4><h4 id="method.get_thick_polygon" class="method"><code>pub fn <a href="#method.get_thick_polygon" class="fnname">get_thick_polygon</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../../../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#243-246" title="goto source code">[src]</a></h4><h4 id="method.get_name" class="method"><code>pub fn <a href="#method.get_name" class="fnname">get_name</a>(&self, lang: <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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#248-283" title="goto source code">[src]</a></h4><h4 id="method.get_rank" class="method"><code>pub fn <a href="#method.get_rank" class="fnname">get_rank</a>(&self) -> <a class="enum" href="../../../map_model/osm/enum.RoadRank.html" title="enum map_model::osm::RoadRank">RoadRank</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#285-300" title="goto source code">[src]</a></h4><h4 id="method.all_bus_stops" class="method"><code>pub fn <a href="#method.all_bus_stops" class="fnname">all_bus_stops</a>(&self, 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.BusStopID.html" title="struct map_model::BusStopID">BusStopID</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#302-308" title="goto source code">[src]</a></h4><h4 id="method.percent_grade" class="method"><code>pub fn <a href="#method.percent_grade" class="fnname">percent_grade</a>(&self, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#312-326" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns [-1.0, 1.0]. 0 is flat, positive is uphill, negative is downhill.</p>
|
||||
</div><h4 id="method.is_light_rail" class="method"><code>pub fn <a href="#method.is_light_rail" class="fnname">is_light_rail</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#328-330" title="goto source code">[src]</a></h4><h4 id="method.is_footway" class="method"><code>pub fn <a href="#method.is_footway" class="fnname">is_footway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#332-334" title="goto source code">[src]</a></h4><h4 id="method.is_service" class="method"><code>pub fn <a href="#method.is_service" class="fnname">is_service</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#336-338" title="goto source code">[src]</a></h4><h4 id="method.is_cycleway" class="method"><code>pub fn <a href="#method.is_cycleway" class="fnname">is_cycleway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#340-344" title="goto source code">[src]</a></h4><h4 id="method.common_endpt" class="method"><code>pub fn <a href="#method.common_endpt" class="fnname">common_endpt</a>(&self, other: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a>) -> <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#346-354" title="goto source code">[src]</a></h4><h4 id="method.is_private" class="method"><code>pub fn <a href="#method.is_private" class="fnname">is_private</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#356-358" title="goto source code">[src]</a></h4><h4 id="method.access_restrictions_from_osm" class="method"><code>pub(crate) fn <a href="#method.access_restrictions_from_osm" class="fnname">access_restrictions_from_osm</a>(&self) -> <a class="struct" href="../../../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#360-376" title="goto source code">[src]</a></h4><h4 id="method.get_zone" class="method"><code>pub fn <a href="#method.get_zone" class="fnname">get_zone</a><'a>(&self, map: &'a <a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="struct" href="../../../map_model/struct.Zone.html" title="struct map_model::Zone">Zone</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#378-389" title="goto source code">[src]</a></h4></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#395-459" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.children_forwards" class="method"><code>pub(crate) fn <a href="#method.children_forwards" class="fnname">children_forwards</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#398-406" title="goto source code">[src]</a></h4><div class="docblock"><p>These are ordered from closest to center lane (left-most when driving on the right) to
|
||||
</div><h4 id="method.is_light_rail" class="method"><code>pub fn <a href="#method.is_light_rail" class="fnname">is_light_rail</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#328-330" title="goto source code">[src]</a></h4><h4 id="method.is_footway" class="method"><code>pub fn <a href="#method.is_footway" class="fnname">is_footway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#332-334" title="goto source code">[src]</a></h4><h4 id="method.is_service" class="method"><code>pub fn <a href="#method.is_service" class="fnname">is_service</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#336-338" title="goto source code">[src]</a></h4><h4 id="method.is_cycleway" class="method"><code>pub fn <a href="#method.is_cycleway" class="fnname">is_cycleway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#340-344" title="goto source code">[src]</a></h4><h4 id="method.common_endpt" class="method"><code>pub fn <a href="#method.common_endpt" class="fnname">common_endpt</a>(&self, other: &<a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a>) -> <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#346-354" title="goto source code">[src]</a></h4><h4 id="method.is_private" class="method"><code>pub fn <a href="#method.is_private" class="fnname">is_private</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#356-358" title="goto source code">[src]</a></h4><h4 id="method.access_restrictions_from_osm" class="method"><code>pub(crate) fn <a href="#method.access_restrictions_from_osm" class="fnname">access_restrictions_from_osm</a>(&self) -> <a class="struct" href="../../../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#360-376" title="goto source code">[src]</a></h4><h4 id="method.get_zone" class="method"><code>pub fn <a href="#method.get_zone" class="fnname">get_zone</a><'a>(&self, map: &'a <a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="struct" href="../../../map_model/struct.Zone.html" title="struct map_model::Zone">Zone</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#378-389" title="goto source code">[src]</a></h4><h4 id="method.is_extremely_short" class="method"><code>pub fn <a href="#method.is_extremely_short" class="fnname">is_extremely_short</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#394-396" title="goto source code">[src]</a></h4><div class="docblock"><p>Many roads wind up with almost no length, due to their representation in OpenStreetMap. In
|
||||
reality, these segments are likely located within the interior of an intersection. This
|
||||
method uses a hardcoded threshold to detect these cases.</p>
|
||||
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#402-466" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.children_forwards" class="method"><code>pub(crate) fn <a href="#method.children_forwards" class="fnname">children_forwards</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#405-413" title="goto source code">[src]</a></h4><div class="docblock"><p>These are ordered from closest to center lane (left-most when driving on the right) to
|
||||
farthest (sidewalk)</p>
|
||||
</div><h4 id="method.children_backwards" class="method"><code>pub(crate) fn <a href="#method.children_backwards" class="fnname">children_backwards</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#407-416" title="goto source code">[src]</a></h4><h4 id="method.dir_and_offset" class="method"><code>pub(crate) fn <a href="#method.dir_and_offset" class="fnname">dir_and_offset</a>(&self, lane: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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.tuple.html">)</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#420-427" title="goto source code">[src]</a></h4><div class="docblock"><p>lane must belong to this road. Offset 0 is the centermost lane on each side of a road, then
|
||||
</div><h4 id="method.children_backwards" class="method"><code>pub(crate) fn <a href="#method.children_backwards" class="fnname">children_backwards</a>(&self) -> <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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#414-423" title="goto source code">[src]</a></h4><h4 id="method.dir_and_offset" class="method"><code>pub(crate) fn <a href="#method.dir_and_offset" class="fnname">dir_and_offset</a>(&self, lane: <a class="struct" href="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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.tuple.html">)</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#427-434" title="goto source code">[src]</a></h4><div class="docblock"><p>lane must belong to this road. Offset 0 is the centermost lane on each side of a road, then
|
||||
it counts up from there.</p>
|
||||
</div><h4 id="method.children" class="method"><code>pub(crate) fn <a href="#method.children" class="fnname">children</a>(&self, dir: <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#430-436" title="goto source code">[src]</a></h4><h4 id="method.incoming_lanes" class="method"><code>pub(crate) fn <a href="#method.incoming_lanes" class="fnname">incoming_lanes</a>(<br> &self, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#439-447" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.outgoing_lanes" class="method"><code>pub(crate) fn <a href="#method.outgoing_lanes" class="fnname">outgoing_lanes</a>(<br> &self, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#450-458" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.children" class="method"><code>pub(crate) fn <a href="#method.children" class="fnname">children</a>(&self, dir: <a class="enum" href="../../../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#437-443" title="goto source code">[src]</a></h4><h4 id="method.incoming_lanes" class="method"><code>pub(crate) fn <a href="#method.incoming_lanes" class="fnname">incoming_lanes</a>(<br> &self, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#446-454" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.outgoing_lanes" class="method"><code>pub(crate) fn <a href="#method.outgoing_lanes" class="fnname">outgoing_lanes</a>(<br> &self, <br> i: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../../../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#457-465" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div></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-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../../../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `stop_signs` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, stop_signs"><title>map_model::objects::stop_signs - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module stop_signs</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a></p><script>window.sidebarCurrent = {name: "stop_signs", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#1-150" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="">stop_signs</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/objects/stop_signs.rs.html#1-153" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">map_model</a>::<wbr><a href="../index.html">objects</a>::<wbr><a class="mod" href="">stop_signs</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.ControlStopSign.html" title="map_model::objects::stop_signs::ControlStopSign struct">ControlStopSign</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.RoadWithStopSign.html" title="map_model::objects::stop_signs::RoadWithStopSign struct">RoadWithStopSign</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_model";</script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -5,9 +5,9 @@
|
||||
pub id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>,
|
||||
pub roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../../../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../../../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#52-150" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#53-126" title="goto source code">[src]</a></h4><h4 id="method.get_priority" class="method"><code>pub fn <a href="#method.get_priority" class="fnname">get_priority</a>(&self, turn: <a class="struct" href="../../../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="../../../map_model/enum.TurnPriority.html" title="enum map_model::TurnPriority">TurnPriority</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#131-144" title="goto source code">[src]</a></h4><div class="docblock"><p>Get the priority of a turn according to the stop sign -- either protected or yield, never
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../../../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#52-153" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, id: <a class="struct" href="../../../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#53-129" title="goto source code">[src]</a></h4><h4 id="method.get_priority" class="method"><code>pub fn <a href="#method.get_priority" class="fnname">get_priority</a>(&self, turn: <a class="struct" href="../../../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</a>, map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="../../../map_model/enum.TurnPriority.html" title="enum map_model::TurnPriority">TurnPriority</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#134-147" title="goto source code">[src]</a></h4><div class="docblock"><p>Get the priority of a turn according to the stop sign -- either protected or yield, never
|
||||
banned.</p>
|
||||
</div><h4 id="method.flip_sign" class="method"><code>pub fn <a href="#method.flip_sign" class="fnname">flip_sign</a>(&mut self, r: <a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>)</code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#146-149" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" 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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" 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.flip_sign" class="method"><code>pub fn <a href="#method.flip_sign" class="fnname">flip_sign</a>(&mut self, r: <a class="struct" href="../../../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>)</code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#149-152" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" 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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
|
@ -5,9 +5,9 @@
|
||||
pub id: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>,
|
||||
pub roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#52-150" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, id: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#53-126" title="goto source code">[src]</a></h4><h4 id="method.get_priority" class="method"><code>pub fn <a href="#method.get_priority" class="fnname">get_priority</a>(&self, turn: <a class="struct" href="../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</a>, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="../map_model/enum.TurnPriority.html" title="enum map_model::TurnPriority">TurnPriority</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#131-144" title="goto source code">[src]</a></h4><div class="docblock"><p>Get the priority of a turn according to the stop sign -- either protected or yield, never
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.roads" class="structfield small-section-header"><a href="#structfield.roads" class="anchor field"></a><code>roads: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a><<a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>, <a class="struct" href="../map_model/struct.RoadWithStopSign.html" title="struct map_model::RoadWithStopSign">RoadWithStopSign</a>></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#52-153" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, id: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a>) -> <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#53-129" title="goto source code">[src]</a></h4><h4 id="method.get_priority" class="method"><code>pub fn <a href="#method.get_priority" class="fnname">get_priority</a>(&self, turn: <a class="struct" href="../map_model/struct.TurnID.html" title="struct map_model::TurnID">TurnID</a>, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="../map_model/enum.TurnPriority.html" title="enum map_model::TurnPriority">TurnPriority</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#134-147" title="goto source code">[src]</a></h4><div class="docblock"><p>Get the priority of a turn according to the stop sign -- either protected or yield, never
|
||||
banned.</p>
|
||||
</div><h4 id="method.flip_sign" class="method"><code>pub fn <a href="#method.flip_sign" class="fnname">flip_sign</a>(&mut self, r: <a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>)</code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#146-149" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" 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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" 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.flip_sign" class="method"><code>pub fn <a href="#method.flip_sign" class="fnname">flip_sign</a>(&mut self, r: <a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>)</code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#149-152" title="goto source code">[src]</a></h4></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" 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/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../map_model/struct.ControlStopSign.html" title="struct map_model::ControlStopSign">ControlStopSign</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../src/map_model/objects/stop_signs.rs.html#36" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Road` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, Road"><title>map_model::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 id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc 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 Road</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.access_restrictions">access_restrictions</a><a href="#structfield.center_pts">center_pts</a><a href="#structfield.complicated_turn_restrictions">complicated_turn_restrictions</a><a href="#structfield.dst_i">dst_i</a><a href="#structfield.id">id</a><a href="#structfield.lanes_ltr">lanes_ltr</a><a href="#structfield.orig_id">orig_id</a><a href="#structfield.osm_tags">osm_tags</a><a href="#structfield.speed_limit">speed_limit</a><a href="#structfield.src_i">src_i</a><a href="#structfield.turn_restrictions">turn_restrictions</a><a href="#structfield.zorder">zorder</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.access_restrictions_from_osm">access_restrictions_from_osm</a><a href="#method.all_bus_stops">all_bus_stops</a><a href="#method.all_lanes">all_lanes</a><a href="#method.children">children</a><a href="#method.children_backwards">children_backwards</a><a href="#method.children_forwards">children_forwards</a><a href="#method.common_endpt">common_endpt</a><a href="#method.dir">dir</a><a href="#method.dir_and_offset">dir_and_offset</a><a href="#method.find_closest_lane">find_closest_lane</a><a href="#method.get_dir_change_pl">get_dir_change_pl</a><a href="#method.get_half_width">get_half_width</a><a href="#method.get_left_side">get_left_side</a><a href="#method.get_name">get_name</a><a href="#method.get_rank">get_rank</a><a href="#method.get_thick_polygon">get_thick_polygon</a><a href="#method.get_zone">get_zone</a><a href="#method.incoming_lanes">incoming_lanes</a><a href="#method.is_cycleway">is_cycleway</a><a href="#method.is_footway">is_footway</a><a href="#method.is_light_rail">is_light_rail</a><a href="#method.is_private">is_private</a><a href="#method.is_service">is_service</a><a href="#method.lanes_ltr">lanes_ltr</a><a href="#method.offset">offset</a><a href="#method.outgoing_lanes">outgoing_lanes</a><a href="#method.parking_to_driving">parking_to_driving</a><a href="#method.percent_grade">percent_grade</a><a href="#method.speed_limit_from_osm">speed_limit_from_osm</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-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-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></p><script>window.sidebarCurrent = {name: "Road", 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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<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 Road</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.access_restrictions">access_restrictions</a><a href="#structfield.center_pts">center_pts</a><a href="#structfield.complicated_turn_restrictions">complicated_turn_restrictions</a><a href="#structfield.dst_i">dst_i</a><a href="#structfield.id">id</a><a href="#structfield.lanes_ltr">lanes_ltr</a><a href="#structfield.orig_id">orig_id</a><a href="#structfield.osm_tags">osm_tags</a><a href="#structfield.speed_limit">speed_limit</a><a href="#structfield.src_i">src_i</a><a href="#structfield.turn_restrictions">turn_restrictions</a><a href="#structfield.zorder">zorder</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.access_restrictions_from_osm">access_restrictions_from_osm</a><a href="#method.all_bus_stops">all_bus_stops</a><a href="#method.all_lanes">all_lanes</a><a href="#method.children">children</a><a href="#method.children_backwards">children_backwards</a><a href="#method.children_forwards">children_forwards</a><a href="#method.common_endpt">common_endpt</a><a href="#method.dir">dir</a><a href="#method.dir_and_offset">dir_and_offset</a><a href="#method.find_closest_lane">find_closest_lane</a><a href="#method.get_dir_change_pl">get_dir_change_pl</a><a href="#method.get_half_width">get_half_width</a><a href="#method.get_left_side">get_left_side</a><a href="#method.get_name">get_name</a><a href="#method.get_rank">get_rank</a><a href="#method.get_thick_polygon">get_thick_polygon</a><a href="#method.get_zone">get_zone</a><a href="#method.incoming_lanes">incoming_lanes</a><a href="#method.is_cycleway">is_cycleway</a><a href="#method.is_extremely_short">is_extremely_short</a><a href="#method.is_footway">is_footway</a><a href="#method.is_light_rail">is_light_rail</a><a href="#method.is_private">is_private</a><a href="#method.is_service">is_service</a><a href="#method.lanes_ltr">lanes_ltr</a><a href="#method.offset">offset</a><a href="#method.outgoing_lanes">outgoing_lanes</a><a href="#method.parking_to_driving">parking_to_driving</a><a href="#method.percent_grade">percent_grade</a><a href="#method.speed_limit_from_osm">speed_limit_from_osm</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-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-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></p><script>window.sidebarCurrent = {name: "Road", 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!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/map_model/objects/road.rs.html#94-116" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="index.html">map_model</a>::<wbr><a class="struct" href="">Road</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct Road {
|
||||
pub id: <a class="struct" href="../map_model/struct.RoadID.html" title="struct map_model::RoadID">RoadID</a>,
|
||||
pub osm_tags: <a class="struct" href="../abstutil/collections/struct.Tags.html" title="struct abstutil::collections::Tags">Tags</a>,
|
||||
@ -21,19 +21,22 @@
|
||||
</div><span id="structfield.orig_id" class="structfield small-section-header"><a href="#structfield.orig_id" class="anchor field"></a><code>orig_id: <a class="struct" href="../map_model/raw/struct.OriginalRoad.html" title="struct map_model::raw::OriginalRoad">OriginalRoad</a></code></span><span id="structfield.speed_limit" class="structfield small-section-header"><a href="#structfield.speed_limit" class="anchor field"></a><code>speed_limit: <a class="struct" href="../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></code></span><span id="structfield.access_restrictions" class="structfield small-section-header"><a href="#structfield.access_restrictions" class="anchor field"></a><code>access_restrictions: <a class="struct" href="../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code></span><span id="structfield.zorder" class="structfield small-section-header"><a href="#structfield.zorder" class="anchor field"></a><code>zorder: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span id="structfield.lanes_ltr" class="structfield small-section-header"><a href="#structfield.lanes_ltr" class="anchor field"></a><code>lanes_ltr: <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code></span><div class="docblock"><p>Invariant: A road must contain at least one child</p>
|
||||
</div><span id="structfield.center_pts" class="structfield small-section-header"><a href="#structfield.center_pts" class="anchor field"></a><code>center_pts: <a class="struct" href="../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code></span><div class="docblock"><p>The physical center of the road, including sidewalks, after trimming. The order implies
|
||||
road orientation. No edits ever change this.</p>
|
||||
</div><span id="structfield.src_i" class="structfield small-section-header"><a href="#structfield.src_i" class="anchor field"></a><code>src_i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.dst_i" class="structfield small-section-header"><a href="#structfield.dst_i" class="anchor field"></a><code>dst_i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#118-390" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.lanes_ltr" class="method"><code>pub fn <a href="#method.lanes_ltr" class="fnname">lanes_ltr</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#121-124" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns all lanes from the left side of the road to right. Left/right is determined by the
|
||||
</div><span id="structfield.src_i" class="structfield small-section-header"><a href="#structfield.src_i" class="anchor field"></a><code>src_i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><span id="structfield.dst_i" class="structfield small-section-header"><a href="#structfield.dst_i" class="anchor field"></a><code>dst_i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#118-397" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.lanes_ltr" class="method"><code>pub fn <a href="#method.lanes_ltr" class="fnname">lanes_ltr</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#121-124" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns all lanes from the left side of the road to right. Left/right is determined by the
|
||||
orientation of center_pts.</p>
|
||||
</div><h4 id="method.get_left_side" class="method"><code>pub fn <a href="#method.get_left_side" class="fnname">get_left_side</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#126-128" title="goto source code">[src]</a></h4><h4 id="method.offset" class="method"><code>pub fn <a href="#method.offset" class="fnname">offset</a>(&self, lane: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#131-138" title="goto source code">[src]</a></h4><div class="docblock"><p>Counting from the left side of the road</p>
|
||||
</div><h4 id="method.dir" class="method"><code>pub fn <a href="#method.dir" class="fnname">dir</a>(&self, lane: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#140-147" title="goto source code">[src]</a></h4><h4 id="method.parking_to_driving" class="method"><code>pub fn <a href="#method.parking_to_driving" class="fnname">parking_to_driving</a>(&self, parking: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#149-151" title="goto source code">[src]</a></h4><h4 id="method.speed_limit_from_osm" class="method"><code>pub(crate) fn <a href="#method.speed_limit_from_osm" class="fnname">speed_limit_from_osm</a>(&self) -> <a class="struct" href="../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#153-184" title="goto source code">[src]</a></h4><h4 id="method.find_closest_lane" class="method"><code>pub fn <a href="#method.find_closest_lane" class="fnname">find_closest_lane</a><F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&<a class="struct" href="../map_model/struct.Lane.html" title="struct map_model::Lane">Lane</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>(<br> &self, <br> from: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <br> filter: F, <br> map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#189-208" title="goto source code">[src]</a></h4><div class="docblock"><p>Includes off-side</p>
|
||||
</div><h4 id="method.all_lanes" class="method"><code>pub fn <a href="#method.all_lanes" class="fnname">all_lanes</a>(&self) -> <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.LaneID.html" title="struct map_model::LaneID">LaneID</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#210-212" title="goto source code">[src]</a></h4><h4 id="method.get_dir_change_pl" class="method"><code>pub fn <a href="#method.get_dir_change_pl" class="fnname">get_dir_change_pl</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../geom/polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#216-233" title="goto source code">[src]</a></h4><div class="docblock"><p>This is the FIRST yellow line where the direction of the road changes. If multiple direction
|
||||
changes happen, the result is kind of arbitrary.</p>
|
||||
</div><h4 id="method.get_half_width" class="method"><code>pub fn <a href="#method.get_half_width" class="fnname">get_half_width</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#235-241" title="goto source code">[src]</a></h4><h4 id="method.get_thick_polygon" class="method"><code>pub fn <a href="#method.get_thick_polygon" class="fnname">get_thick_polygon</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#243-246" title="goto source code">[src]</a></h4><h4 id="method.get_name" class="method"><code>pub fn <a href="#method.get_name" class="fnname">get_name</a>(&self, lang: <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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#248-283" title="goto source code">[src]</a></h4><h4 id="method.get_rank" class="method"><code>pub fn <a href="#method.get_rank" class="fnname">get_rank</a>(&self) -> <a class="enum" href="../map_model/osm/enum.RoadRank.html" title="enum map_model::osm::RoadRank">RoadRank</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#285-300" title="goto source code">[src]</a></h4><h4 id="method.all_bus_stops" class="method"><code>pub fn <a href="#method.all_bus_stops" class="fnname">all_bus_stops</a>(&self, 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.BusStopID.html" title="struct map_model::BusStopID">BusStopID</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#302-308" title="goto source code">[src]</a></h4><h4 id="method.percent_grade" class="method"><code>pub fn <a href="#method.percent_grade" class="fnname">percent_grade</a>(&self, map: &<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#312-326" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns [-1.0, 1.0]. 0 is flat, positive is uphill, negative is downhill.</p>
|
||||
</div><h4 id="method.is_light_rail" class="method"><code>pub fn <a href="#method.is_light_rail" class="fnname">is_light_rail</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#328-330" title="goto source code">[src]</a></h4><h4 id="method.is_footway" class="method"><code>pub fn <a href="#method.is_footway" class="fnname">is_footway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#332-334" title="goto source code">[src]</a></h4><h4 id="method.is_service" class="method"><code>pub fn <a href="#method.is_service" class="fnname">is_service</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#336-338" title="goto source code">[src]</a></h4><h4 id="method.is_cycleway" class="method"><code>pub fn <a href="#method.is_cycleway" class="fnname">is_cycleway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#340-344" title="goto source code">[src]</a></h4><h4 id="method.common_endpt" class="method"><code>pub fn <a href="#method.common_endpt" class="fnname">common_endpt</a>(&self, other: &<a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a>) -> <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#346-354" title="goto source code">[src]</a></h4><h4 id="method.is_private" class="method"><code>pub fn <a href="#method.is_private" class="fnname">is_private</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#356-358" title="goto source code">[src]</a></h4><h4 id="method.access_restrictions_from_osm" class="method"><code>pub(crate) fn <a href="#method.access_restrictions_from_osm" class="fnname">access_restrictions_from_osm</a>(&self) -> <a class="struct" href="../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#360-376" title="goto source code">[src]</a></h4><h4 id="method.get_zone" class="method"><code>pub fn <a href="#method.get_zone" class="fnname">get_zone</a><'a>(&self, map: &'a <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="struct" href="../map_model/struct.Zone.html" title="struct map_model::Zone">Zone</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#378-389" title="goto source code">[src]</a></h4></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#395-459" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.children_forwards" class="method"><code>pub(crate) fn <a href="#method.children_forwards" class="fnname">children_forwards</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#398-406" title="goto source code">[src]</a></h4><div class="docblock"><p>These are ordered from closest to center lane (left-most when driving on the right) to
|
||||
</div><h4 id="method.is_light_rail" class="method"><code>pub fn <a href="#method.is_light_rail" class="fnname">is_light_rail</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#328-330" title="goto source code">[src]</a></h4><h4 id="method.is_footway" class="method"><code>pub fn <a href="#method.is_footway" class="fnname">is_footway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#332-334" title="goto source code">[src]</a></h4><h4 id="method.is_service" class="method"><code>pub fn <a href="#method.is_service" class="fnname">is_service</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#336-338" title="goto source code">[src]</a></h4><h4 id="method.is_cycleway" class="method"><code>pub fn <a href="#method.is_cycleway" class="fnname">is_cycleway</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#340-344" title="goto source code">[src]</a></h4><h4 id="method.common_endpt" class="method"><code>pub fn <a href="#method.common_endpt" class="fnname">common_endpt</a>(&self, other: &<a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a>) -> <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#346-354" title="goto source code">[src]</a></h4><h4 id="method.is_private" class="method"><code>pub fn <a href="#method.is_private" class="fnname">is_private</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#356-358" title="goto source code">[src]</a></h4><h4 id="method.access_restrictions_from_osm" class="method"><code>pub(crate) fn <a href="#method.access_restrictions_from_osm" class="fnname">access_restrictions_from_osm</a>(&self) -> <a class="struct" href="../map_model/struct.AccessRestrictions.html" title="struct map_model::AccessRestrictions">AccessRestrictions</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#360-376" title="goto source code">[src]</a></h4><h4 id="method.get_zone" class="method"><code>pub fn <a href="#method.get_zone" class="fnname">get_zone</a><'a>(&self, map: &'a <a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a <a class="struct" href="../map_model/struct.Zone.html" title="struct map_model::Zone">Zone</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#378-389" title="goto source code">[src]</a></h4><h4 id="method.is_extremely_short" class="method"><code>pub fn <a href="#method.is_extremely_short" class="fnname">is_extremely_short</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#394-396" title="goto source code">[src]</a></h4><div class="docblock"><p>Many roads wind up with almost no length, due to their representation in OpenStreetMap. In
|
||||
reality, these segments are likely located within the interior of an intersection. This
|
||||
method uses a hardcoded threshold to detect these cases.</p>
|
||||
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#402-466" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.children_forwards" class="method"><code>pub(crate) fn <a href="#method.children_forwards" class="fnname">children_forwards</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#405-413" title="goto source code">[src]</a></h4><div class="docblock"><p>These are ordered from closest to center lane (left-most when driving on the right) to
|
||||
farthest (sidewalk)</p>
|
||||
</div><h4 id="method.children_backwards" class="method"><code>pub(crate) fn <a href="#method.children_backwards" class="fnname">children_backwards</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#407-416" title="goto source code">[src]</a></h4><h4 id="method.dir_and_offset" class="method"><code>pub(crate) fn <a href="#method.dir_and_offset" class="fnname">dir_and_offset</a>(&self, lane: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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.tuple.html">)</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#420-427" title="goto source code">[src]</a></h4><div class="docblock"><p>lane must belong to this road. Offset 0 is the centermost lane on each side of a road, then
|
||||
</div><h4 id="method.children_backwards" class="method"><code>pub(crate) fn <a href="#method.children_backwards" class="fnname">children_backwards</a>(&self) -> <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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#414-423" title="goto source code">[src]</a></h4><h4 id="method.dir_and_offset" class="method"><code>pub(crate) fn <a href="#method.dir_and_offset" class="fnname">dir_and_offset</a>(&self, lane: <a class="struct" href="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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.tuple.html">)</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#427-434" title="goto source code">[src]</a></h4><div class="docblock"><p>lane must belong to this road. Offset 0 is the centermost lane on each side of a road, then
|
||||
it counts up from there.</p>
|
||||
</div><h4 id="method.children" class="method"><code>pub(crate) fn <a href="#method.children" class="fnname">children</a>(&self, dir: <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#430-436" title="goto source code">[src]</a></h4><h4 id="method.incoming_lanes" class="method"><code>pub(crate) fn <a href="#method.incoming_lanes" class="fnname">incoming_lanes</a>(<br> &self, <br> i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#439-447" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.outgoing_lanes" class="method"><code>pub(crate) fn <a href="#method.outgoing_lanes" class="fnname">outgoing_lanes</a>(<br> &self, <br> i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#450-458" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.children" class="method"><code>pub(crate) fn <a href="#method.children" class="fnname">children</a>(&self, dir: <a class="enum" href="../map_model/enum.Direction.html" title="enum map_model::Direction">Direction</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#437-443" title="goto source code">[src]</a></h4><h4 id="method.incoming_lanes" class="method"><code>pub(crate) fn <a href="#method.incoming_lanes" class="fnname">incoming_lanes</a>(<br> &self, <br> i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#446-454" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div><h4 id="method.outgoing_lanes" class="method"><code>pub(crate) fn <a href="#method.outgoing_lanes" class="fnname">outgoing_lanes</a>(<br> &self, <br> i: <a class="struct" href="../map_model/struct.IntersectionID.html" title="struct map_model::IntersectionID">IntersectionID</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="../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>, <a class="enum" href="../map_model/enum.LaneType.html" title="enum map_model::LaneType">LaneType</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a class="srclink" href="../src/map_model/objects/road.rs.html#457-465" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns lanes from the "center" going out</p>
|
||||
</div></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-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.118/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../map_model/struct.Road.html" title="struct map_model::Road">Road</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../src/map_model/objects/road.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.118/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
|
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 `allow_block_the_box` fn in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, allow_block_the_box"><title>sim::mechanics::intersection::allow_block_the_box - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../sim/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">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">intersection</a></p><script>window.sidebarCurrent = {name: "allow_block_the_box", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/intersection.rs.html#960-982" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">intersection</a>::<wbr><a class="fn" href="">allow_block_the_box</a></span></h1><pre class="rust fn">fn allow_block_the_box(i: &<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</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 = "sim";</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/sim/mechanics/intersection.rs.html#960-988" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a href="index.html">intersection</a>::<wbr><a class="fn" href="">allow_block_the_box</a></span></h1><pre class="rust fn">fn allow_block_the_box(i: &<a class="struct" href="../../../map_model/objects/intersection/struct.Intersection.html" title="struct map_model::objects::intersection::Intersection">Intersection</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 = "sim";</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 `intersection` mod in crate `sim`."><meta name="keywords" content="rust, rustlang, rust-lang, intersection"><title>sim::mechanics::intersection - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../sim/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module intersection</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">sim</a>::<wbr><a href="../index.html">mechanics</a></p><script>window.sidebarCurrent = {name: "intersection", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/sim/mechanics/intersection.rs.html#1-982" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a class="mod" href="">intersection</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/sim/mechanics/intersection.rs.html#1-988" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../index.html">sim</a>::<wbr><a href="../index.html">mechanics</a>::<wbr><a class="mod" href="">intersection</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.IntersectionSimState.html" title="sim::mechanics::intersection::IntersectionSimState struct">IntersectionSimState</a></td><td class="docblock-short"><p>Manages conflicts at intersections. When an agent has reached the end of a lane, they call
|
||||
maybe_start_turn to make a Request. Based on the intersection type (stop sign, traffic signal,
|
||||
or a "freeform policy"), the Request gets queued or immediately accepted. When agents finish
|
||||
|
@ -122,7 +122,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.49.0 (e1884a8e3 2020-12-29)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 15 Jan 2021 18:32:16 +0000"</span>;
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Sat, 16 Jan 2021 00:00:28 +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>
|
||||
|
@ -401,6 +401,8 @@
|
||||
<span id="398">398</span>
|
||||
<span id="399">399</span>
|
||||
<span id="400">400</span>
|
||||
<span id="401">401</span>
|
||||
<span id="402">402</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
@ -417,8 +419,10 @@
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">make_all_turns</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="kw-2">&</span><span class="ident">Intersection</span>, <span class="ident">timer</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Timer</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Turn</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">raw_turns</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Turn</span><span class="op">></span> <span class="op">=</span> <span class="ident">Vec</span>::<span class="ident">new</span>();
|
||||
<span class="ident">raw_turns</span>.<span class="ident">extend</span>(<span class="ident">make_vehicle_turns</span>(<span class="ident">i</span>, <span class="ident">map</span>, <span class="ident">timer</span>));
|
||||
<span class="ident">raw_turns</span>.<span class="ident">extend</span>(<span class="kw">crate</span>::<span class="ident">make</span>::<span class="ident">walking_turns</span>::<span class="ident">make_walking_turns</span>(
|
||||
<span class="ident">map</span>, <span class="ident">i</span>, <span class="ident">timer</span>,
|
||||
<span class="ident">raw_turns</span>.<span class="ident">extend</span>(<span class="kw">crate</span>::<span class="ident">make</span>::<span class="ident">walking_turns</span>::<span class="ident">filter_turns</span>(
|
||||
<span class="kw">crate</span>::<span class="ident">make</span>::<span class="ident">walking_turns</span>::<span class="ident">make_walking_turns</span>(<span class="ident">map</span>, <span class="ident">i</span>, <span class="ident">timer</span>),
|
||||
<span class="ident">map</span>,
|
||||
<span class="ident">i</span>,
|
||||
));
|
||||
<span class="kw">let</span> <span class="ident">unique_turns</span> <span class="op">=</span> <span class="ident">ensure_unique</span>(<span class="ident">raw_turns</span>);
|
||||
|
||||
|
@ -501,6 +501,22 @@
|
||||
<span id="498">498</span>
|
||||
<span id="499">499</span>
|
||||
<span id="500">500</span>
|
||||
<span id="501">501</span>
|
||||
<span id="502">502</span>
|
||||
<span id="503">503</span>
|
||||
<span id="504">504</span>
|
||||
<span id="505">505</span>
|
||||
<span id="506">506</span>
|
||||
<span id="507">507</span>
|
||||
<span id="508">508</span>
|
||||
<span id="509">509</span>
|
||||
<span id="510">510</span>
|
||||
<span id="511">511</span>
|
||||
<span id="512">512</span>
|
||||
<span id="513">513</span>
|
||||
<span id="514">514</span>
|
||||
<span id="515">515</span>
|
||||
<span id="516">516</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>;
|
||||
|
||||
@ -653,6 +669,22 @@
|
||||
<span class="ident">result</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Filter out crosswalks on really short roads. In reality, these roads are usually located within</span>
|
||||
<span class="doccomment">/// an intersection, which isn't a valid place for a pedestrian crossing.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">filter_turns</span>(<span class="kw-2">mut</span> <span class="ident">input</span>: <span class="ident">Vec</span><span class="op"><</span><span class="ident">Turn</span><span class="op">></span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="kw-2">&</span><span class="ident">Intersection</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Turn</span><span class="op">></span> {
|
||||
<span class="kw">for</span> <span class="ident">r</span> <span class="kw">in</span> <span class="kw-2">&</span><span class="ident">i</span>.<span class="ident">roads</span> {
|
||||
<span class="kw">if</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">is_extremely_short</span>() {
|
||||
<span class="ident">input</span>.<span class="ident">retain</span>(<span class="op">|</span><span class="ident">t</span><span class="op">|</span> {
|
||||
<span class="op">!</span>(<span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">t</span>.<span class="ident">id</span>.<span class="ident">src</span>).<span class="ident">parent</span> <span class="op">=</span><span class="op">=</span> <span class="kw-2">*</span><span class="ident">r</span>
|
||||
<span class="op">&&</span> <span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">t</span>.<span class="ident">id</span>.<span class="ident">dst</span>).<span class="ident">parent</span> <span class="op">=</span><span class="op">=</span> <span class="kw-2">*</span><span class="ident">r</span>
|
||||
<span class="op">&&</span> <span class="ident">t</span>.<span class="ident">turn_type</span> <span class="op">=</span><span class="op">=</span> <span class="ident">TurnType</span>::<span class="ident">Crosswalk</span>)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
<span class="ident">input</span>
|
||||
}
|
||||
|
||||
<span class="comment">// TODO Need to filter out extraneous crosswalks. Why weren't they being created before?</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">_make_walking_turns_v2</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>, <span class="ident">i</span>: <span class="kw-2">&</span><span class="ident">Intersection</span>, <span class="ident">timer</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Timer</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Vec</span><span class="op"><</span><span class="ident">Turn</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">driving_side</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">config</span>.<span class="ident">driving_side</span>;
|
||||
|
@ -460,6 +460,13 @@
|
||||
<span id="457">457</span>
|
||||
<span id="458">458</span>
|
||||
<span id="459">459</span>
|
||||
<span id="460">460</span>
|
||||
<span id="461">461</span>
|
||||
<span id="462">462</span>
|
||||
<span id="463">463</span>
|
||||
<span id="464">464</span>
|
||||
<span id="465">465</span>
|
||||
<span id="466">466</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">fmt</span>;
|
||||
|
||||
@ -850,6 +857,13 @@
|
||||
.<span class="ident">unwrap</span>(),
|
||||
)
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Many roads wind up with almost no length, due to their representation in OpenStreetMap. In</span>
|
||||
<span class="doccomment">/// reality, these segments are likely located within the interior of an intersection. This</span>
|
||||
<span class="doccomment">/// method uses a hardcoded threshold to detect these cases.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">is_extremely_short</span>(<span class="kw-2">&</span><span class="self">self</span>) <span class="op">-</span><span class="op">></span> <span class="ident">bool</span> {
|
||||
<span class="self">self</span>.<span class="ident">center_pts</span>.<span class="ident">length</span>() <span class="op"><</span> <span class="ident">Distance</span>::<span class="ident">meters</span>(<span class="number">2.0</span>)
|
||||
}
|
||||
}
|
||||
|
||||
<span class="comment">// TODO All of this is kind of deprecated? During the transiton towards lanes_ltr, some pieces</span>
|
||||
|
@ -151,6 +151,9 @@
|
||||
<span id="148">148</span>
|
||||
<span id="149">149</span>
|
||||
<span id="150">150</span>
|
||||
<span id="151">151</span>
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">HashMap</span>};
|
||||
|
||||
@ -273,7 +276,10 @@
|
||||
<span class="comment">// highest-priority roads.</span>
|
||||
<span class="kw">for</span> (<span class="ident">r</span>, <span class="ident">cfg</span>) <span class="kw">in</span> <span class="ident">ss</span>.<span class="ident">roads</span>.<span class="ident">iter_mut</span>() {
|
||||
<span class="kw">if</span> <span class="ident">ranks</span>.<span class="ident">len</span>() <span class="op">=</span><span class="op">=</span> <span class="number">1</span> <span class="op">|</span><span class="op">|</span> <span class="ident">rank</span>[<span class="ident">r</span>] <span class="op">!</span><span class="op">=</span> <span class="ident">ranks</span>[<span class="number">0</span>] {
|
||||
<span class="ident">cfg</span>.<span class="ident">must_stop</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
<span class="comment">// Don't stop in the middle of something that's likely actually an intersection.</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">is_extremely_short</span>() {
|
||||
<span class="ident">cfg</span>.<span class="ident">must_stop</span> <span class="op">=</span> <span class="bool-val">true</span>;
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="ident">ss</span>
|
||||
|
@ -983,6 +983,12 @@
|
||||
<span id="980">980</span>
|
||||
<span id="981">981</span>
|
||||
<span id="982">982</span>
|
||||
<span id="983">983</span>
|
||||
<span id="984">984</span>
|
||||
<span id="985">985</span>
|
||||
<span id="986">986</span>
|
||||
<span id="987">987</span>
|
||||
<span id="988">988</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BTreeMap</span>, <span class="ident">BTreeSet</span>, <span class="ident">HashMap</span>, <span class="ident">HashSet</span>};
|
||||
|
||||
@ -1961,7 +1967,13 @@
|
||||
<span class="comment">// helps.</span>
|
||||
<span class="kw">let</span> <span class="ident">id</span> <span class="op">=</span> <span class="ident">i</span>.<span class="ident">orig_id</span>.<span class="number">0</span>;
|
||||
<span class="comment">// lakeslice</span>
|
||||
<span class="kw">if</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53211693</span> <span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53214134</span> <span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53214133</span> <span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">987334546</span> <span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">848817336</span> {
|
||||
<span class="kw">if</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53211693</span>
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53214134</span>
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">53214133</span>
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">987334546</span>
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">848817336</span>
|
||||
<span class="op">|</span><span class="op">|</span> <span class="ident">id</span> <span class="op">=</span><span class="op">=</span> <span class="number">1726088131</span>
|
||||
{
|
||||
<span class="kw">return</span> <span class="bool-val">true</span>;
|
||||
}
|
||||
<span class="bool-val">false</span>
|
||||
|
Loading…
Reference in New Issue
Block a user