mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
deploy: 8beb2d9215
This commit is contained in:
parent
5c01130626
commit
5a15644f82
@ -2,12 +2,12 @@
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum Options</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Biking">Biking</a><a href="#variant.Walking">Walking</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>isochrone</a></p><script>window.sidebarCurrent = {name: 'Options', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/isochrone.rs.html#34-37' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>isochrone</a>::<wbr><a class="enum" href=''>Options</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum Options {
|
||||
Walking(<a class="struct" href="../../map_model/pathfind/dijkstra/struct.WalkingOptions.html" title="struct map_model::pathfind::dijkstra::WalkingOptions">WalkingOptions</a>),
|
||||
Walking(<a class="struct" href="../../map_model/connectivity/walking/struct.WalkingOptions.html" title="struct map_model::connectivity::walking::WalkingOptions">WalkingOptions</a>),
|
||||
Biking,
|
||||
}</pre></div><div class='docblock'><p>The constraints on how we're moving.</p>
|
||||
</div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<div id="variant.Walking" class="variant small-section-header"><a href="#variant.Walking" class="anchor field"></a><code>Walking(<a class="struct" href="../../map_model/pathfind/dijkstra/struct.WalkingOptions.html" title="struct map_model::pathfind::dijkstra::WalkingOptions">WalkingOptions</a>)</code></div><div id="variant.Biking" class="variant small-section-header"><a href="#variant.Biking" class="anchor field"></a><code>Biking</code></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/isochrone.rs.html#33' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a class='srclink' href='../../src/fifteen_min/isochrone.rs.html#33' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
<div id="variant.Walking" class="variant small-section-header"><a href="#variant.Walking" class="anchor field"></a><code>Walking(<a class="struct" href="../../map_model/connectivity/walking/struct.WalkingOptions.html" title="struct map_model::connectivity::walking::WalkingOptions">WalkingOptions</a>)</code></div><div id="variant.Biking" class="variant small-section-header"><a href="#variant.Biking" class="anchor field"></a><code>Biking</code></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/fifteen_min/isochrone.rs.html#33' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a class='srclink' href='../../src/fifteen_min/isochrone.rs.html#33' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
@ -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 `build_panel` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, build_panel"><title>fifteen_min::viewer::build_panel - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../fifteen_min/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'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'build_panel', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#209-276' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>build_panel</a></span></h1><pre class='rust fn'>fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#210-277' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>build_panel</a></span></h1><pre class='rust fn'>fn build_panel(<br> ctx: &mut EventCtx<'_>, <br> app: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <br> start: &<a class="struct" href="../../map_model/objects/building/struct.Building.html" title="struct map_model::objects::building::Building">Building</a>, <br> isochrone: &<a class="struct" href="../../fifteen_min/isochrone/struct.Isochrone.html" title="struct fifteen_min::isochrone::Isochrone">Isochrone</a><br>) -> Panel</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `draw_star` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, draw_star"><title>fifteen_min::viewer::draw_star - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../fifteen_min/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'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'draw_star', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#201-207' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>draw_star</a></span></h1><pre class='rust fn'>fn draw_star(ctx: &mut EventCtx<'_>, center: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#202-208' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>draw_star</a></span></h1><pre class='rust fn'>fn draw_star(ctx: &mut EventCtx<'_>, center: <a class="struct" href="../../geom/pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -> Drawable</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `options_from_controls` fn in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, options_from_controls"><title>fifteen_min::viewer::options_from_controls - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../fifteen_min/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'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'options_from_controls', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#189-199' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>options_from_controls</a></span></h1><pre class='rust fn'>fn options_from_controls(panel: &Panel) -> <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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/fifteen_min/viewer.rs.html#189-200' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="fn" href=''>options_from_controls</a></span></h1><pre class='rust fn'>fn options_from_controls(panel: &Panel) -> <a class="enum" href="../../fifteen_min/isochrone/enum.Options.html" title="enum fifteen_min::isochrone::Options">Options</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `viewer` mod in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, viewer"><title>fifteen_min::viewer - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script 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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module viewer</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>fifteen_min</a></p><script>window.sidebarCurrent = {name: 'viewer', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#1-461' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>fifteen_min</a>::<wbr><a class="mod" href=''>viewer</a></span></h1><div class='docblock'><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
<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/fifteen_min/viewer.rs.html#1-462' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>fifteen_min</a>::<wbr><a class="mod" href=''>viewer</a></span></h1><div class='docblock'><p>This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your
|
||||
daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public
|
||||
transit ride of your home?</p>
|
||||
<p>See https://github.com/dabreegster/abstreet/issues/393 for more context.</p>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Entry` struct in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, Entry"><title>fifteen_min::viewer::Entry - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Entry</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.address">address</a><a href="#structfield.bldg">bldg</a><a href="#structfield.category">category</a><a href="#structfield.duration_away">duration_away</a><a href="#structfield.name">name</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'Entry', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#339-345' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Entry {
|
||||
<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/fifteen_min/viewer.rs.html#340-346' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>Entry</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Entry {
|
||||
bldg: <a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>,
|
||||
name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
category: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `HoverKey` type in crate `fifteen_min`."><meta name="keywords" content="rust, rustlang, rust-lang, HoverKey"><title>fifteen_min::viewer::HoverKey - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[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='../../fifteen_min/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Type Definition HoverKey</p><div class="sidebar-elems"><p class='location'><a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'HoverKey', ty: 'type', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/fifteen_min/viewer.rs.html#283' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>HoverKey</a></span></h1><pre class='rust typedef'>type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class='docblock'><p>(building, scale factor)</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/fifteen_min/viewer.rs.html#284' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>fifteen_min</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>HoverKey</a></span></h1><pre class='rust typedef'>type HoverKey = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../map_model/objects/building/struct.BuildingID.html" title="struct map_model::objects::building::BuildingID">BuildingID</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</pre><div class='docblock'><p>(building, scale factor)</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "fifteen_min";</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 `BUILT_TIME_UTC` constant in crate `game`."><meta name="keywords" content="rust, rustlang, rust-lang, BUILT_TIME_UTC"><title>game::pregame::built_info::BUILT_TIME_UTC - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../game/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a></p><script>window.sidebarCurrent = {name: 'BUILT_TIME_UTC', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 25 Dec 2020 00:07:27 +0000";</pre><div class='docblock'><p>The built-time in RFC2822, UTC</p>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/game/home/runner/work/abstreet/abstreet/target/debug/build/game-c1f324f9d3d7e3b2/out/built.rs.html#53' title='goto source code'>[src]</a></span><span class='in-band'>Constant <a href='../../index.html'>game</a>::<wbr><a href='../index.html'>pregame</a>::<wbr><a href='index.html'>built_info</a>::<wbr><a class="constant" href=''>BUILT_TIME_UTC</a></span></h1><pre class='rust const'>pub const BUILT_TIME_UTC: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "Fri, 25 Dec 2020 00:44:03 +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>
|
@ -8,7 +8,7 @@ implementors["geom"] = [{"text":"impl Clone for Angle","synthetic":false,"types"
|
||||
implementors["kml"] = [{"text":"impl Clone for ExtraShape","synthetic":false,"types":[]}];
|
||||
implementors["map_editor"] = [{"text":"impl Clone for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl Clone for ColorSchemeChoice","synthetic":false,"types":[]},{"text":"impl Clone for Options","synthetic":false,"types":[]},{"text":"impl Clone for TrafficSignalStyle","synthetic":false,"types":[]},{"text":"impl Clone for CameraAngle","synthetic":false,"types":[]},{"text":"impl Clone for UnzoomedAgents","synthetic":false,"types":[]},{"text":"impl Clone for HeatmapOptions","synthetic":false,"types":[]},{"text":"impl Clone for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Clone for PermanentMapEdits","synthetic":false,"types":[]},{"text":"impl Clone for PermanentEditIntersection","synthetic":false,"types":[]},{"text":"impl Clone for PermanentEditCmd","synthetic":false,"types":[]},{"text":"impl Clone for MapEdits","synthetic":false,"types":[]},{"text":"impl Clone for EditIntersection","synthetic":false,"types":[]},{"text":"impl Clone for EditRoad","synthetic":false,"types":[]},{"text":"impl Clone for EditCmd","synthetic":false,"types":[]},{"text":"impl Clone for Partition","synthetic":false,"types":[]},{"text":"impl Clone for MapConfig","synthetic":false,"types":[]},{"text":"impl Clone for DrivingSide","synthetic":false,"types":[]},{"text":"impl Clone for AreaID","synthetic":false,"types":[]},{"text":"impl Clone for AreaType","synthetic":false,"types":[]},{"text":"impl Clone for BuildingID","synthetic":false,"types":[]},{"text":"impl Clone for Amenity","synthetic":false,"types":[]},{"text":"impl Clone for OffstreetParking","synthetic":false,"types":[]},{"text":"impl Clone for BuildingType","synthetic":false,"types":[]},{"text":"impl Clone for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Clone for BusStopID","synthetic":false,"types":[]},{"text":"impl Clone for BusRouteID","synthetic":false,"types":[]},{"text":"impl Clone for BusStop","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionID","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionType","synthetic":false,"types":[]},{"text":"impl Clone for LaneID","synthetic":false,"types":[]},{"text":"impl Clone for LaneType","synthetic":false,"types":[]},{"text":"impl Clone for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Clone for RoadID","synthetic":false,"types":[]},{"text":"impl Clone for Direction","synthetic":false,"types":[]},{"text":"impl Clone for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Clone for ControlStopSign","synthetic":false,"types":[]},{"text":"impl Clone for RoadWithStopSign","synthetic":false,"types":[]},{"text":"impl Clone for ControlTrafficSignal","synthetic":false,"types":[]},{"text":"impl Clone for Stage","synthetic":false,"types":[]},{"text":"impl Clone for PhaseType","synthetic":false,"types":[]},{"text":"impl Clone for TurnID","synthetic":false,"types":[]},{"text":"impl Clone for TurnType","synthetic":false,"types":[]},{"text":"impl Clone for TurnPriority","synthetic":false,"types":[]},{"text":"impl Clone for Turn","synthetic":false,"types":[]},{"text":"impl Clone for MovementID","synthetic":false,"types":[]},{"text":"impl Clone for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Clone for Movement","synthetic":false,"types":[]},{"text":"impl Clone for AccessRestrictions","synthetic":false,"types":[]},{"text":"impl Clone for RoadRank","synthetic":false,"types":[]},{"text":"impl Clone for NodeID","synthetic":false,"types":[]},{"text":"impl Clone for WayID","synthetic":false,"types":[]},{"text":"impl Clone for RelationID","synthetic":false,"types":[]},{"text":"impl Clone for OsmID","synthetic":false,"types":[]},{"text":"impl Clone for WalkingOptions","synthetic":false,"types":[]},{"text":"impl Clone for Node","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionCluster","synthetic":false,"types":[]},{"text":"impl Clone for UberTurn","synthetic":false,"types":[]},{"text":"impl Clone for WalkingNode","synthetic":false,"types":[]},{"text":"impl Clone for PathStep","synthetic":false,"types":[]},{"text":"impl Clone for Path","synthetic":false,"types":[]},{"text":"impl Clone for PathConstraints","synthetic":false,"types":[]},{"text":"impl Clone for PathRequest","synthetic":false,"types":[]},{"text":"impl Clone for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Clone for RawRoad","synthetic":false,"types":[]},{"text":"impl Clone for RawIntersection","synthetic":false,"types":[]},{"text":"impl Clone for RawBuilding","synthetic":false,"types":[]},{"text":"impl Clone for RawArea","synthetic":false,"types":[]},{"text":"impl Clone for RawParkingLot","synthetic":false,"types":[]},{"text":"impl Clone for RestrictionType","synthetic":false,"types":[]},{"text":"impl Clone for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Clone for Position","synthetic":false,"types":[]},{"text":"impl Clone for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Clone for WalkingOptions","synthetic":false,"types":[]},{"text":"impl Clone for PermanentMapEdits","synthetic":false,"types":[]},{"text":"impl Clone for PermanentEditIntersection","synthetic":false,"types":[]},{"text":"impl Clone for PermanentEditCmd","synthetic":false,"types":[]},{"text":"impl Clone for MapEdits","synthetic":false,"types":[]},{"text":"impl Clone for EditIntersection","synthetic":false,"types":[]},{"text":"impl Clone for EditRoad","synthetic":false,"types":[]},{"text":"impl Clone for EditCmd","synthetic":false,"types":[]},{"text":"impl Clone for Partition","synthetic":false,"types":[]},{"text":"impl Clone for MapConfig","synthetic":false,"types":[]},{"text":"impl Clone for DrivingSide","synthetic":false,"types":[]},{"text":"impl Clone for AreaID","synthetic":false,"types":[]},{"text":"impl Clone for AreaType","synthetic":false,"types":[]},{"text":"impl Clone for BuildingID","synthetic":false,"types":[]},{"text":"impl Clone for Amenity","synthetic":false,"types":[]},{"text":"impl Clone for OffstreetParking","synthetic":false,"types":[]},{"text":"impl Clone for BuildingType","synthetic":false,"types":[]},{"text":"impl Clone for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Clone for BusStopID","synthetic":false,"types":[]},{"text":"impl Clone for BusRouteID","synthetic":false,"types":[]},{"text":"impl Clone for BusStop","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionID","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionType","synthetic":false,"types":[]},{"text":"impl Clone for LaneID","synthetic":false,"types":[]},{"text":"impl Clone for LaneType","synthetic":false,"types":[]},{"text":"impl Clone for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Clone for RoadID","synthetic":false,"types":[]},{"text":"impl Clone for Direction","synthetic":false,"types":[]},{"text":"impl Clone for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Clone for ControlStopSign","synthetic":false,"types":[]},{"text":"impl Clone for RoadWithStopSign","synthetic":false,"types":[]},{"text":"impl Clone for ControlTrafficSignal","synthetic":false,"types":[]},{"text":"impl Clone for Stage","synthetic":false,"types":[]},{"text":"impl Clone for PhaseType","synthetic":false,"types":[]},{"text":"impl Clone for TurnID","synthetic":false,"types":[]},{"text":"impl Clone for TurnType","synthetic":false,"types":[]},{"text":"impl Clone for TurnPriority","synthetic":false,"types":[]},{"text":"impl Clone for Turn","synthetic":false,"types":[]},{"text":"impl Clone for MovementID","synthetic":false,"types":[]},{"text":"impl Clone for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Clone for Movement","synthetic":false,"types":[]},{"text":"impl Clone for AccessRestrictions","synthetic":false,"types":[]},{"text":"impl Clone for RoadRank","synthetic":false,"types":[]},{"text":"impl Clone for NodeID","synthetic":false,"types":[]},{"text":"impl Clone for WayID","synthetic":false,"types":[]},{"text":"impl Clone for RelationID","synthetic":false,"types":[]},{"text":"impl Clone for OsmID","synthetic":false,"types":[]},{"text":"impl Clone for Node","synthetic":false,"types":[]},{"text":"impl Clone for IntersectionCluster","synthetic":false,"types":[]},{"text":"impl Clone for UberTurn","synthetic":false,"types":[]},{"text":"impl Clone for WalkingNode","synthetic":false,"types":[]},{"text":"impl Clone for PathStep","synthetic":false,"types":[]},{"text":"impl Clone for Path","synthetic":false,"types":[]},{"text":"impl Clone for PathConstraints","synthetic":false,"types":[]},{"text":"impl Clone for PathRequest","synthetic":false,"types":[]},{"text":"impl Clone for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Clone for RawRoad","synthetic":false,"types":[]},{"text":"impl Clone for RawIntersection","synthetic":false,"types":[]},{"text":"impl Clone for RawBuilding","synthetic":false,"types":[]},{"text":"impl Clone for RawArea","synthetic":false,"types":[]},{"text":"impl Clone for RawParkingLot","synthetic":false,"types":[]},{"text":"impl Clone for RestrictionType","synthetic":false,"types":[]},{"text":"impl Clone for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Clone for Position","synthetic":false,"types":[]},{"text":"impl Clone for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["parking_mapper"] = [{"text":"impl Clone for Show","synthetic":false,"types":[]},{"text":"impl Clone for Value","synthetic":false,"types":[]}];
|
||||
implementors["popdat"] = [{"text":"impl Clone for Activity","synthetic":false,"types":[]}];
|
||||
implementors["santa"] = [{"text":"impl Clone for BldgState","synthetic":false,"types":[]},{"text":"impl Clone for Level","synthetic":false,"types":[]},{"text":"impl Clone for On","synthetic":false,"types":[]}];
|
||||
|
@ -5,7 +5,7 @@ implementors["game"] = [{"text":"impl Eq for Loc","synthetic":false,"types":[]},
|
||||
implementors["geom"] = [{"text":"impl Eq for Distance","synthetic":false,"types":[]},{"text":"impl Eq for Duration","synthetic":false,"types":[]},{"text":"impl Eq for LonLat","synthetic":false,"types":[]},{"text":"impl Eq for HashablePt2D","synthetic":false,"types":[]},{"text":"impl Eq for Statistic","synthetic":false,"types":[]},{"text":"impl Eq for Time","synthetic":false,"types":[]}];
|
||||
implementors["map_editor"] = [{"text":"impl Eq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl Eq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Eq for AreaID","synthetic":false,"types":[]},{"text":"impl Eq for AreaType","synthetic":false,"types":[]},{"text":"impl Eq for BuildingID","synthetic":false,"types":[]},{"text":"impl Eq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Eq for BusStopID","synthetic":false,"types":[]},{"text":"impl Eq for BusRouteID","synthetic":false,"types":[]},{"text":"impl Eq for IntersectionID","synthetic":false,"types":[]},{"text":"impl Eq for IntersectionType","synthetic":false,"types":[]},{"text":"impl Eq for LaneID","synthetic":false,"types":[]},{"text":"impl Eq for LaneType","synthetic":false,"types":[]},{"text":"impl Eq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Eq for RoadID","synthetic":false,"types":[]},{"text":"impl Eq for Direction","synthetic":false,"types":[]},{"text":"impl Eq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Eq for TurnID","synthetic":false,"types":[]},{"text":"impl Eq for TurnType","synthetic":false,"types":[]},{"text":"impl Eq for MovementID","synthetic":false,"types":[]},{"text":"impl Eq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Eq for RoadRank","synthetic":false,"types":[]},{"text":"impl Eq for NodeID","synthetic":false,"types":[]},{"text":"impl Eq for WayID","synthetic":false,"types":[]},{"text":"impl Eq for RelationID","synthetic":false,"types":[]},{"text":"impl Eq for OsmID","synthetic":false,"types":[]},{"text":"impl Eq for Node","synthetic":false,"types":[]},{"text":"impl Eq for WalkingNode","synthetic":false,"types":[]},{"text":"impl Eq for PathStep","synthetic":false,"types":[]},{"text":"impl Eq for PathConstraints","synthetic":false,"types":[]},{"text":"impl Eq for PathRequest","synthetic":false,"types":[]},{"text":"impl Eq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Eq for RestrictionType","synthetic":false,"types":[]},{"text":"impl Eq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Eq for Position","synthetic":false,"types":[]},{"text":"impl Eq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Eq for Item","synthetic":false,"types":[]},{"text":"impl Eq for AreaID","synthetic":false,"types":[]},{"text":"impl Eq for AreaType","synthetic":false,"types":[]},{"text":"impl Eq for BuildingID","synthetic":false,"types":[]},{"text":"impl Eq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Eq for BusStopID","synthetic":false,"types":[]},{"text":"impl Eq for BusRouteID","synthetic":false,"types":[]},{"text":"impl Eq for IntersectionID","synthetic":false,"types":[]},{"text":"impl Eq for IntersectionType","synthetic":false,"types":[]},{"text":"impl Eq for LaneID","synthetic":false,"types":[]},{"text":"impl Eq for LaneType","synthetic":false,"types":[]},{"text":"impl Eq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Eq for RoadID","synthetic":false,"types":[]},{"text":"impl Eq for Direction","synthetic":false,"types":[]},{"text":"impl Eq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Eq for TurnID","synthetic":false,"types":[]},{"text":"impl Eq for TurnType","synthetic":false,"types":[]},{"text":"impl Eq for MovementID","synthetic":false,"types":[]},{"text":"impl Eq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Eq for RoadRank","synthetic":false,"types":[]},{"text":"impl Eq for NodeID","synthetic":false,"types":[]},{"text":"impl Eq for WayID","synthetic":false,"types":[]},{"text":"impl Eq for RelationID","synthetic":false,"types":[]},{"text":"impl Eq for OsmID","synthetic":false,"types":[]},{"text":"impl Eq for Node","synthetic":false,"types":[]},{"text":"impl Eq for WalkingNode","synthetic":false,"types":[]},{"text":"impl Eq for PathStep","synthetic":false,"types":[]},{"text":"impl Eq for PathConstraints","synthetic":false,"types":[]},{"text":"impl Eq for PathRequest","synthetic":false,"types":[]},{"text":"impl Eq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Eq for RestrictionType","synthetic":false,"types":[]},{"text":"impl Eq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Eq for Position","synthetic":false,"types":[]},{"text":"impl Eq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["popdat"] = [{"text":"impl Eq for Activity","synthetic":false,"types":[]}];
|
||||
implementors["sim"] = [{"text":"impl Eq for ScenarioModifier","synthetic":false,"types":[]},{"text":"impl Eq for TripEndpoint","synthetic":false,"types":[]},{"text":"impl Eq for Request","synthetic":false,"types":[]},{"text":"impl Eq for Cmd","synthetic":false,"types":[]},{"text":"impl Eq for CarStatus","synthetic":false,"types":[]},{"text":"impl Eq for CommandType","synthetic":false,"types":[]},{"text":"impl Eq for SimpleCommandType","synthetic":false,"types":[]},{"text":"impl Eq for Item","synthetic":false,"types":[]},{"text":"impl Eq for DelayCause","synthetic":false,"types":[]},{"text":"impl Eq for TripMode","synthetic":false,"types":[]},{"text":"impl Eq for CarID","synthetic":false,"types":[]},{"text":"impl Eq for PedestrianID","synthetic":false,"types":[]},{"text":"impl Eq for AgentID","synthetic":false,"types":[]},{"text":"impl Eq for AgentType","synthetic":false,"types":[]},{"text":"impl Eq for TripID","synthetic":false,"types":[]},{"text":"impl Eq for PersonID","synthetic":false,"types":[]},{"text":"impl Eq for OrigPersonID","synthetic":false,"types":[]},{"text":"impl Eq for VehicleType","synthetic":false,"types":[]},{"text":"impl Eq for ParkingSpot","synthetic":false,"types":[]},{"text":"impl Eq for DrivingGoal","synthetic":false,"types":[]},{"text":"impl Eq for SidewalkPOI","synthetic":false,"types":[]}];
|
||||
implementors["widgetry"] = [{"text":"impl Eq for Key","synthetic":false,"types":[]},{"text":"impl Eq for MultiKey","synthetic":false,"types":[]},{"text":"impl Eq for Font","synthetic":false,"types":[]}];
|
||||
|
@ -3,7 +3,7 @@ implementors["abstutil"] = [{"text":"impl Ord for MapName","synthetic":false,"ty
|
||||
implementors["game"] = [{"text":"impl Ord for Loc","synthetic":false,"types":[]},{"text":"impl Ord for TutorialPointer","synthetic":false,"types":[]},{"text":"impl Ord for GameplayMode","synthetic":false,"types":[]}];
|
||||
implementors["geom"] = [{"text":"impl Ord for Distance","synthetic":false,"types":[]},{"text":"impl Ord for Duration","synthetic":false,"types":[]},{"text":"impl Ord for LonLat","synthetic":false,"types":[]},{"text":"impl Ord for HashablePt2D","synthetic":false,"types":[]},{"text":"impl Ord for Statistic","synthetic":false,"types":[]},{"text":"impl Ord for Time","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl Ord for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Ord for AreaID","synthetic":false,"types":[]},{"text":"impl Ord for BuildingID","synthetic":false,"types":[]},{"text":"impl Ord for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Ord for BusStopID","synthetic":false,"types":[]},{"text":"impl Ord for BusRouteID","synthetic":false,"types":[]},{"text":"impl Ord for IntersectionID","synthetic":false,"types":[]},{"text":"impl Ord for LaneID","synthetic":false,"types":[]},{"text":"impl Ord for LaneType","synthetic":false,"types":[]},{"text":"impl Ord for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Ord for RoadID","synthetic":false,"types":[]},{"text":"impl Ord for Direction","synthetic":false,"types":[]},{"text":"impl Ord for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Ord for TurnID","synthetic":false,"types":[]},{"text":"impl Ord for TurnType","synthetic":false,"types":[]},{"text":"impl Ord for MovementID","synthetic":false,"types":[]},{"text":"impl Ord for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Ord for RoadRank","synthetic":false,"types":[]},{"text":"impl Ord for NodeID","synthetic":false,"types":[]},{"text":"impl Ord for WayID","synthetic":false,"types":[]},{"text":"impl Ord for RelationID","synthetic":false,"types":[]},{"text":"impl Ord for OsmID","synthetic":false,"types":[]},{"text":"impl Ord for Node","synthetic":false,"types":[]},{"text":"impl Ord for WalkingNode","synthetic":false,"types":[]},{"text":"impl Ord for PathStep","synthetic":false,"types":[]},{"text":"impl Ord for PathConstraints","synthetic":false,"types":[]},{"text":"impl Ord for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Ord for RestrictionType","synthetic":false,"types":[]},{"text":"impl Ord for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Ord for Position","synthetic":false,"types":[]},{"text":"impl Ord for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl Ord for Item","synthetic":false,"types":[]},{"text":"impl Ord for AreaID","synthetic":false,"types":[]},{"text":"impl Ord for BuildingID","synthetic":false,"types":[]},{"text":"impl Ord for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl Ord for BusStopID","synthetic":false,"types":[]},{"text":"impl Ord for BusRouteID","synthetic":false,"types":[]},{"text":"impl Ord for IntersectionID","synthetic":false,"types":[]},{"text":"impl Ord for LaneID","synthetic":false,"types":[]},{"text":"impl Ord for LaneType","synthetic":false,"types":[]},{"text":"impl Ord for ParkingLotID","synthetic":false,"types":[]},{"text":"impl Ord for RoadID","synthetic":false,"types":[]},{"text":"impl Ord for Direction","synthetic":false,"types":[]},{"text":"impl Ord for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl Ord for TurnID","synthetic":false,"types":[]},{"text":"impl Ord for TurnType","synthetic":false,"types":[]},{"text":"impl Ord for MovementID","synthetic":false,"types":[]},{"text":"impl Ord for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl Ord for RoadRank","synthetic":false,"types":[]},{"text":"impl Ord for NodeID","synthetic":false,"types":[]},{"text":"impl Ord for WayID","synthetic":false,"types":[]},{"text":"impl Ord for RelationID","synthetic":false,"types":[]},{"text":"impl Ord for OsmID","synthetic":false,"types":[]},{"text":"impl Ord for Node","synthetic":false,"types":[]},{"text":"impl Ord for WalkingNode","synthetic":false,"types":[]},{"text":"impl Ord for PathStep","synthetic":false,"types":[]},{"text":"impl Ord for PathConstraints","synthetic":false,"types":[]},{"text":"impl Ord for OriginalRoad","synthetic":false,"types":[]},{"text":"impl Ord for RestrictionType","synthetic":false,"types":[]},{"text":"impl Ord for TurnRestriction","synthetic":false,"types":[]},{"text":"impl Ord for Position","synthetic":false,"types":[]},{"text":"impl Ord for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["sim"] = [{"text":"impl Ord for ScenarioModifier","synthetic":false,"types":[]},{"text":"impl Ord for TripEndpoint","synthetic":false,"types":[]},{"text":"impl Ord for Request","synthetic":false,"types":[]},{"text":"impl Ord for Cmd","synthetic":false,"types":[]},{"text":"impl Ord for CommandType","synthetic":false,"types":[]},{"text":"impl Ord for SimpleCommandType","synthetic":false,"types":[]},{"text":"impl Ord for Item","synthetic":false,"types":[]},{"text":"impl Ord for DelayCause","synthetic":false,"types":[]},{"text":"impl Ord for TripMode","synthetic":false,"types":[]},{"text":"impl Ord for CarID","synthetic":false,"types":[]},{"text":"impl Ord for PedestrianID","synthetic":false,"types":[]},{"text":"impl Ord for AgentID","synthetic":false,"types":[]},{"text":"impl Ord for AgentType","synthetic":false,"types":[]},{"text":"impl Ord for TripID","synthetic":false,"types":[]},{"text":"impl Ord for PersonID","synthetic":false,"types":[]},{"text":"impl Ord for OrigPersonID","synthetic":false,"types":[]},{"text":"impl Ord for VehicleType","synthetic":false,"types":[]},{"text":"impl Ord for ParkingSpot","synthetic":false,"types":[]},{"text":"impl Ord for SidewalkPOI","synthetic":false,"types":[]}];
|
||||
implementors["widgetry"] = [{"text":"impl Ord for Key","synthetic":false,"types":[]},{"text":"impl Ord for MultiKey","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@ implementors["abstutil"] = [{"text":"impl PartialOrd<MapName> for MapName"
|
||||
implementors["game"] = [{"text":"impl PartialOrd<Loc> for Loc","synthetic":false,"types":[]},{"text":"impl PartialOrd<TutorialPointer> for TutorialPointer","synthetic":false,"types":[]},{"text":"impl PartialOrd<Task> for Task","synthetic":false,"types":[]},{"text":"impl PartialOrd<GameplayMode> for GameplayMode","synthetic":false,"types":[]},{"text":"impl PartialOrd<SpeedSetting> for SpeedSetting","synthetic":false,"types":[]}];
|
||||
implementors["geom"] = [{"text":"impl PartialOrd<Angle> for Angle","synthetic":false,"types":[]},{"text":"impl PartialOrd<Distance> for Distance","synthetic":false,"types":[]},{"text":"impl PartialOrd<Duration> for Duration","synthetic":false,"types":[]},{"text":"impl PartialOrd<LonLat> for LonLat","synthetic":false,"types":[]},{"text":"impl PartialOrd<HashablePt2D> for HashablePt2D","synthetic":false,"types":[]},{"text":"impl PartialOrd<Speed> for Speed","synthetic":false,"types":[]},{"text":"impl PartialOrd<Statistic> for Statistic","synthetic":false,"types":[]},{"text":"impl PartialOrd<Time> for Time","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl PartialOrd<ID> for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl PartialOrd<AreaID> for AreaID","synthetic":false,"types":[]},{"text":"impl PartialOrd<BuildingID> for BuildingID","synthetic":false,"types":[]},{"text":"impl PartialOrd<NamePerLanguage> for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl PartialOrd<BusStopID> for BusStopID","synthetic":false,"types":[]},{"text":"impl PartialOrd<BusRouteID> for BusRouteID","synthetic":false,"types":[]},{"text":"impl PartialOrd<IntersectionID> for IntersectionID","synthetic":false,"types":[]},{"text":"impl PartialOrd<LaneID> for LaneID","synthetic":false,"types":[]},{"text":"impl PartialOrd<LaneType> for LaneType","synthetic":false,"types":[]},{"text":"impl PartialOrd<ParkingLotID> for ParkingLotID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RoadID> for RoadID","synthetic":false,"types":[]},{"text":"impl PartialOrd<Direction> for Direction","synthetic":false,"types":[]},{"text":"impl PartialOrd<DirectedRoadID> for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnID> for TurnID","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnType> for TurnType","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnPriority> for TurnPriority","synthetic":false,"types":[]},{"text":"impl PartialOrd<MovementID> for MovementID","synthetic":false,"types":[]},{"text":"impl PartialOrd<CompressedMovementID> for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RoadRank> for RoadRank","synthetic":false,"types":[]},{"text":"impl PartialOrd<NodeID> for NodeID","synthetic":false,"types":[]},{"text":"impl PartialOrd<WayID> for WayID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RelationID> for RelationID","synthetic":false,"types":[]},{"text":"impl PartialOrd<OsmID> for OsmID","synthetic":false,"types":[]},{"text":"impl PartialOrd<Node> for Node","synthetic":false,"types":[]},{"text":"impl PartialOrd<WalkingNode> for WalkingNode","synthetic":false,"types":[]},{"text":"impl PartialOrd<PathStep> for PathStep","synthetic":false,"types":[]},{"text":"impl PartialOrd<PathConstraints> for PathConstraints","synthetic":false,"types":[]},{"text":"impl PartialOrd<OriginalRoad> for OriginalRoad","synthetic":false,"types":[]},{"text":"impl PartialOrd<RestrictionType> for RestrictionType","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnRestriction> for TurnRestriction","synthetic":false,"types":[]},{"text":"impl PartialOrd<Position> for Position","synthetic":false,"types":[]},{"text":"impl PartialOrd<Traversable> for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl PartialOrd<Item> for Item","synthetic":false,"types":[]},{"text":"impl PartialOrd<AreaID> for AreaID","synthetic":false,"types":[]},{"text":"impl PartialOrd<BuildingID> for BuildingID","synthetic":false,"types":[]},{"text":"impl PartialOrd<NamePerLanguage> for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl PartialOrd<BusStopID> for BusStopID","synthetic":false,"types":[]},{"text":"impl PartialOrd<BusRouteID> for BusRouteID","synthetic":false,"types":[]},{"text":"impl PartialOrd<IntersectionID> for IntersectionID","synthetic":false,"types":[]},{"text":"impl PartialOrd<LaneID> for LaneID","synthetic":false,"types":[]},{"text":"impl PartialOrd<LaneType> for LaneType","synthetic":false,"types":[]},{"text":"impl PartialOrd<ParkingLotID> for ParkingLotID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RoadID> for RoadID","synthetic":false,"types":[]},{"text":"impl PartialOrd<Direction> for Direction","synthetic":false,"types":[]},{"text":"impl PartialOrd<DirectedRoadID> for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnID> for TurnID","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnType> for TurnType","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnPriority> for TurnPriority","synthetic":false,"types":[]},{"text":"impl PartialOrd<MovementID> for MovementID","synthetic":false,"types":[]},{"text":"impl PartialOrd<CompressedMovementID> for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RoadRank> for RoadRank","synthetic":false,"types":[]},{"text":"impl PartialOrd<NodeID> for NodeID","synthetic":false,"types":[]},{"text":"impl PartialOrd<WayID> for WayID","synthetic":false,"types":[]},{"text":"impl PartialOrd<RelationID> for RelationID","synthetic":false,"types":[]},{"text":"impl PartialOrd<OsmID> for OsmID","synthetic":false,"types":[]},{"text":"impl PartialOrd<Node> for Node","synthetic":false,"types":[]},{"text":"impl PartialOrd<WalkingNode> for WalkingNode","synthetic":false,"types":[]},{"text":"impl PartialOrd<PathStep> for PathStep","synthetic":false,"types":[]},{"text":"impl PartialOrd<PathConstraints> for PathConstraints","synthetic":false,"types":[]},{"text":"impl PartialOrd<OriginalRoad> for OriginalRoad","synthetic":false,"types":[]},{"text":"impl PartialOrd<RestrictionType> for RestrictionType","synthetic":false,"types":[]},{"text":"impl PartialOrd<TurnRestriction> for TurnRestriction","synthetic":false,"types":[]},{"text":"impl PartialOrd<Position> for Position","synthetic":false,"types":[]},{"text":"impl PartialOrd<Traversable> for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["sim"] = [{"text":"impl PartialOrd<ScenarioModifier> for ScenarioModifier","synthetic":false,"types":[]},{"text":"impl PartialOrd<TripEndpoint> for TripEndpoint","synthetic":false,"types":[]},{"text":"impl PartialOrd<Request> for Request","synthetic":false,"types":[]},{"text":"impl PartialOrd<Cmd> for Cmd","synthetic":false,"types":[]},{"text":"impl PartialOrd<AnyTime> for AnyTime","synthetic":false,"types":[]},{"text":"impl PartialOrd<CommandType> for CommandType","synthetic":false,"types":[]},{"text":"impl PartialOrd<SimpleCommandType> for SimpleCommandType","synthetic":false,"types":[]},{"text":"impl PartialOrd<Item> for Item","synthetic":false,"types":[]},{"text":"impl PartialOrd<DelayCause> for DelayCause","synthetic":false,"types":[]},{"text":"impl PartialOrd<TripMode> for TripMode","synthetic":false,"types":[]},{"text":"impl PartialOrd<CarID> for CarID","synthetic":false,"types":[]},{"text":"impl PartialOrd<PedestrianID> for PedestrianID","synthetic":false,"types":[]},{"text":"impl PartialOrd<AgentID> for AgentID","synthetic":false,"types":[]},{"text":"impl PartialOrd<AgentType> for AgentType","synthetic":false,"types":[]},{"text":"impl PartialOrd<TripID> for TripID","synthetic":false,"types":[]},{"text":"impl PartialOrd<PersonID> for PersonID","synthetic":false,"types":[]},{"text":"impl PartialOrd<OrigPersonID> for OrigPersonID","synthetic":false,"types":[]},{"text":"impl PartialOrd<VehicleType> for VehicleType","synthetic":false,"types":[]},{"text":"impl PartialOrd<ParkingSpot> for ParkingSpot","synthetic":false,"types":[]},{"text":"impl PartialOrd<SidewalkPOI> for SidewalkPOI","synthetic":false,"types":[]}];
|
||||
implementors["widgetry"] = [{"text":"impl PartialOrd<Key> for Key","synthetic":false,"types":[]},{"text":"impl PartialOrd<MultiKey> for MultiKey","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ implementors["game"] = [{"text":"impl StructuralEq for Loc","synthetic":false,"t
|
||||
implementors["geom"] = [{"text":"impl StructuralEq for LonLat","synthetic":false,"types":[]},{"text":"impl StructuralEq for HashablePt2D","synthetic":false,"types":[]},{"text":"impl StructuralEq for Statistic","synthetic":false,"types":[]}];
|
||||
implementors["map_editor"] = [{"text":"impl StructuralEq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl StructuralEq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl StructuralEq for AreaID","synthetic":false,"types":[]},{"text":"impl StructuralEq for AreaType","synthetic":false,"types":[]},{"text":"impl StructuralEq for BuildingID","synthetic":false,"types":[]},{"text":"impl StructuralEq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl StructuralEq for BusStopID","synthetic":false,"types":[]},{"text":"impl StructuralEq for BusRouteID","synthetic":false,"types":[]},{"text":"impl StructuralEq for IntersectionID","synthetic":false,"types":[]},{"text":"impl StructuralEq for IntersectionType","synthetic":false,"types":[]},{"text":"impl StructuralEq for LaneID","synthetic":false,"types":[]},{"text":"impl StructuralEq for LaneType","synthetic":false,"types":[]},{"text":"impl StructuralEq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RoadID","synthetic":false,"types":[]},{"text":"impl StructuralEq for Direction","synthetic":false,"types":[]},{"text":"impl StructuralEq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnID","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnType","synthetic":false,"types":[]},{"text":"impl StructuralEq for MovementID","synthetic":false,"types":[]},{"text":"impl StructuralEq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RoadRank","synthetic":false,"types":[]},{"text":"impl StructuralEq for NodeID","synthetic":false,"types":[]},{"text":"impl StructuralEq for WayID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RelationID","synthetic":false,"types":[]},{"text":"impl StructuralEq for OsmID","synthetic":false,"types":[]},{"text":"impl StructuralEq for Node","synthetic":false,"types":[]},{"text":"impl StructuralEq for WalkingNode","synthetic":false,"types":[]},{"text":"impl StructuralEq for PathStep","synthetic":false,"types":[]},{"text":"impl StructuralEq for PathRequest","synthetic":false,"types":[]},{"text":"impl StructuralEq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl StructuralEq for RestrictionType","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl StructuralEq for Position","synthetic":false,"types":[]},{"text":"impl StructuralEq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl StructuralEq for Item","synthetic":false,"types":[]},{"text":"impl StructuralEq for AreaID","synthetic":false,"types":[]},{"text":"impl StructuralEq for AreaType","synthetic":false,"types":[]},{"text":"impl StructuralEq for BuildingID","synthetic":false,"types":[]},{"text":"impl StructuralEq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl StructuralEq for BusStopID","synthetic":false,"types":[]},{"text":"impl StructuralEq for BusRouteID","synthetic":false,"types":[]},{"text":"impl StructuralEq for IntersectionID","synthetic":false,"types":[]},{"text":"impl StructuralEq for IntersectionType","synthetic":false,"types":[]},{"text":"impl StructuralEq for LaneID","synthetic":false,"types":[]},{"text":"impl StructuralEq for LaneType","synthetic":false,"types":[]},{"text":"impl StructuralEq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RoadID","synthetic":false,"types":[]},{"text":"impl StructuralEq for Direction","synthetic":false,"types":[]},{"text":"impl StructuralEq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnID","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnType","synthetic":false,"types":[]},{"text":"impl StructuralEq for MovementID","synthetic":false,"types":[]},{"text":"impl StructuralEq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RoadRank","synthetic":false,"types":[]},{"text":"impl StructuralEq for NodeID","synthetic":false,"types":[]},{"text":"impl StructuralEq for WayID","synthetic":false,"types":[]},{"text":"impl StructuralEq for RelationID","synthetic":false,"types":[]},{"text":"impl StructuralEq for OsmID","synthetic":false,"types":[]},{"text":"impl StructuralEq for Node","synthetic":false,"types":[]},{"text":"impl StructuralEq for WalkingNode","synthetic":false,"types":[]},{"text":"impl StructuralEq for PathStep","synthetic":false,"types":[]},{"text":"impl StructuralEq for PathRequest","synthetic":false,"types":[]},{"text":"impl StructuralEq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl StructuralEq for RestrictionType","synthetic":false,"types":[]},{"text":"impl StructuralEq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl StructuralEq for Position","synthetic":false,"types":[]},{"text":"impl StructuralEq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["popdat"] = [{"text":"impl StructuralEq for Activity","synthetic":false,"types":[]}];
|
||||
implementors["sim"] = [{"text":"impl StructuralEq for ScenarioModifier","synthetic":false,"types":[]},{"text":"impl StructuralEq for TripEndpoint","synthetic":false,"types":[]},{"text":"impl StructuralEq for Request","synthetic":false,"types":[]},{"text":"impl StructuralEq for Cmd","synthetic":false,"types":[]},{"text":"impl StructuralEq for CarStatus","synthetic":false,"types":[]},{"text":"impl StructuralEq for CommandType","synthetic":false,"types":[]},{"text":"impl StructuralEq for SimpleCommandType","synthetic":false,"types":[]},{"text":"impl StructuralEq for Item","synthetic":false,"types":[]},{"text":"impl StructuralEq for DelayCause","synthetic":false,"types":[]},{"text":"impl StructuralEq for TripMode","synthetic":false,"types":[]},{"text":"impl StructuralEq for CarID","synthetic":false,"types":[]},{"text":"impl StructuralEq for PedestrianID","synthetic":false,"types":[]},{"text":"impl StructuralEq for AgentID","synthetic":false,"types":[]},{"text":"impl StructuralEq for AgentType","synthetic":false,"types":[]},{"text":"impl StructuralEq for TripID","synthetic":false,"types":[]},{"text":"impl StructuralEq for PersonID","synthetic":false,"types":[]},{"text":"impl StructuralEq for OrigPersonID","synthetic":false,"types":[]},{"text":"impl StructuralEq for VehicleType","synthetic":false,"types":[]},{"text":"impl StructuralEq for ParkingSpot","synthetic":false,"types":[]},{"text":"impl StructuralEq for DrivingGoal","synthetic":false,"types":[]},{"text":"impl StructuralEq for SidewalkPOI","synthetic":false,"types":[]}];
|
||||
implementors["widgetry"] = [{"text":"impl StructuralEq for Key","synthetic":false,"types":[]},{"text":"impl StructuralEq for MultiKey","synthetic":false,"types":[]},{"text":"impl StructuralEq for Font","synthetic":false,"types":[]}];
|
||||
|
@ -5,7 +5,7 @@ implementors["game"] = [{"text":"impl StructuralPartialEq for Filters","syntheti
|
||||
implementors["geom"] = [{"text":"impl StructuralPartialEq for Angle","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for GPSBounds","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Distance","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Duration","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LonLat","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Line","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Percent","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PolyLine","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for HashablePt2D","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Ring","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Speed","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Statistic","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Time","synthetic":false,"types":[]}];
|
||||
implementors["map_editor"] = [{"text":"impl StructuralPartialEq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_gui"] = [{"text":"impl StructuralPartialEq for ColorSchemeChoice","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TrafficSignalStyle","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for CameraAngle","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for UnzoomedAgents","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for HeatmapOptions","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ID","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl StructuralPartialEq for MapEdits","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditIntersection","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditCmd","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneSpec","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for DrivingSide","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AreaID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AreaType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BuildingID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OffstreetParking","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusStopID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusRouteID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusStop","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for IntersectionID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for IntersectionType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Direction","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ControlStopSign","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadWithStopSign","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ControlTrafficSignal","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Stage","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PhaseType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnPriority","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Turn","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for MovementID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Movement","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AccessRestrictions","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Zone","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadRank","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for NodeID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for WayID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RelationID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OsmID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Node","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for UberTurn","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for WalkingNode","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PathStep","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Path","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PathRequest","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RawRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RawIntersection","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RestrictionType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Position","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["map_model"] = [{"text":"impl StructuralPartialEq for Item","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for MapEdits","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditIntersection","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for EditCmd","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneSpec","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for DrivingSide","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AreaID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AreaType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BuildingID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OffstreetParking","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for NamePerLanguage","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusStopID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusRouteID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for BusStop","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for IntersectionID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for IntersectionType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for LaneType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ParkingLotID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Direction","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for DirectedRoadID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ControlStopSign","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadWithStopSign","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for ControlTrafficSignal","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Stage","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PhaseType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnPriority","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Turn","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for MovementID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for CompressedMovementID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Movement","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for AccessRestrictions","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Zone","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RoadRank","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for NodeID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for WayID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RelationID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OsmID","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Node","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for UberTurn","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for WalkingNode","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PathStep","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Path","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for PathRequest","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for OriginalRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RawRoad","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RawIntersection","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for RestrictionType","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for TurnRestriction","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Position","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Traversable","synthetic":false,"types":[]}];
|
||||
implementors["parking_mapper"] = [{"text":"impl StructuralPartialEq for Show","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for Value","synthetic":false,"types":[]}];
|
||||
implementors["popdat"] = [{"text":"impl StructuralPartialEq for Activity","synthetic":false,"types":[]}];
|
||||
implementors["santa"] = [{"text":"impl StructuralPartialEq for Level","synthetic":false,"types":[]},{"text":"impl StructuralPartialEq for On","synthetic":false,"types":[]}];
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,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 `all_vehicle_costs_from` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, all_vehicle_costs_from"><title>map_model::connectivity::all_vehicle_costs_from - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'all_vehicle_costs_from', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity.rs.html#81-126' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>all_vehicle_costs_from</a></span></h1><pre class='rust fn'>pub fn all_vehicle_costs_from(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> start: <a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <br> time_limit: <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> constraints: <a class="enum" href="../../map_model/enum.PathConstraints.html" title="enum map_model::PathConstraints">PathConstraints</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></pre><div class='docblock'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
<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/connectivity/mod.rs.html#55-100' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>all_vehicle_costs_from</a></span></h1><pre class='rust fn'>pub fn all_vehicle_costs_from(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> start: <a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <br> time_limit: <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> constraints: <a class="enum" href="../../map_model/enum.PathConstraints.html" title="enum map_model::PathConstraints">PathConstraints</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></pre><div class='docblock'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
it won't be included in the results. Ignore results greater than the time_limit away.</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,6 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `all_walking_costs_from` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, all_walking_costs_from"><title>map_model::connectivity::all_walking_costs_from - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'all_walking_costs_from', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity.rs.html#52-77' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>all_walking_costs_from</a></span></h1><pre class='rust fn'>pub fn all_walking_costs_from(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> start: <a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <br> time_limit: <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> opts: <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></pre><div class='docblock'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
<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/connectivity/walking.rs.html#56-121' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>all_walking_costs_from</a></span></h1><pre class='rust fn'>pub fn all_walking_costs_from(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> start: <a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <br> time_limit: <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> opts: <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></pre><div class='docblock'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
it won't be included in the results. Ignore results greater than the time_limit away.</p>
|
||||
<p>If the start building is on the shoulder of a road and <code>!opts.allow_shoulders</code>, then the
|
||||
results will always be empty.</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,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 `find_scc` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, find_scc"><title>map_model::connectivity::find_scc - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'find_scc', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity.rs.html#17-48' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>find_scc</a></span></h1><pre class='rust fn'>pub fn find_scc(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> constraints: <a class="enum" href="../../map_model/enum.PathConstraints.html" title="enum map_model::PathConstraints">PathConstraints</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="struct" href="../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<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></pre><div class='docblock'><p>Calculate the srongy connected components (SCC) of the part of the map accessible by constraints
|
||||
<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/connectivity/mod.rs.html#20-51' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="fn" href=''>find_scc</a></span></h1><pre class='rust fn'>pub fn find_scc(<br> map: &<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> constraints: <a class="enum" href="../../map_model/enum.PathConstraints.html" title="enum map_model::PathConstraints">PathConstraints</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<a class="struct" href="../../map_model/struct.LaneID.html" title="struct map_model::LaneID">LaneID</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a><<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></pre><div class='docblock'><p>Calculate the srongy connected components (SCC) of the part of the map accessible by constraints
|
||||
(ie, the graph of sidewalks or driving+bike lanes). The largest component is the "main" graph;
|
||||
the rest is disconnected. Returns (lanes in the largest "main" component, all other disconnected
|
||||
lanes)</p>
|
||||
|
@ -1,7 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `connectivity` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, connectivity"><title>map_model::connectivity - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module connectivity</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>map_model</a></p><script>window.sidebarCurrent = {name: 'connectivity', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity.rs.html#3-126' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_model</a>::<wbr><a class="mod" href=''>connectivity</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<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 connectivity</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>map_model</a></p><script>window.sidebarCurrent = {name: 'connectivity', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity/mod.rs.html#3-100' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_model</a>::<wbr><a class="mod" href=''>connectivity</a></span></h1><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="walking/index.html" title='map_model::connectivity::walking mod'>walking</a></td><td class='docblock-short'></td></tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.WalkingOptions.html" title='map_model::connectivity::WalkingOptions struct'>WalkingOptions</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.WalkingNode.html" title='map_model::connectivity::WalkingNode enum'>WalkingNode</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.all_vehicle_costs_from.html" title='map_model::connectivity::all_vehicle_costs_from fn'>all_vehicle_costs_from</a></td><td class='docblock-short'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["WalkingNode",""]],"fn":[["all_vehicle_costs_from","Starting from one building, calculate the cost to all others. If a destination isn't reachable, it won't be included in the results. Ignore results greater than the time_limit away."],["all_walking_costs_from","Starting from one building, calculate the cost to all others. If a destination isn't reachable, it won't be included in the results. Ignore results greater than the time_limit away."],["driving_cost","Different unit based on constraints."],["find_scc","Calculate the srongy connected components (SCC) of the part of the map accessible by constraints (ie, the graph of sidewalks or driving+bike lanes). The largest component is the \"main\" graph; the rest is disconnected. Returns (lanes in the largest \"main\" component, all other disconnected lanes)"]],"struct":[["WalkingOptions",""]]});
|
||||
initSidebarItems({"enum":[["WalkingNode",""]],"fn":[["all_vehicle_costs_from","Starting from one building, calculate the cost to all others. If a destination isn't reachable, it won't be included in the results. Ignore results greater than the time_limit away."],["all_walking_costs_from","Starting from one building, calculate the cost to all others. If a destination isn't reachable, it won't be included in the results. Ignore results greater than the time_limit away."],["driving_cost","Different unit based on constraints."],["find_scc","Calculate the srongy connected components (SCC) of the part of the map accessible by constraints (ie, the graph of sidewalks or driving+bike lanes). The largest component is the \"main\" graph; the rest is disconnected. Returns (lanes in the largest \"main\" component, all other disconnected lanes)"]],"mod":[["walking",""]],"struct":[["WalkingOptions",""]]});
|
@ -1,11 +1,12 @@
|
||||
<!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 `WalkingOptions` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, WalkingOptions"><title>map_model::connectivity::WalkingOptions - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct WalkingOptions</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.allow_shoulders">allow_shoulders</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.default">default</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'WalkingOptions', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/pathfind/dijkstra.rs.html#75-78' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="struct" href=''>WalkingOptions</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct WalkingOptions {
|
||||
<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 WalkingOptions</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.allow_shoulders">allow_shoulders</a><a href="#structfield.walking_speed">walking_speed</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.cost">cost</a><a href="#method.default">default</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'WalkingOptions', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#10-14' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>map_model</a>::<wbr><a href='index.html'>connectivity</a>::<wbr><a class="struct" href=''>WalkingOptions</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct WalkingOptions {
|
||||
pub allow_shoulders: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
pub walking_speed: <a class="struct" href="../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.allow_shoulders" class="structfield small-section-header"><a href="#structfield.allow_shoulders" class="anchor field"></a><code>allow_shoulders: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class='docblock'><p>If true, allow walking on shoulders.</p>
|
||||
</div><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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/map_model/pathfind/dijkstra.rs.html#80-86' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code>pub fn <a href='#method.default' class='fnname'>default</a>() -> <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../src/map_model/pathfind/dijkstra.rs.html#81-85' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/map_model/pathfind/dijkstra.rs.html#74' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../src/map_model/pathfind/dijkstra.rs.html#74' 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><span id="structfield.walking_speed" class="structfield small-section-header"><a href="#structfield.walking_speed" class="anchor field"></a><code>walking_speed: <a class="struct" href="../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#16-27' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code>pub fn <a href='#method.default' class='fnname'>default</a>() -> <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#17-22' title='goto source code'>[src]</a></h4><h4 id='method.cost' class="method"><code>fn <a href='#method.cost' class='fnname'>cost</a>(&self, dist: <a class="struct" href="../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -> <a class="struct" href="../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></code><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#24-26' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#9' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../src/map_model/connectivity/walking.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `all_walking_costs_from` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, all_walking_costs_from"><title>map_model::connectivity::walking::all_walking_costs_from - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a href='index.html'>walking</a></p><script>window.sidebarCurrent = {name: 'all_walking_costs_from', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#56-121' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a href='index.html'>walking</a>::<wbr><a class="fn" href=''>all_walking_costs_from</a></span></h1><pre class='rust fn'>pub fn all_walking_costs_from(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> start: <a class="struct" href="../../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <br> time_limit: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>, <br> opts: <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="../../../map_model/struct.BuildingID.html" title="struct map_model::BuildingID">BuildingID</a>, <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>></pre><div class='docblock'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
it won't be included in the results. Ignore results greater than the time_limit away.</p>
|
||||
<p>If the start building is on the shoulder of a road and <code>!opts.allow_shoulders</code>, then the
|
||||
results will always be empty.</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>
|
8
rustdoc/map_model/connectivity/walking/index.html
Normal file
8
rustdoc/map_model/connectivity/walking/index.html
Normal file
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `walking` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, walking"><title>map_model::connectivity::walking - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module walking</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a></p><script>window.sidebarCurrent = {name: 'walking', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#1-121' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a class="mod" href=''>walking</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.Item.html" title='map_model::connectivity::walking::Item struct'>Item</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="struct" href="struct.WalkingOptions.html" title='map_model::connectivity::walking::WalkingOptions struct'>WalkingOptions</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.all_walking_costs_from.html" title='map_model::connectivity::walking::all_walking_costs_from fn'>all_walking_costs_from</a></td><td class='docblock-short'><p>Starting from one building, calculate the cost to all others. If a destination isn't reachable,
|
||||
it won't be included in the results. Ignore results greater than the time_limit away.</p>
|
||||
</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
rustdoc/map_model/connectivity/walking/sidebar-items.js
Normal file
1
rustdoc/map_model/connectivity/walking/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
initSidebarItems({"fn":[["all_walking_costs_from","Starting from one building, calculate the cost to all others. If a destination isn't reachable, it won't be included in the results. Ignore results greater than the time_limit away."]],"struct":[["Item",""],["WalkingOptions",""]]});
|
33
rustdoc/map_model/connectivity/walking/struct.Item.html
Normal file
33
rustdoc/map_model/connectivity/walking/struct.Item.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!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 `Item` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, Item"><title>map_model::connectivity::walking::Item - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Item</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.cost">cost</a><a href="#structfield.node">node</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Eq">Eq</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CItem%3E">PartialEq<Item></a><a href="#impl-PartialOrd%3CItem%3E">PartialOrd<Item></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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'>connectivity</a>::<wbr><a href='index.html'>walking</a></p><script>window.sidebarCurrent = {name: 'Item', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#30-33' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a href='index.html'>walking</a>::<wbr><a class="struct" href=''>Item</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct Item {
|
||||
cost: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a>,
|
||||
node: <a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.cost" class="structfield small-section-header"><a href="#structfield.cost" class="anchor field"></a><code>cost: <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></code></span><span id="structfield.node" class="structfield small-section-header"><a href="#structfield.node" class="anchor field"></a><code>node: <a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a></code></span><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-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#40-49' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#41-48' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||||
</div><h4 id='method.max' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#595-600' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||||
</div><h4 id='method.min' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -> Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#615-620' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||||
</div><h4 id='method.clamp' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp' class='fnname'>clamp</a>(self, min: Self, max: Self) -> Self</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#642-654' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>clamp</code>)</div></div><div class='docblock hidden'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CItem%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-PartialEq%3CItem%3E' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-PartialOrd%3CItem%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-PartialOrd%3CItem%3E' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#34-38' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.partial_cmp' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(&self, other: &<a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#35-37' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
|
||||
</div><h4 id='method.lt' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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/cmp.rs.html#837-839' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
|
||||
</div><h4 id='method.le' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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/cmp.rs.html#856-858' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code>
|
||||
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
|
||||
</div><h4 id='method.gt' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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/cmp.rs.html#874-876' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
|
||||
</div><h4 id='method.ge' class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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/cmp.rs.html#893-895' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code>
|
||||
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
|
||||
</div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#29' title='goto source code'>[src]</a></h3><div class='impl-items'></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../map_model/connectivity/walking/struct.Item.html" title="struct map_model::connectivity::walking::Item">Item</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id='impl-Equivalent%3CK%3E' class='impl'><code class='in-band'>impl<Q, K> <a class="trait" href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html" title="trait indexmap::equivalent::Equivalent">Equivalent</a><K> for Q <span class="where fmt-newline">where<br> K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><Q> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Equivalent%3CK%3E' class='anchor'></a><a class='srclink' href='https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#18-27' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.equivalent' class="method hidden"><code>fn <a href='https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent' class='fnname'>equivalent</a>(&self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#24-26' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compare self to <code>key</code> and return <code>true</code> if they are equal.</p>
|
||||
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#551-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#552-554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#540-547' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#544-546' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-Same%3CT%3E' class='impl'><code class='in-band'>impl<T> Same<T> for T</code><a href='#impl-Same%3CT%3E' class='anchor'></a></h3><div class='impl-items'><h4 id='associatedtype.Output' class="type"><code>type <a href='#associatedtype.Output' class="type">Output</a> = T</code></h4><div class='docblock'><p>Should always be <code>Self</code></p>
|
||||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588-597' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#594-596' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574-583' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id='method.try_into' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#580-582' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id='impl-VZip%3CV%3E' class='impl'><code class='in-band'>impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></code><a href='#impl-VZip%3CV%3E' class='anchor'></a></h3><div class='impl-items'><h4 id='method.vzip' class="method hidden"><code>fn <a href='#method.vzip' class='fnname'>vzip</a>(self) -> V</code></h4></div></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,11 +1,12 @@
|
||||
<!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 `WalkingOptions` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, WalkingOptions"><title>map_model::pathfind::dijkstra::WalkingOptions - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<!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 `WalkingOptions` struct in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, WalkingOptions"><title>map_model::connectivity::walking::WalkingOptions - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct WalkingOptions</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.allow_shoulders">allow_shoulders</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.default">default</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a></p><script>window.sidebarCurrent = {name: 'WalkingOptions', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#75-78' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a>::<wbr><a class="struct" href=''>WalkingOptions</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct WalkingOptions {
|
||||
<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 WalkingOptions</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.allow_shoulders">allow_shoulders</a><a href="#structfield.walking_speed">walking_speed</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.cost">cost</a><a href="#method.default">default</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a href='index.html'>walking</a></p><script>window.sidebarCurrent = {name: 'WalkingOptions', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#10-14' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>connectivity</a>::<wbr><a href='index.html'>walking</a>::<wbr><a class="struct" href=''>WalkingOptions</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct WalkingOptions {
|
||||
pub allow_shoulders: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
pub walking_speed: <a class="struct" href="../../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</a>,
|
||||
}</pre></div><h2 id='fields' class='fields small-section-header'>
|
||||
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.allow_shoulders" class="structfield small-section-header"><a href="#structfield.allow_shoulders" class="anchor field"></a><code>allow_shoulders: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class='docblock'><p>If true, allow walking on shoulders.</p>
|
||||
</div><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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#80-86' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code>pub fn <a href='#method.default' class='fnname'>default</a>() -> <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#81-85' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#74' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#74' 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><span id="structfield.walking_speed" class="structfield small-section-header"><a href="#structfield.walking_speed" class="anchor field"></a><code>walking_speed: <a class="struct" href="../../../geom/speed/struct.Speed.html" title="struct geom::speed::Speed">Speed</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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#16-27' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method"><code>pub fn <a href='#method.default' class='fnname'>default</a>() -> <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#17-22' title='goto source code'>[src]</a></h4><h4 id='method.cost' class="method"><code>fn <a href='#method.cost' class='fnname'>cost</a>(&self, dist: <a class="struct" href="../../../geom/distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>) -> <a class="struct" href="../../../geom/duration/struct.Duration.html" title="struct geom::duration::Duration">Duration</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#24-26' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#9' 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/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a class='srclink' href='../../../src/map_model/connectivity/walking.rs.html#9' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
@ -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 `build_graph_for_pedestrians` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, build_graph_for_pedestrians"><title>map_model::pathfind::dijkstra::build_graph_for_pedestrians - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a></p><script>window.sidebarCurrent = {name: 'build_graph_for_pedestrians', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#88-118' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a>::<wbr><a class="fn" href=''>build_graph_for_pedestrians</a></span></h1><pre class='rust fn'>pub fn build_graph_for_pedestrians(<br> map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br> opts: <a class="struct" href="../../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a><br>) -> <a class="type" href="https://docs.rs/petgraph/0.4/petgraph/graphmap/type.DiGraphMap.html" title="type petgraph::graphmap::DiGraphMap">DiGraphMap</a><<a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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/pathfind/dijkstra.rs.html#74-97' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a>::<wbr><a class="fn" href=''>build_graph_for_pedestrians</a></span></h1><pre class='rust fn'>pub fn build_graph_for_pedestrians(map: &<a class="struct" href="../../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>) -> <a class="type" href="https://docs.rs/petgraph/0.4/petgraph/graphmap/type.DiGraphMap.html" title="type petgraph::graphmap::DiGraphMap">DiGraphMap</a><<a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</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 `simple_walking_path` fn in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, simple_walking_path"><title>map_model::pathfind::dijkstra::simple_walking_path - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a></p><script>window.sidebarCurrent = {name: 'simple_walking_path', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#120-133' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a>::<wbr><a class="fn" href=''>simple_walking_path</a></span></h1><pre class='rust fn'>pub fn simple_walking_path(<br> req: &<a class="struct" href="../../../map_model/struct.PathRequest.html" title="struct map_model::PathRequest">PathRequest</a>, <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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</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/pathfind/dijkstra.rs.html#99-112' title='goto source code'>[src]</a></span><span class='in-band'>Function <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a href='index.html'>dijkstra</a>::<wbr><a class="fn" href=''>simple_walking_path</a></span></h1><pre class='rust fn'>pub fn simple_walking_path(<br> req: &<a class="struct" href="../../../map_model/struct.PathRequest.html" title="struct map_model::PathRequest">PathRequest</a>, <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="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</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,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 `dijkstra` mod in crate `map_model`."><meta name="keywords" content="rust, rustlang, rust-lang, dijkstra"><title>map_model::pathfind::dijkstra - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module dijkstra</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a></p><script>window.sidebarCurrent = {name: 'dijkstra', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#1-133' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a class="mod" href=''>dijkstra</a></span></h1><div class='docblock'><p>Pathfinding without needing to build a separate contraction hierarchy.</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table><tr class='module-item'><td><a class="struct" href="struct.WalkingOptions.html" title='map_model::pathfind::dijkstra::WalkingOptions struct'>WalkingOptions</a></td><td class='docblock-short'></td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<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 dijkstra</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'>pathfind</a></p><script>window.sidebarCurrent = {name: 'dijkstra', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/map_model/pathfind/dijkstra.rs.html#1-112' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>map_model</a>::<wbr><a href='../index.html'>pathfind</a>::<wbr><a class="mod" href=''>dijkstra</a></span></h1><div class='docblock'><p>Pathfinding without needing to build a separate contraction hierarchy.</p>
|
||||
</div><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table><tr class='module-item'><td><a class="fn" href="fn.build_graph_for_pedestrians.html" title='map_model::pathfind::dijkstra::build_graph_for_pedestrians fn'>build_graph_for_pedestrians</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.build_graph_for_vehicles.html" title='map_model::pathfind::dijkstra::build_graph_for_vehicles fn'>build_graph_for_vehicles</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.calc_path.html" title='map_model::pathfind::dijkstra::calc_path fn'>calc_path</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.pathfind_avoiding_lanes.html" title='map_model::pathfind::dijkstra::pathfind_avoiding_lanes fn'>pathfind_avoiding_lanes</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.simple_pathfind.html" title='map_model::pathfind::dijkstra::simple_pathfind fn'>simple_pathfind</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="fn" href="fn.simple_walking_path.html" title='map_model::pathfind::dijkstra::simple_walking_path fn'>simple_walking_path</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":[["build_graph_for_pedestrians",""],["build_graph_for_vehicles",""],["calc_path",""],["pathfind_avoiding_lanes",""],["simple_pathfind",""],["simple_walking_path",""]],"struct":[["WalkingOptions",""]]});
|
||||
initSidebarItems({"fn":[["build_graph_for_pedestrians",""],["build_graph_for_vehicles",""],["calc_path",""],["pathfind_avoiding_lanes",""],["simple_pathfind",""],["simple_walking_path",""]]});
|
@ -3,7 +3,7 @@
|
||||
<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 pathfind</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>map_model</a></p><script>window.sidebarCurrent = {name: 'pathfind', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/map_model/pathfind/mod.rs.html#1-640' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>map_model</a>::<wbr><a class="mod" href=''>pathfind</a></span></h1><div class='docblock'><p>Everything related to pathfinding through a map for different types of agents.</p>
|
||||
</div><h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
|
||||
<table><tr><td><code>pub use self::ch::<a class="struct" href="../../map_model/pathfind/ch/struct.ContractionHierarchyPathfinder.html" title="struct map_model::pathfind::ch::ContractionHierarchyPathfinder">ContractionHierarchyPathfinder</a>;</code></td></tr><tr><td><code>pub use self::dijkstra::<a class="fn" href="../../map_model/pathfind/dijkstra/fn.build_graph_for_pedestrians.html" title="fn map_model::pathfind::dijkstra::build_graph_for_pedestrians">build_graph_for_pedestrians</a>;</code></td></tr><tr><td><code>pub use self::dijkstra::<a class="fn" href="../../map_model/pathfind/dijkstra/fn.build_graph_for_vehicles.html" title="fn map_model::pathfind::dijkstra::build_graph_for_vehicles">build_graph_for_vehicles</a>;</code></td></tr><tr><td><code>pub use self::dijkstra::<a class="struct" href="../../map_model/connectivity/struct.WalkingOptions.html" title="struct map_model::connectivity::WalkingOptions">WalkingOptions</a>;</code></td></tr><tr><td><code>pub use self::driving::<a class="fn" href="../../map_model/connectivity/fn.driving_cost.html" title="fn map_model::connectivity::driving_cost">driving_cost</a>;</code></td></tr><tr><td><code>pub use self::pathfinder::<a class="enum" href="../../map_model/pathfind/pathfinder/enum.Pathfinder.html" title="enum map_model::pathfind::pathfinder::Pathfinder">Pathfinder</a>;</code></td></tr><tr><td><code>pub use self::walking::<a class="fn" href="../../map_model/pathfind/walking/fn.walking_cost.html" title="fn map_model::pathfind::walking::walking_cost">walking_cost</a>;</code></td></tr><tr><td><code>pub use self::walking::<a class="enum" href="../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr><td><code>pub use self::ch::<a class="struct" href="../../map_model/pathfind/ch/struct.ContractionHierarchyPathfinder.html" title="struct map_model::pathfind::ch::ContractionHierarchyPathfinder">ContractionHierarchyPathfinder</a>;</code></td></tr><tr><td><code>pub use self::dijkstra::<a class="fn" href="../../map_model/pathfind/dijkstra/fn.build_graph_for_pedestrians.html" title="fn map_model::pathfind::dijkstra::build_graph_for_pedestrians">build_graph_for_pedestrians</a>;</code></td></tr><tr><td><code>pub use self::dijkstra::<a class="fn" href="../../map_model/pathfind/dijkstra/fn.build_graph_for_vehicles.html" title="fn map_model::pathfind::dijkstra::build_graph_for_vehicles">build_graph_for_vehicles</a>;</code></td></tr><tr><td><code>pub use self::driving::<a class="fn" href="../../map_model/connectivity/fn.driving_cost.html" title="fn map_model::connectivity::driving_cost">driving_cost</a>;</code></td></tr><tr><td><code>pub use self::pathfinder::<a class="enum" href="../../map_model/pathfind/pathfinder/enum.Pathfinder.html" title="enum map_model::pathfind::pathfinder::Pathfinder">Pathfinder</a>;</code></td></tr><tr><td><code>pub use self::walking::<a class="fn" href="../../map_model/pathfind/walking/fn.walking_cost.html" title="fn map_model::pathfind::walking::walking_cost">walking_cost</a>;</code></td></tr><tr><td><code>pub use self::walking::<a class="enum" href="../../map_model/connectivity/enum.WalkingNode.html" title="enum map_model::connectivity::WalkingNode">WalkingNode</a>;</code></td></tr></table><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table><tr class='module-item'><td><a class="mod" href="ch/index.html" title='map_model::pathfind::ch mod'>ch</a></td><td class='docblock-short'><p>Uses https://github.com/easbar/fast_paths. Slower creation during map importing, but very fast
|
||||
queries.</p>
|
||||
</td></tr><tr class='module-item'><td><a class="mod" href="dijkstra/index.html" title='map_model::pathfind::dijkstra mod'>dijkstra</a></td><td class='docblock-short'><p>Pathfinding without needing to build a separate contraction hierarchy.</p>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,17 +1,17 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MinimapController` struct in crate `osm_viewer`."><meta name="keywords" content="rust, rustlang, rust-lang, MinimapController"><title>osm_viewer::viewer::MinimapController - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../osm_viewer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct MinimapController</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-MinimapControls%3CSimpleApp%3C()%3E%3E">MinimapControls<SimpleApp<()>></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Downcast">Downcast</a><a href="#impl-DowncastSync">DowncastSync</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class='location'><a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'MinimapController', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#464' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>MinimapController</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct MinimapController;</pre></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-MinimapControls%3CSimpleApp%3C()%3E%3E' class='impl'><code class='in-band'>impl MinimapControls<SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-MinimapControls%3CSimpleApp%3C()%3E%3E' class='anchor'></a><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#466-474' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.has_zorder' class="method hidden"><code>fn <a href='#method.has_zorder' class='fnname'>has_zorder</a>(&self, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#467-469' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||||
zoomed in, placed beneath the zoom column. <a href="#tymethod.has_zorder">Read more</a></p>
|
||||
</div><h4 id='method.make_legend' class="method hidden"><code>fn <a href='#method.make_legend' class='fnname'>make_legend</a>(&self, _: &mut EventCtx<'_>, _: &SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> Widget</code><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#471-473' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||||
minimap. <a href="#method.make_legend">Read more</a></p>
|
||||
</div><h4 id='method.has_layer' class="method hidden"><code>fn <a href='#method.has_layer' class='fnname'>has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||||
recalculated. <a href="#method.has_layer">Read more</a></p>
|
||||
</div><h4 id='method.draw_extra' class="method hidden"><code>fn <a href='#method.draw_extra' class='fnname'>draw_extra</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code></h4><div class='docblock hidden'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
|
||||
</div><h4 id='method.make_unzoomed_panel' class="method hidden"><code>fn <a href='#method.make_unzoomed_panel' class='fnname'>make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Panel</code></h4><div class='docblock hidden'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
|
||||
</div><h4 id='method.make_zoomed_side_panel' class="method hidden"><code>fn <a href='#method.make_zoomed_side_panel' class='fnname'>make_zoomed_side_panel</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Widget</code></h4><div class='docblock hidden'><p>Controls to be placed to the left to the zoomed-in panel</p>
|
||||
</div><h4 id='method.panel_clicked' class="method hidden"><code>fn <a href='#method.panel_clicked' class='fnname'>panel_clicked</a>(<br> &self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code></h4><div class='docblock hidden'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
|
||||
</div><h4 id='method.panel_changed' class="method hidden"><code>fn <a href='#method.panel_changed' class='fnname'>panel_changed</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, &Panel)</code></h4><div class='docblock hidden'><p>Called for <code>Outcome::Changed</code> on the panel.</p>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" 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/osm_viewer/viewer.rs.html#464' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="struct" href=''>MinimapController</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>struct MinimapController;</pre></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-MinimapControls%3CSimpleApp%3C()%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="../../map_gui/tools/minimap/trait.MinimapControls.html" title="trait map_gui::tools::minimap::MinimapControls">MinimapControls</a><<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-MinimapControls%3CSimpleApp%3C()%3E%3E' class='anchor'></a><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#466-474' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.has_zorder' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder' class='fnname'>has_zorder</a>(&self, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#467-469' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Should the user be able to control the z-order visible? The control is only present when
|
||||
zoomed in, placed beneath the zoom column. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#tymethod.has_zorder">Read more</a></p>
|
||||
</div><h4 id='method.make_legend' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend' class='fnname'>make_legend</a>(&self, _: &mut EventCtx<'_>, _: &<a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>) -> Widget</code><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#471-473' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A row beneath the minimap in the zoomed view, usually used as a legend for things on the
|
||||
minimap. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_legend">Read more</a></p>
|
||||
</div><h4 id='method.has_layer' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer' class='fnname'>has_layer</a>(&self, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#38-40' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Is there some additional layer displayed on the minimap? If this changes, the panel gets
|
||||
recalculated. <a href="../../map_gui/tools/minimap/trait.MinimapControls.html#method.has_layer">Read more</a></p>
|
||||
</div><h4 id='method.draw_extra' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.draw_extra' class='fnname'>draw_extra</a>(&self, &mut GfxCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A)</code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#43' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Draw extra stuff on the minimap, just pulling from the app.</p>
|
||||
</div><h4 id='method.make_unzoomed_panel' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_unzoomed_panel' class='fnname'>make_unzoomed_panel</a>(&self, ctx: &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Panel</code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#46-48' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>When unzoomed, display this panel. By default, no controls when unzoomed.</p>
|
||||
</div><h4 id='method.make_zoomed_side_panel' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.make_zoomed_side_panel' class='fnname'>make_zoomed_side_panel</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>A) -> Widget</code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#55-57' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Controls to be placed to the left to the zoomed-in panel</p>
|
||||
</div><h4 id='method.panel_clicked' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_clicked' class='fnname'>panel_clicked</a>(<br> &self, <br> &mut EventCtx<'_>, <br> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, <br> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transition<A>></code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#60-62' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>If a button is clicked that was produced by some method in this trait, respond to it here.</p>
|
||||
</div><h4 id='method.panel_changed' class="method hidden"><code>fn <a href='../../map_gui/tools/minimap/trait.MinimapControls.html#method.panel_changed' class='fnname'>panel_changed</a>(&self, &mut EventCtx<'_>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, &Panel)</code><a class='srclink' href='../../src/map_gui/tools/minimap.rs.html#64' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Called for <code>Outcome::Changed</code> on the panel.</p>
|
||||
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../osm_viewer/viewer/struct.MinimapController.html" title="struct osm_viewer::viewer::MinimapController">MinimapController</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
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 `App` type in crate `osm_viewer`."><meta name="keywords" content="rust, rustlang, rust-lang, App"><title>osm_viewer::viewer::App - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[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='../../osm_viewer/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Type Definition App</p><div class="sidebar-elems"><p class='location'><a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a></p><script>window.sidebarCurrent = {name: 'App', ty: 'type', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/osm_viewer/viewer.rs.html#19' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>App</a></span></h1><pre class='rust typedef'>type App = SimpleApp<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "osm_viewer";</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/osm_viewer/viewer.rs.html#19' title='goto source code'>[src]</a></span><span class='in-band'>Type Definition <a href='../index.html'>osm_viewer</a>::<wbr><a href='index.html'>viewer</a>::<wbr><a class="type" href=''>App</a></span></h1><pre class='rust typedef'>type App = <a class="struct" href="../../map_gui/simple_app/struct.SimpleApp.html" title="struct map_gui::simple_app::SimpleApp">SimpleApp</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "osm_viewer";</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
@ -16,7 +16,7 @@ sourcesIndex["json_to_binary_map"] = {"name":"","files":["json_to_binary_map.rs"
|
||||
sourcesIndex["kml"] = {"name":"","files":["lib.rs"]};
|
||||
sourcesIndex["map_editor"] = {"name":"","files":["main.rs","model.rs","world.rs"]};
|
||||
sourcesIndex["map_gui"] = {"name":"","dirs":[{"name":"render","files":["agents.rs","area.rs","bike.rs","building.rs","bus_stop.rs","car.rs","intersection.rs","lane.rs","map.rs","mod.rs","parking_lot.rs","pedestrian.rs","road.rs","traffic_signal.rs","turn.rs"]},{"name":"tools","files":["city_picker.rs","colors.rs","heatmap.rs","minimap.rs","mod.rs","navigate.rs","turn_explorer.rs","ui.rs","updater.rs"]}],"files":["colors.rs","lib.rs","load.rs","options.rs","simple_app.rs"]};
|
||||
sourcesIndex["map_model"] = {"name":"","dirs":[{"name":"edits","files":["compat.rs","mod.rs","perma.rs"]},{"name":"make","dirs":[{"name":"initial","files":["geometry.rs","lane_specs.rs","mod.rs"]}],"files":["bridges.rs","buildings.rs","medians.rs","mod.rs","parking_lots.rs","remove_disconnected.rs","traffic_signals.rs","transit.rs","turns.rs","walking_turns.rs"]},{"name":"objects","files":["area.rs","building.rs","bus_stop.rs","intersection.rs","lane.rs","mod.rs","parking_lot.rs","road.rs","stop_signs.rs","traffic_signals.rs","turn.rs","zone.rs"]},{"name":"pathfind","files":["ch.rs","dijkstra.rs","driving.rs","mod.rs","node_map.rs","pathfinder.rs","uber_turns.rs","walking.rs"]}],"files":["city.rs","connectivity.rs","lib.rs","map.rs","osm.rs","raw.rs","traversable.rs"]};
|
||||
sourcesIndex["map_model"] = {"name":"","dirs":[{"name":"connectivity","files":["mod.rs","walking.rs"]},{"name":"edits","files":["compat.rs","mod.rs","perma.rs"]},{"name":"make","dirs":[{"name":"initial","files":["geometry.rs","lane_specs.rs","mod.rs"]}],"files":["bridges.rs","buildings.rs","medians.rs","mod.rs","parking_lots.rs","remove_disconnected.rs","traffic_signals.rs","transit.rs","turns.rs","walking_turns.rs"]},{"name":"objects","files":["area.rs","building.rs","bus_stop.rs","intersection.rs","lane.rs","mod.rs","parking_lot.rs","road.rs","stop_signs.rs","traffic_signals.rs","turn.rs","zone.rs"]},{"name":"pathfind","files":["ch.rs","dijkstra.rs","driving.rs","mod.rs","node_map.rs","pathfinder.rs","uber_turns.rs","walking.rs"]}],"files":["city.rs","lib.rs","map.rs","osm.rs","raw.rs","traversable.rs"]};
|
||||
sourcesIndex["osm_viewer"] = {"name":"","files":["lib.rs","viewer.rs"]};
|
||||
sourcesIndex["parking_mapper"] = {"name":"","files":["main.rs","mapper.rs"]};
|
||||
sourcesIndex["popdat"] = {"name":"","files":["activities.rs","distribute_people.rs","import_census.rs","lib.rs","make_person.rs"]};
|
||||
|
@ -462,6 +462,7 @@
|
||||
<span id="459">459</span>
|
||||
<span id="460">460</span>
|
||||
<span id="461">461</span>
|
||||
<span id="462">462</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! This is a tool to experiment with the concept of 15-minute neighborhoods. Can you access your</span>
|
||||
<span class="doccomment">//! daily needs (like groceries, a cafe, a library) within a 15-minute walk, bike ride, or public</span>
|
||||
@ -470,7 +471,7 @@
|
||||
<span class="doccomment">//! See https://github.com/dabreegster/abstreet/issues/393 for more context.</span>
|
||||
|
||||
<span class="kw">use</span> <span class="ident">abstutil</span>::<span class="ident">prettyprint_usize</span>;
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Pt2D</span>};
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Pt2D</span>, <span class="ident">Speed</span>};
|
||||
<span class="kw">use</span> <span class="ident">map_gui</span>::<span class="ident">tools</span>::{
|
||||
<span class="ident">amenity_type</span>, <span class="ident">nice_map_name</span>, <span class="ident">open_browser</span>, <span class="ident">CityPicker</span>, <span class="ident">ColorLegend</span>, <span class="ident">PopupMsg</span>,
|
||||
};
|
||||
@ -657,6 +658,7 @@
|
||||
<span class="ident">allow_shoulders</span>: <span class="ident">panel</span>
|
||||
.<span class="ident">maybe_is_checked</span>(<span class="string">"Allow walking on the shoulder of the road without a sidewalk"</span>)
|
||||
.<span class="ident">unwrap_or</span>(<span class="bool-val">true</span>),
|
||||
<span class="ident">walking_speed</span>: <span class="ident">Speed</span>::<span class="ident">meters_per_second</span>(<span class="number">1.34</span>),
|
||||
})
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">Options</span>::<span class="ident">Biking</span>
|
||||
|
@ -122,7 +122,7 @@
|
||||
<span class="doccomment">/// The output of `rustdoc -V`</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"rustdoc 1.48.0 (7eac88abb 2020-11-16)"</span>;
|
||||
<span class="doccomment">/// The built-time in RFC2822, UTC</span>
|
||||
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"Fri, 25 Dec 2020 00:07:27 +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">"Fri, 25 Dec 2020 00:44:03 +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>
|
||||
|
@ -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="Source to the Rust file `map_model/src/connectivity.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>connectivity.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source to the Rust file `map_model/src/connectivity/mod.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>mod.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
@ -101,32 +101,6 @@
|
||||
<span id="98"> 98</span>
|
||||
<span id="99"> 99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
<span id="102">102</span>
|
||||
<span id="103">103</span>
|
||||
<span id="104">104</span>
|
||||
<span id="105">105</span>
|
||||
<span id="106">106</span>
|
||||
<span id="107">107</span>
|
||||
<span id="108">108</span>
|
||||
<span id="109">109</span>
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">// TODO Possibly these should be methods on Map.</span>
|
||||
|
||||
@ -136,10 +110,13 @@
|
||||
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Speed</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::{<span class="ident">build_graph_for_pedestrians</span>, <span class="ident">build_graph_for_vehicles</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::{<span class="ident">driving_cost</span>, <span class="ident">WalkingNode</span>, <span class="ident">WalkingOptions</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">walking</span>::{<span class="ident">all_walking_costs_from</span>, <span class="ident">WalkingOptions</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::<span class="ident">build_graph_for_vehicles</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::{<span class="ident">driving_cost</span>, <span class="ident">WalkingNode</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">BuildingID</span>, <span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">PathConstraints</span>};
|
||||
|
||||
<span class="kw">mod</span> <span class="ident">walking</span>;
|
||||
|
||||
<span class="doccomment">/// Calculate the srongy connected components (SCC) of the part of the map accessible by constraints</span>
|
||||
<span class="doccomment">/// (ie, the graph of sidewalks or driving+bike lanes). The largest component is the "main" graph;</span>
|
||||
<span class="doccomment">/// the rest is disconnected. Returns (lanes in the largest "main" component, all other disconnected</span>
|
||||
@ -177,35 +154,6 @@
|
||||
(<span class="ident">largest_group</span>, <span class="ident">disconnected</span>)
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Starting from one building, calculate the cost to all others. If a destination isn't reachable,</span>
|
||||
<span class="doccomment">/// it won't be included in the results. Ignore results greater than the time_limit away.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">all_walking_costs_from</span>(
|
||||
<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>,
|
||||
<span class="ident">start</span>: <span class="ident">BuildingID</span>,
|
||||
<span class="ident">time_limit</span>: <span class="ident">Duration</span>,
|
||||
<span class="ident">opts</span>: <span class="ident">WalkingOptions</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">HashMap</span><span class="op"><</span><span class="ident">BuildingID</span>, <span class="ident">Duration</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">graph</span> <span class="op">=</span> <span class="ident">build_graph_for_pedestrians</span>(<span class="ident">map</span>, <span class="ident">opts</span>);
|
||||
<span class="kw">let</span> <span class="ident">start</span> <span class="op">=</span> <span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">start</span>).<span class="ident">sidewalk_pos</span>, <span class="ident">map</span>);
|
||||
<span class="kw">let</span> <span class="ident">cost_per_node</span> <span class="op">=</span> <span class="ident">petgraph</span>::<span class="ident">algo</span>::<span class="ident">dijkstra</span>(<span class="kw-2">&</span><span class="ident">graph</span>, <span class="ident">start</span>, <span class="prelude-val">None</span>, <span class="op">|</span>(<span class="kw">_</span>, <span class="kw">_</span>, <span class="ident">cost</span>)<span class="op">|</span> <span class="kw-2">*</span><span class="ident">cost</span>);
|
||||
|
||||
<span class="comment">// Assign every building a cost based on which end of the sidewalk it's closest to</span>
|
||||
<span class="comment">// TODO We could try to get a little more accurate by accounting for the distance from that</span>
|
||||
<span class="comment">// end of the sidewalk to the building</span>
|
||||
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_buildings</span>() {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">seconds</span>) <span class="op">=</span> <span class="ident">cost_per_node</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">b</span>.<span class="ident">sidewalk_pos</span>, <span class="ident">map</span>)) {
|
||||
<span class="kw">let</span> <span class="ident">duration</span> <span class="op">=</span> <span class="ident">Duration</span>::<span class="ident">seconds</span>(<span class="kw-2">*</span><span class="ident">seconds</span> <span class="kw">as</span> <span class="ident">f64</span>);
|
||||
<span class="kw">if</span> <span class="ident">duration</span> <span class="op"><</span><span class="op">=</span> <span class="ident">time_limit</span> {
|
||||
<span class="ident">results</span>.<span class="ident">insert</span>(<span class="ident">b</span>.<span class="ident">id</span>, <span class="ident">duration</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="ident">results</span>
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Starting from one building, calculate the cost to all others. If a destination isn't reachable,</span>
|
||||
<span class="doccomment">/// it won't be included in the results. Ignore results greater than the time_limit away.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">all_vehicle_costs_from</span>(
|
||||
@ -255,4 +203,4 @@
|
||||
<span class="ident">results</span>
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "map_model";</script><script src="../../main.js"></script><script src="../../source-script.js"></script><script src="../../source-files.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
248
rustdoc/src/map_model/connectivity/walking.rs.html
Normal file
248
rustdoc/src/map_model/connectivity/walking.rs.html
Normal file
@ -0,0 +1,248 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source to the Rust file `map_model/src/connectivity/walking.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>walking.rs.html -- source</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../map_model/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
|
||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span>
|
||||
<span id="2"> 2</span>
|
||||
<span id="3"> 3</span>
|
||||
<span id="4"> 4</span>
|
||||
<span id="5"> 5</span>
|
||||
<span id="6"> 6</span>
|
||||
<span id="7"> 7</span>
|
||||
<span id="8"> 8</span>
|
||||
<span id="9"> 9</span>
|
||||
<span id="10"> 10</span>
|
||||
<span id="11"> 11</span>
|
||||
<span id="12"> 12</span>
|
||||
<span id="13"> 13</span>
|
||||
<span id="14"> 14</span>
|
||||
<span id="15"> 15</span>
|
||||
<span id="16"> 16</span>
|
||||
<span id="17"> 17</span>
|
||||
<span id="18"> 18</span>
|
||||
<span id="19"> 19</span>
|
||||
<span id="20"> 20</span>
|
||||
<span id="21"> 21</span>
|
||||
<span id="22"> 22</span>
|
||||
<span id="23"> 23</span>
|
||||
<span id="24"> 24</span>
|
||||
<span id="25"> 25</span>
|
||||
<span id="26"> 26</span>
|
||||
<span id="27"> 27</span>
|
||||
<span id="28"> 28</span>
|
||||
<span id="29"> 29</span>
|
||||
<span id="30"> 30</span>
|
||||
<span id="31"> 31</span>
|
||||
<span id="32"> 32</span>
|
||||
<span id="33"> 33</span>
|
||||
<span id="34"> 34</span>
|
||||
<span id="35"> 35</span>
|
||||
<span id="36"> 36</span>
|
||||
<span id="37"> 37</span>
|
||||
<span id="38"> 38</span>
|
||||
<span id="39"> 39</span>
|
||||
<span id="40"> 40</span>
|
||||
<span id="41"> 41</span>
|
||||
<span id="42"> 42</span>
|
||||
<span id="43"> 43</span>
|
||||
<span id="44"> 44</span>
|
||||
<span id="45"> 45</span>
|
||||
<span id="46"> 46</span>
|
||||
<span id="47"> 47</span>
|
||||
<span id="48"> 48</span>
|
||||
<span id="49"> 49</span>
|
||||
<span id="50"> 50</span>
|
||||
<span id="51"> 51</span>
|
||||
<span id="52"> 52</span>
|
||||
<span id="53"> 53</span>
|
||||
<span id="54"> 54</span>
|
||||
<span id="55"> 55</span>
|
||||
<span id="56"> 56</span>
|
||||
<span id="57"> 57</span>
|
||||
<span id="58"> 58</span>
|
||||
<span id="59"> 59</span>
|
||||
<span id="60"> 60</span>
|
||||
<span id="61"> 61</span>
|
||||
<span id="62"> 62</span>
|
||||
<span id="63"> 63</span>
|
||||
<span id="64"> 64</span>
|
||||
<span id="65"> 65</span>
|
||||
<span id="66"> 66</span>
|
||||
<span id="67"> 67</span>
|
||||
<span id="68"> 68</span>
|
||||
<span id="69"> 69</span>
|
||||
<span id="70"> 70</span>
|
||||
<span id="71"> 71</span>
|
||||
<span id="72"> 72</span>
|
||||
<span id="73"> 73</span>
|
||||
<span id="74"> 74</span>
|
||||
<span id="75"> 75</span>
|
||||
<span id="76"> 76</span>
|
||||
<span id="77"> 77</span>
|
||||
<span id="78"> 78</span>
|
||||
<span id="79"> 79</span>
|
||||
<span id="80"> 80</span>
|
||||
<span id="81"> 81</span>
|
||||
<span id="82"> 82</span>
|
||||
<span id="83"> 83</span>
|
||||
<span id="84"> 84</span>
|
||||
<span id="85"> 85</span>
|
||||
<span id="86"> 86</span>
|
||||
<span id="87"> 87</span>
|
||||
<span id="88"> 88</span>
|
||||
<span id="89"> 89</span>
|
||||
<span id="90"> 90</span>
|
||||
<span id="91"> 91</span>
|
||||
<span id="92"> 92</span>
|
||||
<span id="93"> 93</span>
|
||||
<span id="94"> 94</span>
|
||||
<span id="95"> 95</span>
|
||||
<span id="96"> 96</span>
|
||||
<span id="97"> 97</span>
|
||||
<span id="98"> 98</span>
|
||||
<span id="99"> 99</span>
|
||||
<span id="100">100</span>
|
||||
<span id="101">101</span>
|
||||
<span id="102">102</span>
|
||||
<span id="103">103</span>
|
||||
<span id="104">104</span>
|
||||
<span id="105">105</span>
|
||||
<span id="106">106</span>
|
||||
<span id="107">107</span>
|
||||
<span id="108">108</span>
|
||||
<span id="109">109</span>
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">cmp</span>::<span class="ident">Ordering</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">collections</span>::{<span class="ident">BinaryHeap</span>, <span class="ident">HashMap</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">Speed</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::<span class="ident">WalkingNode</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">BuildingID</span>, <span class="ident">LaneType</span>, <span class="ident">Map</span>, <span class="ident">PathConstraints</span>};
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="doccomment">/// If true, allow walking on shoulders.</span>
|
||||
<span class="kw">pub</span> <span class="ident">allow_shoulders</span>: <span class="ident">bool</span>,
|
||||
<span class="kw">pub</span> <span class="ident">walking_speed</span>: <span class="ident">Speed</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">default</span>() <span class="op">-</span><span class="op">></span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="ident">WalkingOptions</span> {
|
||||
<span class="ident">allow_shoulders</span>: <span class="bool-val">true</span>,
|
||||
<span class="ident">walking_speed</span>: <span class="ident">Speed</span>::<span class="ident">meters_per_second</span>(<span class="number">1.34</span>),
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">cost</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">dist</span>: <span class="ident">Distance</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Duration</span> {
|
||||
<span class="ident">dist</span> <span class="op">/</span> <span class="self">self</span>.<span class="ident">walking_speed</span>
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">PartialEq</span>, <span class="ident">Eq</span>)]</span>
|
||||
<span class="kw">struct</span> <span class="ident">Item</span> {
|
||||
<span class="ident">cost</span>: <span class="ident">Duration</span>,
|
||||
<span class="ident">node</span>: <span class="ident">WalkingNode</span>,
|
||||
}
|
||||
<span class="kw">impl</span> <span class="ident">PartialOrd</span> <span class="kw">for</span> <span class="ident">Item</span> {
|
||||
<span class="kw">fn</span> <span class="ident">partial_cmp</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">other</span>: <span class="kw-2">&</span><span class="ident">Item</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Ordering</span><span class="op">></span> {
|
||||
<span class="prelude-val">Some</span>(<span class="self">self</span>.<span class="ident">cmp</span>(<span class="ident">other</span>))
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">Ord</span> <span class="kw">for</span> <span class="ident">Item</span> {
|
||||
<span class="kw">fn</span> <span class="ident">cmp</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">other</span>: <span class="kw-2">&</span><span class="ident">Item</span>) <span class="op">-</span><span class="op">></span> <span class="ident">Ordering</span> {
|
||||
<span class="comment">// BinaryHeap is a max-heap, so reverse the comparison to get smallest times first.</span>
|
||||
<span class="kw">let</span> <span class="ident">ord</span> <span class="op">=</span> <span class="ident">other</span>.<span class="ident">cost</span>.<span class="ident">cmp</span>(<span class="kw-2">&</span><span class="self">self</span>.<span class="ident">cost</span>);
|
||||
<span class="kw">if</span> <span class="ident">ord</span> <span class="op">!</span><span class="op">=</span> <span class="ident">Ordering</span>::<span class="ident">Equal</span> {
|
||||
<span class="kw">return</span> <span class="ident">ord</span>;
|
||||
}
|
||||
<span class="self">self</span>.<span class="ident">node</span>.<span class="ident">cmp</span>(<span class="kw-2">&</span><span class="ident">other</span>.<span class="ident">node</span>)
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Starting from one building, calculate the cost to all others. If a destination isn't reachable,</span>
|
||||
<span class="doccomment">/// it won't be included in the results. Ignore results greater than the time_limit away.</span>
|
||||
<span class="doccomment">///</span>
|
||||
<span class="doccomment">/// If the start building is on the shoulder of a road and `!opts.allow_shoulders`, then the</span>
|
||||
<span class="doccomment">/// results will always be empty.</span>
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">all_walking_costs_from</span>(
|
||||
<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>,
|
||||
<span class="ident">start</span>: <span class="ident">BuildingID</span>,
|
||||
<span class="ident">time_limit</span>: <span class="ident">Duration</span>,
|
||||
<span class="ident">opts</span>: <span class="ident">WalkingOptions</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">HashMap</span><span class="op"><</span><span class="ident">BuildingID</span>, <span class="ident">Duration</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">start_lane</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">start</span>).<span class="ident">sidewalk_pos</span>.<span class="ident">lane</span>());
|
||||
<span class="kw">if</span> <span class="ident">start_lane</span>.<span class="ident">lane_type</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType</span>::<span class="ident">Shoulder</span> <span class="op">&&</span> <span class="op">!</span><span class="ident">opts</span>.<span class="ident">allow_shoulders</span> {
|
||||
<span class="kw">return</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">queue</span>: <span class="ident">BinaryHeap</span><span class="op"><</span><span class="ident">Item</span><span class="op">></span> <span class="op">=</span> <span class="ident">BinaryHeap</span>::<span class="ident">new</span>();
|
||||
<span class="ident">queue</span>.<span class="ident">push</span>(<span class="ident">Item</span> {
|
||||
<span class="ident">cost</span>: <span class="ident">Duration</span>::<span class="ident">ZERO</span>,
|
||||
<span class="ident">node</span>: <span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">map</span>.<span class="ident">get_b</span>(<span class="ident">start</span>).<span class="ident">sidewalk_pos</span>, <span class="ident">map</span>),
|
||||
});
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">cost_per_node</span>: <span class="ident">HashMap</span><span class="op"><</span><span class="ident">WalkingNode</span>, <span class="ident">Duration</span><span class="op">></span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
|
||||
<span class="kw">while</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">current</span>) <span class="op">=</span> <span class="ident">queue</span>.<span class="ident">pop</span>() {
|
||||
<span class="kw">if</span> <span class="ident">cost_per_node</span>.<span class="ident">contains_key</span>(<span class="kw-2">&</span><span class="ident">current</span>.<span class="ident">node</span>) {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="kw">if</span> <span class="ident">current</span>.<span class="ident">cost</span> <span class="op">></span> <span class="ident">time_limit</span> {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="ident">cost_per_node</span>.<span class="ident">insert</span>(<span class="ident">current</span>.<span class="ident">node</span>, <span class="ident">current</span>.<span class="ident">cost</span>);
|
||||
|
||||
<span class="kw">let</span> (<span class="ident">l</span>, <span class="ident">is_dst_i</span>) <span class="op">=</span> <span class="kw">match</span> <span class="ident">current</span>.<span class="ident">node</span> {
|
||||
<span class="ident">WalkingNode</span>::<span class="ident">SidewalkEndpoint</span>(<span class="ident">l</span>, <span class="ident">is_dst_i</span>) <span class="op">=</span><span class="op">></span> (<span class="ident">l</span>, <span class="ident">is_dst_i</span>),
|
||||
<span class="kw">_</span> <span class="op">=</span><span class="op">></span> <span class="macro">unreachable</span><span class="macro">!</span>(),
|
||||
};
|
||||
<span class="kw">let</span> <span class="ident">lane</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">l</span>);
|
||||
<span class="comment">// Cross the lane</span>
|
||||
<span class="kw">if</span> <span class="ident">opts</span>.<span class="ident">allow_shoulders</span> <span class="op">|</span><span class="op">|</span> <span class="ident">lane</span>.<span class="ident">lane_type</span> <span class="op">!</span><span class="op">=</span> <span class="ident">LaneType</span>::<span class="ident">Shoulder</span> {
|
||||
<span class="ident">queue</span>.<span class="ident">push</span>(<span class="ident">Item</span> {
|
||||
<span class="ident">cost</span>: <span class="ident">current</span>.<span class="ident">cost</span> <span class="op">+</span> <span class="ident">opts</span>.<span class="ident">cost</span>(<span class="ident">lane</span>.<span class="ident">length</span>()),
|
||||
<span class="ident">node</span>: <span class="ident">WalkingNode</span>::<span class="ident">SidewalkEndpoint</span>(<span class="ident">lane</span>.<span class="ident">id</span>, <span class="op">!</span><span class="ident">is_dst_i</span>),
|
||||
});
|
||||
}
|
||||
<span class="comment">// All turns from the lane</span>
|
||||
<span class="kw">for</span> <span class="ident">turn</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">get_turns_for</span>(<span class="ident">lane</span>.<span class="ident">id</span>, <span class="ident">PathConstraints</span>::<span class="ident">Pedestrian</span>) {
|
||||
<span class="kw">if</span> (<span class="ident">turn</span>.<span class="ident">id</span>.<span class="ident">parent</span> <span class="op">=</span><span class="op">=</span> <span class="ident">lane</span>.<span class="ident">dst_i</span>) <span class="op">!</span><span class="op">=</span> <span class="ident">is_dst_i</span> {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="ident">queue</span>.<span class="ident">push</span>(<span class="ident">Item</span> {
|
||||
<span class="ident">cost</span>: <span class="ident">current</span>.<span class="ident">cost</span> <span class="op">+</span> <span class="ident">opts</span>.<span class="ident">cost</span>(<span class="ident">turn</span>.<span class="ident">geom</span>.<span class="ident">length</span>()),
|
||||
<span class="ident">node</span>: <span class="ident">WalkingNode</span>::<span class="ident">SidewalkEndpoint</span>(
|
||||
<span class="ident">turn</span>.<span class="ident">id</span>.<span class="ident">dst</span>,
|
||||
<span class="ident">map</span>.<span class="ident">get_l</span>(<span class="ident">turn</span>.<span class="ident">id</span>.<span class="ident">dst</span>).<span class="ident">dst_i</span> <span class="op">=</span><span class="op">=</span> <span class="ident">turn</span>.<span class="ident">id</span>.<span class="ident">parent</span>,
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">results</span> <span class="op">=</span> <span class="ident">HashMap</span>::<span class="ident">new</span>();
|
||||
<span class="comment">// Assign every building a cost based on which end of the sidewalk it's closest to</span>
|
||||
<span class="comment">// TODO We could try to get a little more accurate by accounting for the distance from that</span>
|
||||
<span class="comment">// end of the sidewalk to the building</span>
|
||||
<span class="kw">for</span> <span class="ident">b</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_buildings</span>() {
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">cost</span>) <span class="op">=</span> <span class="ident">cost_per_node</span>.<span class="ident">get</span>(<span class="kw-2">&</span><span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">b</span>.<span class="ident">sidewalk_pos</span>, <span class="ident">map</span>)) {
|
||||
<span class="ident">results</span>.<span class="ident">insert</span>(<span class="ident">b</span>.<span class="ident">id</span>, <span class="kw-2">*</span><span class="ident">cost</span>);
|
||||
}
|
||||
}
|
||||
|
||||
<span class="ident">results</span>
|
||||
}
|
||||
</pre></div>
|
||||
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../";window.currentCrate = "map_model";</script><script src="../../../main.js"></script><script src="../../../source-script.js"></script><script src="../../../source-files.js"></script><script defer src="../../../search-index.js"></script></body></html>
|
@ -113,27 +113,6 @@
|
||||
<span id="110">110</span>
|
||||
<span id="111">111</span>
|
||||
<span id="112">112</span>
|
||||
<span id="113">113</span>
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
<span id="127">127</span>
|
||||
<span id="128">128</span>
|
||||
<span id="129">129</span>
|
||||
<span id="130">130</span>
|
||||
<span id="131">131</span>
|
||||
<span id="132">132</span>
|
||||
<span id="133">133</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="doccomment">//! Pathfinding without needing to build a separate contraction hierarchy.</span>
|
||||
|
||||
@ -143,7 +122,7 @@
|
||||
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::<span class="ident">driving</span>::<span class="ident">driving_cost</span>;
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::<span class="ident">pathfind</span>::<span class="ident">walking</span>::{<span class="ident">walking_cost</span>, <span class="ident">WalkingNode</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">LaneID</span>, <span class="ident">LaneType</span>, <span class="ident">Map</span>, <span class="ident">Path</span>, <span class="ident">PathConstraints</span>, <span class="ident">PathRequest</span>, <span class="ident">PathStep</span>, <span class="ident">TurnID</span>};
|
||||
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">LaneID</span>, <span class="ident">Map</span>, <span class="ident">Path</span>, <span class="ident">PathConstraints</span>, <span class="ident">PathRequest</span>, <span class="ident">PathStep</span>, <span class="ident">TurnID</span>};
|
||||
|
||||
<span class="comment">// TODO These should maybe keep the DiGraphMaps as state. It's cheap to recalculate it for edits.</span>
|
||||
|
||||
@ -208,31 +187,10 @@
|
||||
<span class="prelude-val">Some</span>(<span class="ident">Path</span>::<span class="ident">new</span>(<span class="ident">map</span>, <span class="ident">steps</span>, <span class="ident">req</span>.<span class="ident">clone</span>(), <span class="ident">Vec</span>::<span class="ident">new</span>()))
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="doccomment">/// If true, allow walking on shoulders.</span>
|
||||
<span class="kw">pub</span> <span class="ident">allow_shoulders</span>: <span class="ident">bool</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">default</span>() <span class="op">-</span><span class="op">></span> <span class="ident">WalkingOptions</span> {
|
||||
<span class="ident">WalkingOptions</span> {
|
||||
<span class="ident">allow_shoulders</span>: <span class="bool-val">true</span>,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">build_graph_for_pedestrians</span>(
|
||||
<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>,
|
||||
<span class="ident">opts</span>: <span class="ident">WalkingOptions</span>,
|
||||
) <span class="op">-</span><span class="op">></span> <span class="ident">DiGraphMap</span><span class="op"><</span><span class="ident">WalkingNode</span>, <span class="ident">usize</span><span class="op">></span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">build_graph_for_pedestrians</span>(<span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="ident">DiGraphMap</span><span class="op"><</span><span class="ident">WalkingNode</span>, <span class="ident">usize</span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">graph</span>: <span class="ident">DiGraphMap</span><span class="op"><</span><span class="ident">WalkingNode</span>, <span class="ident">usize</span><span class="op">></span> <span class="op">=</span> <span class="ident">DiGraphMap</span>::<span class="ident">new</span>();
|
||||
<span class="kw">for</span> <span class="ident">l</span> <span class="kw">in</span> <span class="ident">map</span>.<span class="ident">all_lanes</span>() {
|
||||
<span class="kw">if</span> <span class="ident">l</span>.<span class="ident">is_walkable</span>() {
|
||||
<span class="kw">if</span> <span class="op">!</span><span class="ident">opts</span>.<span class="ident">allow_shoulders</span> <span class="op">&&</span> <span class="ident">l</span>.<span class="ident">lane_type</span> <span class="op">=</span><span class="op">=</span> <span class="ident">LaneType</span>::<span class="ident">Shoulder</span> {
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">cost</span> <span class="op">=</span> <span class="ident">walking_cost</span>(<span class="ident">l</span>.<span class="ident">length</span>());
|
||||
<span class="kw">let</span> <span class="ident">n1</span> <span class="op">=</span> <span class="ident">WalkingNode</span>::<span class="ident">SidewalkEndpoint</span>(<span class="ident">l</span>.<span class="ident">id</span>, <span class="bool-val">true</span>);
|
||||
<span class="kw">let</span> <span class="ident">n2</span> <span class="op">=</span> <span class="ident">WalkingNode</span>::<span class="ident">SidewalkEndpoint</span>(<span class="ident">l</span>.<span class="ident">id</span>, <span class="bool-val">false</span>);
|
||||
@ -255,7 +213,7 @@
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">simple_walking_path</span>(<span class="ident">req</span>: <span class="kw-2">&</span><span class="ident">PathRequest</span>, <span class="ident">map</span>: <span class="kw-2">&</span><span class="ident">Map</span>) <span class="op">-</span><span class="op">></span> <span class="prelude-ty">Option</span><span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="ident">WalkingNode</span><span class="op">></span><span class="op">></span> {
|
||||
<span class="kw">let</span> <span class="ident">graph</span> <span class="op">=</span> <span class="ident">build_graph_for_pedestrians</span>(<span class="ident">map</span>, <span class="ident">WalkingOptions</span>::<span class="ident">default</span>());
|
||||
<span class="kw">let</span> <span class="ident">graph</span> <span class="op">=</span> <span class="ident">build_graph_for_pedestrians</span>(<span class="ident">map</span>);
|
||||
|
||||
<span class="kw">let</span> <span class="ident">closest_start</span> <span class="op">=</span> <span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">req</span>.<span class="ident">start</span>, <span class="ident">map</span>);
|
||||
<span class="kw">let</span> <span class="ident">closest_end</span> <span class="op">=</span> <span class="ident">WalkingNode</span>::<span class="ident">closest</span>(<span class="ident">req</span>.<span class="ident">end</span>, <span class="ident">map</span>);
|
||||
|
@ -653,7 +653,7 @@
|
||||
<span class="kw">use</span> <span class="ident">geom</span>::{<span class="ident">Distance</span>, <span class="ident">Duration</span>, <span class="ident">PolyLine</span>, <span class="ident">Speed</span>, <span class="ident">EPSILON_DIST</span>};
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">ch</span>::<span class="ident">ContractionHierarchyPathfinder</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">dijkstra</span>::{<span class="ident">build_graph_for_pedestrians</span>, <span class="ident">build_graph_for_vehicles</span>, <span class="ident">WalkingOptions</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">dijkstra</span>::{<span class="ident">build_graph_for_pedestrians</span>, <span class="ident">build_graph_for_vehicles</span>};
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">driving</span>::<span class="ident">driving_cost</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">pathfinder</span>::<span class="ident">Pathfinder</span>;
|
||||
<span class="kw">pub</span> <span class="kw">use</span> <span class="self">self</span>::<span class="ident">walking</span>::{<span class="ident">walking_cost</span>, <span class="ident">WalkingNode</span>};
|
||||
|
Loading…
Reference in New Issue
Block a user