This commit is contained in:
dabreegster 2022-06-24 23:21:24 +00:00
parent 6b455b0928
commit 56d052995d
40 changed files with 81 additions and 89 deletions

View File

@ -4,5 +4,5 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../cli/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In cli::clip_osm</a></h2><div id="sidebar-vars" data-name="clip" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../cli/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">cli</a>::<wbr><a href="index.html">clip_osm</a>::<wbr><a class="fn" href="#">clip</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/cli/clip_osm.rs.html#23-98">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn clip(pbf_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, boundary: &amp;Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;, out_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.unit.html">()</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cli" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">cli</a>::<wbr><a href="index.html">clip_osm</a>::<wbr><a class="fn" href="#">clip</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/cli/clip_osm.rs.html#23-98">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn clip(pbf_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, boundary: &amp;Polygon, out_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.unit.html">()</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cli" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -4,5 +4,5 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../cli/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In cli::clip_osm</a></h2><div id="sidebar-vars" data-name="to_pt" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../cli/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">cli</a>::<wbr><a href="index.html">clip_osm</a>::<wbr><a class="fn" href="#">to_pt</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/cli/clip_osm.rs.html#100-103">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn to_pt(pair: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>Lat, Lon<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>) -&gt; Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cli" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">cli</a>::<wbr><a href="index.html">clip_osm</a>::<wbr><a class="fn" href="#">to_pt</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/cli/clip_osm.rs.html#100-103">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn to_pt(pair: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>Lat, Lon<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>) -&gt; Point</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cli" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -4,5 +4,5 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../geom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In geom::conversions</a></h2><div id="sidebar-vars" data-name="pts_to_line_string" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../geom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">conversions</a>::<wbr><a class="fn" href="#">pts_to_line_string</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/geom/conversions.rs.html#8-14">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn pts_to_line_string(raw_pts: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&amp;[</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>) -&gt; LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="geom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">conversions</a>::<wbr><a class="fn" href="#">pts_to_line_string</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/geom/conversions.rs.html#8-14">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn pts_to_line_string(raw_pts: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&amp;[</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>) -&gt; LineString</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="geom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -5,10 +5,10 @@
<nav class="sidebar"><a class="sidebar-logo" href="../../geom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">FindClosest</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.geometries">geometries</a></li><li><a href="#structfield.quadtree">quadtree</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.add">add</a></li><li><a href="#method.all_close_pts">all_close_pts</a></li><li><a href="#method.closest_pt">closest_pt</a></li><li><a href="#method.new">new</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In geom::find_closest</a></h2><div id="sidebar-vars" data-name="FindClosest" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../geom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">geom</a>::<wbr><a href="index.html">find_closest</a>::<wbr><a class="struct" href="#">FindClosest</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/geom/find_closest.rs.html#13-17">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct FindClosest&lt;K&gt; {
geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt;,
geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&gt;,
quadtree: QuadTree&lt;K&gt;,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A quad-tree to quickly find the closest points to some polylines.</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.geometries" class="structfield small-section-header"><a href="#structfield.geometries" class="anchor field"></a><code>geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt;</code></span><span id="structfield.quadtree" class="structfield small-section-header"><a href="#structfield.quadtree" class="anchor field"></a><code>quadtree: QuadTree&lt;K&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/find_closest.rs.html#19-89">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl&lt;K&gt; <a class="struct" href="struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/find_closest.rs.html#24-29">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(bounds: &amp;<a class="struct" href="../bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>) -&gt; <a class="struct" href="struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt;</h4></section></summary><div class="docblock"><p>Creates the quad-tree, limited to points contained in the boundary.</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.geometries" class="structfield small-section-header"><a href="#structfield.geometries" class="anchor field"></a><code>geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&gt;</code></span><span id="structfield.quadtree" class="structfield small-section-header"><a href="#structfield.quadtree" class="anchor field"></a><code>quadtree: QuadTree&lt;K&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/find_closest.rs.html#19-89">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl&lt;K&gt; <a class="struct" href="struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/find_closest.rs.html#24-29">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(bounds: &amp;<a class="struct" href="../bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>) -&gt; <a class="struct" href="struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt;</h4></section></summary><div class="docblock"><p>Creates the quad-tree, limited to points contained in the boundary.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/find_closest.rs.html#34-38">source</a></span><a href="#method.add" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.add" class="fnname">add</a>(&amp;mut self, key: K, pts: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&amp;[</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>)</h4></section></summary><div class="docblock"><p>Add an object to the quadtree, remembering some key associated with the points.
TODO This doesnt properly handle single points, and will silently fail by never returning
any matches.</p>

View File

@ -28,7 +28,7 @@ member. If the GeoJSON feature has a property called <code>name</code>, this wil
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#186-190">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#187-189">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLonLat%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#192-196">source</a></span><a href="#impl-From%3CLonLat%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>&gt; for Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#193-195">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLonLat%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#192-196">source</a></span><a href="#impl-From%3CLonLat%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>&gt; for Point</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#193-195">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/gps.rs.html#13">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.61.0/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/1.61.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#816-818">source</a></span><a href="#method.min" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>

View File

@ -4,5 +4,5 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../geom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In geom::polygon</a></h2><div id="sidebar-vars" data-name="from_multi" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../geom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polygon</a>::<wbr><a class="fn" href="#">from_multi</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/geom/polygon.rs.html#631-647">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn from_multi(multi: MultiPolygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="geom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">geom</a>::<wbr><a href="index.html">polygon</a>::<wbr><a class="fn" href="#">from_multi</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/geom/polygon.rs.html#631-647">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn from_multi(multi: MultiPolygon) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="geom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -21,7 +21,7 @@ not match. Polygons constructed from PolyLines will have a very weird order.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pill" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#305-308">source</a></span><a href="#method.pill" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.pill" class="fnname">pill</a>(w: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class="docblock"><p>A rectangle, two sides of which are fully rounded half-circles.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rounded_rectangle" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#312-314">source</a></span><a href="#method.rounded_rectangle" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.rounded_rectangle" class="fnname">rounded_rectangle</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.CornerRadii.html" title="struct geom::CornerRadii">CornerRadii</a>&gt;&gt;(w: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, r: R) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class="docblock"><p>Top-left at the origin. Doesnt take Distance, because this is usually pixels, actually.
If its not possible to apply the specified radius, fallback to a regular rectangle.</p>
</div></details><section id="method.union" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#317-330">source</a></span><a href="#method.union" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(self, other: <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.union_all" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#332-338">source</a></span><a href="#method.union_all" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all" class="fnname">union_all</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union_all_into_multipolygon" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#341-352">source</a></span><a href="#method.union_all_into_multipolygon" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all_into_multipolygon" class="fnname">union_all_into_multipolygon</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; MultiPolygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section></summary><div class="docblock"><p>Union all of the polygons into one geo::MultiPolygon</p>
</div></details><section id="method.union" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#317-330">source</a></span><a href="#method.union" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(self, other: <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.union_all" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#332-338">source</a></span><a href="#method.union_all" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all" class="fnname">union_all</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union_all_into_multipolygon" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#341-352">source</a></span><a href="#method.union_all_into_multipolygon" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all_into_multipolygon" class="fnname">union_all_into_multipolygon</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; MultiPolygon</h4></section></summary><div class="docblock"><p>Union all of the polygons into one geo::MultiPolygon</p>
</div></details><section id="method.intersection" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#354-356">source</a></span><a href="#method.intersection" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section><section id="method.convex_hull" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#358-361">source</a></span><a href="#method.convex_hull" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.convex_hull" class="fnname">convex_hull</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.concave_hull" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#363-367">source</a></span><a href="#method.concave_hull" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.concave_hull" class="fnname">concave_hull</a>(points: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;, concavity: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u32.html">u32</a>) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.polylabel" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#371-374">source</a></span><a href="#method.polylabel" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.polylabel" class="fnname">polylabel</a>(&amp;self) -&gt; <a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h4></section></summary><div class="docblock"><p>Find the “pole of inaccessibility” the most distant internal point from the polygon
outline</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.intersects" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#377-379">source</a></span><a href="#method.intersects" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.intersects" class="fnname">intersects</a>(&amp;self, other: &amp;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Do two polygons intersect at all?</p>
@ -40,13 +40,13 @@ points back to GPS.</p>
key/value properties. Only the first polygon from multipolygons is returned. If
<code>require_in_bounds</code> is set, then the polygon must completely fit within the <code>gps_bounds</code>.</p>
</div></details><section id="method.simplify" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#559-561">source</a></span><a href="#method.simplify" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.simplify" class="fnname">simplify</a>(&amp;self, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.dummy" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#564-566">source</a></span><a href="#method.dummy" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.dummy" class="fnname">dummy</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>An arbitrary placeholder value, when Option types arent worthwhile</p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#571-573">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#571-573">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; Polygon</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#576-593">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#577-592">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#602-610">source</a></span><a href="#impl-From%3CPolygon%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#603-609">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#612-629">source</a></span><a href="#impl-From%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#613-628">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#602-610">source</a></span><a href="#impl-From%3CPolygon%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#603-609">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: Polygon) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#612-629">source</a></span><a href="#impl-From%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for Polygon</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#613-628">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-PartialEq%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for <a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polygon.rs.html#14">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

View File

@ -45,7 +45,7 @@ following the angle of the last line.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_geojson" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#936-948">source</a></span><a href="#method.to_geojson" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</h4></section></summary><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div></details><section id="method.from_geojson" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#950-970">source</a></span><a href="#method.from_geojson" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_geojson" class="fnname">from_geojson</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;feature: &amp;Feature, <br>&nbsp;&nbsp;&nbsp;&nbsp;gps: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.project_pt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#973-983">source</a></span><a href="#method.project_pt" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h4></section></summary><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.overall_angle" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#986-988">source</a></span><a href="#method.overall_angle" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.overall_angle" class="fnname">overall_angle</a>(&amp;self) -&gt; <a class="struct" href="../angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a></h4></section></summary><div class="docblock"><p>Returns the angle from the start to end of this polyline.</p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#990-997">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#1002-1004">source</a></span><a href="#method.step_along" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along" class="fnname">step_along</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer_ends: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, starting <code>buffer_ends</code> from the start and ending <code>buffer_ends</code>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#990-997">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; LineString</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#1002-1004">source</a></span><a href="#method.step_along" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along" class="fnname">step_along</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer_ends: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, starting <code>buffer_ends</code> from the start and ending <code>buffer_ends</code>
before the end. Advance in increments of <code>step_size</code>. Returns the point and angle at each
step.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along_start_end" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/polyline.rs.html#1008-1022">source</a></span><a href="#method.step_along_start_end" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along_start_end" class="fnname">step_along_start_end</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;start_buffer: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;end_buffer: <a class="struct" href="../distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="../pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="../angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, from <code>start_buffer</code> to <code>length - end_buffer</code>. Advance in

View File

@ -17,10 +17,10 @@
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#13">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#13">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#13">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#13">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#147-151">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#148-150">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCoordinate%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#179-183">source</a></span><a href="#impl-From%3CCoordinate%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#180-182">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(coord: Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPoint%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#185-189">source</a></span><a href="#impl-From%3CPoint%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#186-188">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(point: Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#167-171">source</a></span><a href="#impl-From%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#168-170">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#173-177">source</a></span><a href="#impl-From%3CPt2D%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#174-176">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCoordinate%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#179-183">source</a></span><a href="#impl-From%3CCoordinate%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#180-182">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(coord: Coordinate) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPoint%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#185-189">source</a></span><a href="#impl-From%3CPoint%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#186-188">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(point: Point) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#167-171">source</a></span><a href="#impl-From%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Coordinate</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#168-170">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#173-177">source</a></span><a href="#impl-From%3CPt2D%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Point</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#174-176">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#21-25">source</a></span><a href="#impl-PartialEq%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for <a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/pt.rs.html#22-24">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#230">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

View File

@ -34,8 +34,8 @@ polygons?</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#273-281">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#274-280">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLineString%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#294-301">source</a></span><a href="#impl-From%3CLineString%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#295-300">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(line_string: LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#283-292">source</a></span><a href="#impl-From%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#284-291">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ring: <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLineString%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#294-301">source</a></span><a href="#impl-From%3CLineString%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#295-300">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(line_string: LineString) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#283-292">source</a></span><a href="#impl-From%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for LineString</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#284-291">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ring: <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#impl-PartialEq%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for <a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/geom/ring.rs.html#11">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

View File

@ -5,10 +5,10 @@
<nav class="sidebar"><a class="sidebar-logo" href="../geom/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">FindClosest</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.geometries">geometries</a></li><li><a href="#structfield.quadtree">quadtree</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.add">add</a></li><li><a href="#method.all_close_pts">all_close_pts</a></li><li><a href="#method.closest_pt">closest_pt</a></li><li><a href="#method.new">new</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In geom</a></h2><div id="sidebar-vars" data-name="FindClosest" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../geom/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">geom</a>::<wbr><a class="struct" href="#">FindClosest</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/geom/find_closest.rs.html#13-17">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct FindClosest&lt;K&gt; {
geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt;,
geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&gt;,
quadtree: QuadTree&lt;K&gt;,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A quad-tree to quickly find the closest points to some polylines.</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.geometries" class="structfield small-section-header"><a href="#structfield.geometries" class="anchor field"></a><code>geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt;</code></span><span id="structfield.quadtree" class="structfield small-section-header"><a href="#structfield.quadtree" class="anchor field"></a><code>quadtree: QuadTree&lt;K&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/find_closest.rs.html#19-89">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl&lt;K&gt; <a class="struct" href="find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/find_closest.rs.html#24-29">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(bounds: &amp;<a class="struct" href="bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>) -&gt; <a class="struct" href="find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt;</h4></section></summary><div class="docblock"><p>Creates the quad-tree, limited to points contained in the boundary.</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.geometries" class="structfield small-section-header"><a href="#structfield.geometries" class="anchor field"></a><code>geometries: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, LineString&gt;</code></span><span id="structfield.quadtree" class="structfield small-section-header"><a href="#structfield.quadtree" class="anchor field"></a><code>quadtree: QuadTree&lt;K&gt;</code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/find_closest.rs.html#19-89">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl&lt;K&gt; <a class="struct" href="find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/find_closest.rs.html#24-29">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(bounds: &amp;<a class="struct" href="bounds/struct.Bounds.html" title="struct geom::bounds::Bounds">Bounds</a>) -&gt; <a class="struct" href="find_closest/struct.FindClosest.html" title="struct geom::find_closest::FindClosest">FindClosest</a>&lt;K&gt;</h4></section></summary><div class="docblock"><p>Creates the quad-tree, limited to points contained in the boundary.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/find_closest.rs.html#34-38">source</a></span><a href="#method.add" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.add" class="fnname">add</a>(&amp;mut self, key: K, pts: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&amp;[</a><a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a>)</h4></section></summary><div class="docblock"><p>Add an object to the quadtree, remembering some key associated with the points.
TODO This doesnt properly handle single points, and will silently fail by never returning
any matches.</p>

View File

@ -28,7 +28,7 @@ member. If the GeoJSON feature has a property called <code>name</code>, this wil
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#186-190">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#187-189">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLonLat%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#192-196">source</a></span><a href="#impl-From%3CLonLat%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>&gt; for Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#193-195">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLonLat%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#192-196">source</a></span><a href="#impl-From%3CLonLat%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>&gt; for Point</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#193-195">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/gps.rs.html#13">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&amp;self, other: &amp;<a class="struct" href="gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.61.0/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/1.61.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#796-798">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#816-818">source</a></span><a href="#method.min" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>

View File

@ -45,7 +45,7 @@ following the angle of the last line.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_geojson" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#936-948">source</a></span><a href="#method.to_geojson" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_geojson" class="fnname">to_geojson</a>(&amp;self, gps: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>&gt;) -&gt; Geometry</h4></section></summary><div class="docblock"><p>Produces a GeoJSON linestring, optionally mapping the world-space points back to GPS.</p>
</div></details><section id="method.from_geojson" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#950-970">source</a></span><a href="#method.from_geojson" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_geojson" class="fnname">from_geojson</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;feature: &amp;Feature, <br>&nbsp;&nbsp;&nbsp;&nbsp;gps: <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a>&gt;<br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="polyline/struct.PolyLine.html" title="struct geom::polyline::PolyLine">PolyLine</a>&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.project_pt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#973-983">source</a></span><a href="#method.project_pt" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.project_pt" class="fnname">project_pt</a>(&amp;self, query: <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h4></section></summary><div class="docblock"><p>Returns the point on the polyline closest to the query.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.overall_angle" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#986-988">source</a></span><a href="#method.overall_angle" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.overall_angle" class="fnname">overall_angle</a>(&amp;self) -&gt; <a class="struct" href="angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a></h4></section></summary><div class="docblock"><p>Returns the angle from the start to end of this polyline.</p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#990-997">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#1002-1004">source</a></span><a href="#method.step_along" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along" class="fnname">step_along</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer_ends: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, starting <code>buffer_ends</code> from the start and ending <code>buffer_ends</code>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#990-997">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">pub(crate) fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; LineString</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#1002-1004">source</a></span><a href="#method.step_along" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along" class="fnname">step_along</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;buffer_ends: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, starting <code>buffer_ends</code> from the start and ending <code>buffer_ends</code>
before the end. Advance in increments of <code>step_size</code>. Returns the point and angle at each
step.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.step_along_start_end" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polyline.rs.html#1008-1022">source</a></span><a href="#method.step_along_start_end" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.step_along_start_end" class="fnname">step_along_start_end</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;step_size: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;start_buffer: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;end_buffer: <a class="struct" href="distance/struct.Distance.html" title="struct geom::distance::Distance">Distance</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a><a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>, <a class="struct" href="angle/struct.Angle.html" title="struct geom::angle::Angle">Angle</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Walk along the PolyLine, from <code>start_buffer</code> to <code>length - end_buffer</code>. Advance in

View File

@ -21,7 +21,7 @@ not match. Polygons constructed from PolyLines will have a very weird order.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pill" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#305-308">source</a></span><a href="#method.pill" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.pill" class="fnname">pill</a>(w: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class="docblock"><p>A rectangle, two sides of which are fully rounded half-circles.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rounded_rectangle" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#312-314">source</a></span><a href="#method.rounded_rectangle" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.rounded_rectangle" class="fnname">rounded_rectangle</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.CornerRadii.html" title="struct geom::CornerRadii">CornerRadii</a>&gt;&gt;(w: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>, r: R) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class="docblock"><p>Top-left at the origin. Doesnt take Distance, because this is usually pixels, actually.
If its not possible to apply the specified radius, fallback to a regular rectangle.</p>
</div></details><section id="method.union" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#317-330">source</a></span><a href="#method.union" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(self, other: <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.union_all" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#332-338">source</a></span><a href="#method.union_all" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all" class="fnname">union_all</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union_all_into_multipolygon" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#341-352">source</a></span><a href="#method.union_all_into_multipolygon" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all_into_multipolygon" class="fnname">union_all_into_multipolygon</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; MultiPolygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section></summary><div class="docblock"><p>Union all of the polygons into one geo::MultiPolygon</p>
</div></details><section id="method.union" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#317-330">source</a></span><a href="#method.union" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union" class="fnname">union</a>(self, other: <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.union_all" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#332-338">source</a></span><a href="#method.union_all" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all" class="fnname">union_all</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.union_all_into_multipolygon" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#341-352">source</a></span><a href="#method.union_all_into_multipolygon" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.union_all_into_multipolygon" class="fnname">union_all_into_multipolygon</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; MultiPolygon</h4></section></summary><div class="docblock"><p>Union all of the polygons into one geo::MultiPolygon</p>
</div></details><section id="method.intersection" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#354-356">source</a></span><a href="#method.intersection" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.intersection" class="fnname">intersection</a>(&amp;self, other: &amp;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section><section id="method.convex_hull" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#358-361">source</a></span><a href="#method.convex_hull" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.convex_hull" class="fnname">convex_hull</a>(list: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt;) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><section id="method.concave_hull" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#363-367">source</a></span><a href="#method.concave_hull" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.concave_hull" class="fnname">concave_hull</a>(points: <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt;, concavity: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u32.html">u32</a>) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.polylabel" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#371-374">source</a></span><a href="#method.polylabel" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.polylabel" class="fnname">polylabel</a>(&amp;self) -&gt; <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h4></section></summary><div class="docblock"><p>Find the “pole of inaccessibility” the most distant internal point from the polygon
outline</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.intersects" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#377-379">source</a></span><a href="#method.intersects" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.intersects" class="fnname">intersects</a>(&amp;self, other: &amp;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Do two polygons intersect at all?</p>
@ -40,13 +40,13 @@ points back to GPS.</p>
key/value properties. Only the first polygon from multipolygons is returned. If
<code>require_in_bounds</code> is set, then the polygon must completely fit within the <code>gps_bounds</code>.</p>
</div></details><section id="method.simplify" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#559-561">source</a></span><a href="#method.simplify" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.simplify" class="fnname">simplify</a>(&amp;self, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.dummy" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#564-566">source</a></span><a href="#method.dummy" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.dummy" class="fnname">dummy</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>An arbitrary placeholder value, when Option types arent worthwhile</p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#571-573">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><section id="method.to_geo" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#571-573">source</a></span><a href="#method.to_geo" class="anchor"></a><h4 class="code-header">fn <a href="#method.to_geo" class="fnname">to_geo</a>(&amp;self) -&gt; Polygon</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.61.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#576-593">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#577-592">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#602-610">source</a></span><a href="#impl-From%3CPolygon%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#603-609">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#612-629">source</a></span><a href="#impl-From%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#613-628">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#602-610">source</a></span><a href="#impl-From%3CPolygon%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#603-609">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: Polygon) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#612-629">source</a></span><a href="#impl-From%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for Polygon</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#613-628">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(poly: <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CPolygon%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#impl-PartialEq%3CPolygon%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>&gt; for <a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/polygon.rs.html#14">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

View File

@ -17,10 +17,10 @@
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#13">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#13">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#13">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#13">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#147-151">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#148-150">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCoordinate%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#179-183">source</a></span><a href="#impl-From%3CCoordinate%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#180-182">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(coord: Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPoint%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#185-189">source</a></span><a href="#impl-From%3CPoint%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#186-188">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(point: Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#167-171">source</a></span><a href="#impl-From%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#168-170">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#173-177">source</a></span><a href="#impl-From%3CPt2D%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#174-176">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCoordinate%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#179-183">source</a></span><a href="#impl-From%3CCoordinate%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Coordinate&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#180-182">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(coord: Coordinate) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPoint%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#185-189">source</a></span><a href="#impl-From%3CPoint%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Point&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#186-188">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(point: Point) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#167-171">source</a></span><a href="#impl-From%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Coordinate</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#168-170">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPt2D%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#173-177">source</a></span><a href="#impl-From%3CPt2D%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for Point</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#174-176">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pt: <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CPt2D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#21-25">source</a></span><a href="#impl-PartialEq%3CPt2D%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>&gt; for <a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/pt.rs.html#22-24">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="pt/struct.Pt2D.html" title="struct geom::pt::Pt2D">Pt2D</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/cmp.rs.html#230">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

View File

@ -34,8 +34,8 @@ polygons?</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C%27de%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;'de&gt; <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a>&lt;'de&gt; for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#method.deserialize" class="anchor"></a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a>&lt;__D&gt;(__deserializer: __D) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.61.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__D: <a class="trait" href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a>&lt;'de&gt;,&nbsp;</span></h4></section></summary><div class='docblock'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#273-281">source</a></span><a href="#impl-Display" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#274-280">source</a></span><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLineString%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#294-301">source</a></span><a href="#impl-From%3CLineString%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#295-300">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(line_string: LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#283-292">source</a></span><a href="#impl-From%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#284-291">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ring: <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CLineString%3Cf64%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#294-301">source</a></span><a href="#impl-From%3CLineString%3Cf64%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;LineString&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt; for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#295-300">source</a></span><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(line_string: LineString) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#283-292">source</a></span><a href="#impl-From%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for LineString</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#284-291">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(ring: <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; Self</h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRing%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#impl-PartialEq%3CRing%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>&gt; for <a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/geom/ring.rs.html#11">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="ring/struct.Ring.html" title="struct geom::ring::Ring">Ring</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

View File

@ -4,5 +4,5 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../importer/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In importer::pick_geofabrik</a></h2><div id="sidebar-vars" data-name="find_matching_regions" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../importer/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">importer</a>::<wbr><a href="index.html">pick_geofabrik</a>::<wbr><a class="fn" href="#">find_matching_regions</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/importer/pick_geofabrik.rs.html#48-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn find_matching_regions(<br>&nbsp;&nbsp;&nbsp;&nbsp;geojson: GeoJson, <br>&nbsp;&nbsp;&nbsp;&nbsp;center: <a class="struct" href="../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>MultiPolygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="importer" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">importer</a>::<wbr><a href="index.html">pick_geofabrik</a>::<wbr><a class="fn" href="#">find_matching_regions</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/importer/pick_geofabrik.rs.html#48-77">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>fn find_matching_regions(<br>&nbsp;&nbsp;&nbsp;&nbsp;geojson: GeoJson, <br>&nbsp;&nbsp;&nbsp;&nbsp;center: <a class="struct" href="../../geom/gps/struct.LonLat.html" title="struct geom::gps::LonLat">LonLat</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">(</a>MultiPolygon, <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="importer" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -4,7 +4,7 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../importer/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">Module pick_geofabrik</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section><div id="sidebar-vars" data-name="pick_geofabrik" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../importer/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">importer</a>::<wbr><a class="mod" href="#">pick_geofabrik</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/importer/pick_geofabrik.rs.html#1-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">importer</a>::<wbr><a class="mod" href="#">pick_geofabrik</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/importer/pick_geofabrik.rs.html#1-77">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.find_matching_regions.html" title="importer::pick_geofabrik::find_matching_regions fn">find_matching_regions</a><span title="Restricted Visibility">&nbsp;🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.load_remote_geojson.html" title="importer::pick_geofabrik::load_remote_geojson fn">load_remote_geojson</a><span title="Restricted Visibility">&nbsp;🔒</span> </div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.pick_geofabrik.html" title="importer::pick_geofabrik::pick_geofabrik fn">pick_geofabrik</a></div><div class="item-right docblock-short"><p>Given the path to an Osmosis boundary polygon, return the URL of a Geofabrik osm.pbf file that
best covers the boundary.</p>
</div></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="importer" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>

View File

@ -11,7 +11,7 @@
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#29-55">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#33-35">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(map: &amp;<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, neighbourhood: &amp;<a class="struct" href="../neighbourhood/struct.Neighbourhood.html" title="struct ltn::neighbourhood::Neighbourhood">Neighbourhood</a>) -&gt; <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h4></section></summary><div class="docblock"><p>Partition a neighbourhoods boundary polygon based on the cells. This discretizes space into
a grid, and then extracts a polygon from the raster. The results dont look perfect, but
its fast.</p>
</div></details><section id="method.draw" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#37-45">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.draw" class="fnname">draw</a>(&amp;self) -&gt; GeomBatch</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_multipolygons" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#48-54">source</a></span><a href="#method.to_multipolygons" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_multipolygons" class="fnname">to_multipolygons</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;MultiPolygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Per cell, convert all polygons to a <code>geo::MultiPolygon</code>. Leave the coordinate system as map-space.</p>
</div></details><section id="method.draw" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#37-45">source</a></span><a href="#method.draw" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.draw" class="fnname">draw</a>(&amp;self) -&gt; GeomBatch</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_multipolygons" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/ltn/draw_cells.rs.html#48-54">source</a></span><a href="#method.to_multipolygons" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.to_multipolygons" class="fnname">to_multipolygons</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;MultiPolygon&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Per cell, convert all polygons to a <code>geo::MultiPolygon</code>. Leave the coordinate system as map-space.</p>
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RenderCells.html" title="struct ltn::draw_cells::RenderCells">RenderCells</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.61.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#218-222">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.61.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.reference.html">&amp;mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.61.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>

View File

@ -4,6 +4,6 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../../../map_gui/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In map_gui::tools::title_screen::built_info</a></h2><div id="sidebar-vars" data-name="BUILT_TIME_UTC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../map_gui/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-ed50344f6d8f69b9/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r&quot;Thu, 23 Jun 2022 15:53:07 +0000&quot;;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
<h1 class="fqn"><span class="in-band">Constant <a href="../../../index.html">map_gui</a>::<wbr><a href="../../index.html">tools</a>::<wbr><a href="../index.html">title_screen</a>::<wbr><a href="index.html">built_info</a>::<wbr><a class="constant" href="#">BUILT_TIME_UTC</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/map_gui/home/runner/work/abstreet/abstreet/target/debug/build/map_gui-ed50344f6d8f69b9/out/built.rs.html#78">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust const"><code>pub const BUILT_TIME_UTC: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a> = r&quot;Fri, 24 Jun 2022 23:20:23 +0000&quot;;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The build time in RFC2822, UTC.</p>
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="map_gui" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
</body></html>

View File

@ -4,7 +4,7 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../popdat/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In popdat::distribute_people</a></h2><div id="sidebar-vars" data-name="distribute_population_to_homes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../popdat/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">popdat</a>::<wbr><a href="index.html">distribute_people</a>::<wbr><a class="fn" href="#">distribute_population_to_homes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/popdat/distribute_people.rs.html#38-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn distribute_population_to_homes(<br>&nbsp;&nbsp;&nbsp;&nbsp;polygon: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Starting from some number of total people living in a polygonal area, randomly distribute them
<h1 class="fqn"><span class="in-band">Function <a href="../index.html">popdat</a>::<wbr><a href="index.html">distribute_people</a>::<wbr><a class="fn" href="#">distribute_population_to_homes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/popdat/distribute_people.rs.html#38-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn distribute_population_to_homes(<br>&nbsp;&nbsp;&nbsp;&nbsp;polygon: Polygon, <br>&nbsp;&nbsp;&nbsp;&nbsp;population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Starting from some number of total people living in a polygonal area, randomly distribute them
to residential buildings within that area. Returns a list of homes with the number of residents
in each.</p>
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="popdat" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>

View File

@ -4,7 +4,7 @@
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../popdat/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In popdat</a></h2><div id="sidebar-vars" data-name="distribute_population_to_homes" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../popdat/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Function <a href="index.html">popdat</a>::<wbr><a class="fn" href="#">distribute_population_to_homes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/popdat/distribute_people.rs.html#38-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn distribute_population_to_homes(<br>&nbsp;&nbsp;&nbsp;&nbsp;polygon: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Starting from some number of total people living in a polygonal area, randomly distribute them
<h1 class="fqn"><span class="in-band">Function <a href="index.html">popdat</a>::<wbr><a class="fn" href="#">distribute_population_to_homes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/popdat/distribute_people.rs.html#38-81">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn distribute_population_to_homes(<br>&nbsp;&nbsp;&nbsp;&nbsp;polygon: Polygon, <br>&nbsp;&nbsp;&nbsp;&nbsp;population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;map: &amp;<a class="struct" href="../map_model/struct.Map.html" title="struct map_model::Map">Map</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rng: &amp;mut <a class="struct" href="https://docs.rs/rand_xorshift/0.3.0/rand_xorshift/struct.XorShiftRng.html" title="struct rand_xorshift::XorShiftRng">XorShiftRng</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/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/1.61.0/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.tuple.html">)</a>&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.61.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.u8.html">u8</a>, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,&nbsp;</span></span></code></span></span></span></span></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Starting from some number of total people living in a polygonal area, randomly distribute them
to residential buildings within that area. Returns a list of homes with the number of residents
in each.</p>
</div></details></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="popdat" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>

View File

@ -5,13 +5,13 @@
<nav class="sidebar"><a class="sidebar-logo" href="../popdat/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">CensusArea</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.polygon">polygon</a></li><li><a href="#structfield.population">population</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.fetch_all_for_map">fetch_all_for_map</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-PartialEq%3CCensusArea%3E">PartialEq&lt;CensusArea&gt;</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></li><li><a href="#impl-VZip%3CV%3E">VZip&lt;V&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In popdat</a></h2><div id="sidebar-vars" data-name="CensusArea" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../popdat/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">popdat</a>::<wbr><a class="struct" href="#">CensusArea</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/popdat/lib.rs.html#45-49">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct CensusArea {
pub polygon: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;,
pub polygon: Polygon,
pub population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents aggregate demographic data for some part of a city. These could be census tracts or
blocks, depending what data we find. All of the areas should roughly partition the map we
probably dont need to guarantee we cover every single building, but we definitely shouldnt
have two overlapping areas.</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.polygon" class="structfield small-section-header"><a href="#structfield.polygon" class="anchor field"></a><code>polygon: Polygon&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.f64.html">f64</a>&gt;</code></span><span id="structfield.population" class="structfield small-section-header"><a href="#structfield.population" class="anchor field"></a><code>population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/import_census.rs.html#8-91">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a></h3></section></summary><div class="impl-items"><section id="method.fetch_all_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/import_census.rs.html#9-90">source</a></span><a href="#method.fetch_all_for_map" class="anchor"></a><h4 class="code-header">pub async fn <a href="#method.fetch_all_for_map" class="fnname">fetch_all_for_map</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map_area: &amp;<a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;bounds: &amp;<a class="struct" href="../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a><br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a>&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.polygon" class="structfield small-section-header"><a href="#structfield.polygon" class="anchor field"></a><code>polygon: Polygon</code></span><span id="structfield.population" class="structfield small-section-header"><a href="#structfield.population" class="anchor field"></a><code>population: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/import_census.rs.html#8-91">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a></h3></section></summary><div class="impl-items"><section id="method.fetch_all_for_map" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/import_census.rs.html#9-90">source</a></span><a href="#method.fetch_all_for_map" class="anchor"></a><h4 class="code-header">pub async fn <a href="#method.fetch_all_for_map" class="fnname">fetch_all_for_map</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;map_area: &amp;<a class="struct" href="../geom/polygon/struct.Polygon.html" title="struct geom::polygon::Polygon">Polygon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;bounds: &amp;<a class="struct" href="../geom/bounds/struct.GPSBounds.html" title="struct geom::bounds::GPSBounds">GPSBounds</a><br>) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.41/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a>&gt;&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.61.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.61.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CCensusArea%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#impl-PartialEq%3CCensusArea%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a>&gt; for <a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><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/1.61.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/popdat/lib.rs.html#44">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="struct.CensusArea.html" title="struct popdat::CensusArea">CensusArea</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>

File diff suppressed because one or more lines are too long

View File

@ -128,7 +128,7 @@
<span class="ident">clip</span>(<span class="kw-2">&amp;</span><span class="ident">pbf_path</span>, <span class="kw-2">&amp;</span><span class="ident">boundary</span>, <span class="kw-2">&amp;</span><span class="ident">out_path</span>)
}
<span class="kw">fn</span> <span class="ident">clip</span>(<span class="ident">pbf_path</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>, <span class="ident">boundary</span>: <span class="kw-2">&amp;</span><span class="ident">Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>, <span class="ident">out_path</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">fn</span> <span class="ident">clip</span>(<span class="ident">pbf_path</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>, <span class="ident">boundary</span>: <span class="kw-2">&amp;</span><span class="ident">Polygon</span>, <span class="ident">out_path</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="comment">// TODO Maybe just have a single map with RcOSMObj. But then the order we write will be wrong.</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">way_node_ids</span>: <span class="ident">HashSet</span><span class="op">&lt;</span><span class="ident">i64</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashSet::new</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">way_ids</span>: <span class="ident">HashSet</span><span class="op">&lt;</span><span class="ident">i64</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">HashSet::new</span>();
@ -205,7 +205,7 @@
<span class="prelude-val">Ok</span>(())
}
<span class="kw">fn</span> <span class="ident">to_pt</span>(<span class="ident">pair</span>: (<span class="ident">osmio::Lat</span>, <span class="ident">osmio::Lon</span>)) -&gt; <span class="ident">Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">fn</span> <span class="ident">to_pt</span>(<span class="ident">pair</span>: (<span class="ident">osmio::Lat</span>, <span class="ident">osmio::Lon</span>)) -&gt; <span class="ident">Point</span> {
<span class="comment">// Note our polygon uses (lon, lat)</span>
(<span class="ident">pair</span>.<span class="number">1</span>.<span class="ident">into</span>(), <span class="ident">pair</span>.<span class="number">0</span>.<span class="ident">into</span>()).<span class="ident">into</span>()
}

View File

@ -24,8 +24,8 @@
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::Pt2D</span>;
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">pts_to_line_string</span>(<span class="ident">raw_pts</span>: <span class="kw-2">&amp;</span>[<span class="ident">Pt2D</span>]) -&gt; <span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">raw_pts</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">pts_to_line_string</span>(<span class="ident">raw_pts</span>: <span class="kw-2">&amp;</span>[<span class="ident">Pt2D</span>]) -&gt; <span class="ident">geo::LineString</span> {
<span class="kw">let</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">raw_pts</span>
.<span class="ident">iter</span>()
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">pt</span><span class="op">|</span> <span class="ident">geo::Point::new</span>(<span class="ident">pt</span>.<span class="ident">x</span>(), <span class="ident">pt</span>.<span class="ident">y</span>()))
.<span class="ident">collect</span>();

View File

@ -106,7 +106,7 @@
<span class="doccomment">/// A quad-tree to quickly find the closest points to some polylines.</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">FindClosest</span><span class="op">&lt;</span><span class="ident">K</span><span class="op">&gt;</span> {
<span class="comment">// TODO maybe any type of geo:: thing</span>
<span class="ident">geometries</span>: <span class="ident">BTreeMap</span><span class="op">&lt;</span><span class="ident">K</span>, <span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span>,
<span class="ident">geometries</span>: <span class="ident">BTreeMap</span><span class="op">&lt;</span><span class="ident">K</span>, <span class="ident">geo::LineString</span><span class="op">&gt;</span>,
<span class="ident">quadtree</span>: <span class="ident">QuadTree</span><span class="op">&lt;</span><span class="ident">K</span><span class="op">&gt;</span>,
}

View File

@ -390,7 +390,7 @@
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">LonLat</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">LonLat</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Point</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">pt</span>: <span class="ident">LonLat</span>) -&gt; <span class="self">Self</span> {
<span class="ident">geo::Point::new</span>(<span class="ident">pt</span>.<span class="ident">x</span>(), <span class="ident">pt</span>.<span class="ident">y</span>())
}

View File

@ -1002,7 +1002,7 @@
}
<span class="doccomment">/// Union all of the polygons into one geo::MultiPolygon</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">union_all_into_multipolygon</span>(<span class="kw-2">mut</span> <span class="ident">list</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span>) -&gt; <span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">union_all_into_multipolygon</span>(<span class="kw-2">mut</span> <span class="ident">list</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span>) -&gt; <span class="ident">geo::MultiPolygon</span> {
<span class="comment">// TODO Not sure why this happened, or if this is really valid to construct...</span>
<span class="kw">if</span> <span class="ident">list</span>.<span class="ident">is_empty</span>() {
<span class="kw">return</span> <span class="ident">geo::MultiPolygon</span>(<span class="ident">Vec::new</span>());
@ -1020,13 +1020,13 @@
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">convex_hull</span>(<span class="ident">list</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span>) -&gt; <span class="ident">Polygon</span> {
<span class="kw">let</span> <span class="ident">mp</span>: <span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">list</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">p</span><span class="op">|</span> <span class="ident">p</span>.<span class="ident">to_geo</span>()).<span class="ident">collect</span>();
<span class="kw">let</span> <span class="ident">mp</span>: <span class="ident">geo::MultiPolygon</span> <span class="op">=</span> <span class="ident">list</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">p</span><span class="op">|</span> <span class="ident">p</span>.<span class="ident">to_geo</span>()).<span class="ident">collect</span>();
<span class="ident">mp</span>.<span class="ident">convex_hull</span>().<span class="ident">into</span>()
}
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">concave_hull</span>(<span class="ident">points</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span>, <span class="ident">concavity</span>: <span class="ident">u32</span>) -&gt; <span class="ident">Polygon</span> {
<span class="kw">use</span> <span class="ident">geo::k_nearest_concave_hull::KNearestConcaveHull</span>;
<span class="kw">let</span> <span class="ident">points</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">points</span>.<span class="ident">iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">p</span><span class="op">|</span> <span class="ident">geo::Point::from</span>(<span class="kw-2">*</span><span class="ident">p</span>)).<span class="ident">collect</span>();
<span class="kw">let</span> <span class="ident">points</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">points</span>.<span class="ident">iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">p</span><span class="op">|</span> <span class="ident">geo::Point::from</span>(<span class="kw-2">*</span><span class="ident">p</span>)).<span class="ident">collect</span>();
<span class="ident">points</span>.<span class="ident">k_nearest_concave_hull</span>(<span class="ident">concavity</span>).<span class="ident">into</span>()
}
@ -1232,7 +1232,7 @@
<span class="comment">// A less verbose way of invoking the From/Into impl. Note this hides a potentially expensive</span>
<span class="comment">// clone. The eventual goal is for Polygon to directly wrap a geo::Polygon, at which point this</span>
<span class="comment">// cost goes away.</span>
<span class="kw">fn</span> <span class="ident">to_geo</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">fn</span> <span class="ident">to_geo</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">geo::Polygon</span> {
<span class="self">self</span>.<span class="ident">clone</span>().<span class="ident">into</span>()
}
}
@ -1263,8 +1263,8 @@
<span class="kw">pub</span> <span class="ident">pt3</span>: <span class="ident">Pt2D</span>,
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Polygon</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">poly</span>: <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>) -&gt; <span class="self">Self</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Polygon</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Polygon</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">poly</span>: <span class="ident">geo::Polygon</span>) -&gt; <span class="self">Self</span> {
<span class="kw">let</span> (<span class="ident">exterior</span>, <span class="ident">interiors</span>) <span class="op">=</span> <span class="ident">poly</span>.<span class="ident">into_inner</span>();
<span class="ident">Polygon::with_holes</span>(
<span class="ident">Ring::from</span>(<span class="ident">exterior</span>),
@ -1273,11 +1273,11 @@
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Polygon</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">poly</span>: <span class="ident">Polygon</span>) -&gt; <span class="self">Self</span> {
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="kw-2">mut</span> <span class="ident">rings</span>) <span class="op">=</span> <span class="ident">poly</span>.<span class="ident">rings</span> {
<span class="kw">let</span> <span class="ident">exterior</span> <span class="op">=</span> <span class="ident">rings</span>.<span class="ident">remove</span>(<span class="number">0</span>);
<span class="kw">let</span> <span class="ident">interiors</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="kw">let</span> <span class="ident">interiors</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::LineString</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="ident">rings</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="ident">geo::LineString::from</span>).<span class="ident">collect</span>();
<span class="ident"><span class="self">Self</span>::new</span>(<span class="ident">exterior</span>.<span class="ident">into</span>(), <span class="ident">interiors</span>)
} <span class="kw">else</span> {
@ -1292,7 +1292,7 @@
}
}
<span class="kw">fn</span> <span class="ident">from_multi</span>(<span class="ident">multi</span>: <span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span> {
<span class="kw">fn</span> <span class="ident">from_multi</span>(<span class="ident">multi</span>: <span class="ident">geo::MultiPolygon</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Polygon</span><span class="op">&gt;</span> {
<span class="comment">// TODO This should just call Polygon::from, but while importing maps, it seems like</span>
<span class="comment">// intersection() is hitting non-Ring cases that crash. So keep using buggy_new for now.</span>
<span class="ident">multi</span>

View File

@ -2131,8 +2131,8 @@
<span class="self">self</span>.<span class="ident">first_pt</span>().<span class="ident">angle_to</span>(<span class="self">self</span>.<span class="ident">last_pt</span>())
}
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn</span> <span class="ident">to_geo</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="op">=</span> <span class="self">self</span>
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn</span> <span class="ident">to_geo</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">geo::LineString</span> {
<span class="kw">let</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&gt;</span> <span class="op">=</span> <span class="self">self</span>
.<span class="ident">pts</span>
.<span class="ident">iter</span>()
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">pt</span><span class="op">|</span> <span class="ident">geo::Point::new</span>(<span class="ident">pt</span>.<span class="ident">x</span>(), <span class="ident">pt</span>.<span class="ident">y</span>()))

View File

@ -358,26 +358,26 @@
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Coordinate</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Coordinate</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">pt</span>: <span class="ident">Pt2D</span>) -&gt; <span class="self">Self</span> {
<span class="ident">geo::Coordinate</span> { <span class="ident">x</span>: <span class="ident">pt</span>.<span class="ident">x</span>, <span class="ident">y</span>: <span class="ident">pt</span>.<span class="ident">y</span> }
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::Point</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">pt</span>: <span class="ident">Pt2D</span>) -&gt; <span class="self">Self</span> {
<span class="ident">geo::Point::new</span>(<span class="ident">pt</span>.<span class="ident">x</span>, <span class="ident">pt</span>.<span class="ident">y</span>)
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Coordinate</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Pt2D</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">coord</span>: <span class="ident">geo::Coordinate</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>) -&gt; <span class="self">Self</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Coordinate</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Pt2D</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">coord</span>: <span class="ident">geo::Coordinate</span>) -&gt; <span class="self">Self</span> {
<span class="ident">Pt2D::new</span>(<span class="ident">coord</span>.<span class="ident">x</span>, <span class="ident">coord</span>.<span class="ident">y</span>)
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Pt2D</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">point</span>: <span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>) -&gt; <span class="self">Self</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::Point</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Pt2D</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">point</span>: <span class="ident">geo::Point</span>) -&gt; <span class="self">Self</span> {
<span class="ident">Pt2D::new</span>(<span class="ident">point</span>.<span class="ident">x</span>(), <span class="ident">point</span>.<span class="ident">y</span>())
}
}

View File

@ -586,7 +586,7 @@
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Ring</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">Ring</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">geo::LineString</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">ring</span>: <span class="ident">Ring</span>) -&gt; <span class="self">Self</span> {
<span class="kw">let</span> <span class="ident">coords</span> <span class="op">=</span> <span class="ident">ring</span>
.<span class="ident">pts</span>
@ -597,8 +597,8 @@
}
}
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Ring</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">line_string</span>: <span class="ident">geo::LineString</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>) -&gt; <span class="self">Self</span> {
<span class="kw">impl</span> <span class="ident">From</span><span class="op">&lt;</span><span class="ident">geo::LineString</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Ring</span> {
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">line_string</span>: <span class="ident">geo::LineString</span>) -&gt; <span class="self">Self</span> {
<span class="comment">// Dedupe adjacent points. Only needed for results from concave hull.</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">pts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Pt2D</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">line_string</span>.<span class="number">0</span>.<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="ident">Pt2D::from</span>).<span class="ident">collect</span>();
<span class="ident">pts</span>.<span class="ident">dedup</span>();

View File

@ -80,10 +80,6 @@
<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>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::convert::TryInto</span>;
<span class="kw">use</span> <span class="ident">anyhow::Result</span>;
@ -131,11 +127,8 @@
<span class="ident">abstio::maybe_read_json</span>(<span class="ident">path</span>, <span class="kw-2">&amp;mut</span> <span class="ident">Timer::throwaway</span>())
}
<span class="kw">fn</span> <span class="ident">find_matching_regions</span>(
<span class="ident">geojson</span>: <span class="ident">GeoJson</span>,
<span class="ident">center</span>: <span class="ident">LonLat</span>,
) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>, <span class="ident">String</span>)<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">center</span>: <span class="ident">geo::Point</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">center</span>.<span class="ident">into</span>();
<span class="kw">fn</span> <span class="ident">find_matching_regions</span>(<span class="ident">geojson</span>: <span class="ident">GeoJson</span>, <span class="ident">center</span>: <span class="ident">LonLat</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span>(<span class="ident">geo::MultiPolygon</span>, <span class="ident">String</span>)<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">center</span>: <span class="ident">geo::Point</span> <span class="op">=</span> <span class="ident">center</span>.<span class="ident">into</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">matches</span> <span class="op">=</span> <span class="ident">Vec::new</span>();
@ -145,8 +138,7 @@
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">GeoJson::FeatureCollection</span>(<span class="ident">fc</span>) <span class="op">=</span> <span class="ident">geojson</span> {
<span class="macro">info!</span>(<span class="string">&quot;Searching {} regions&quot;</span>, <span class="ident">fc</span>.<span class="ident">features</span>.<span class="ident">len</span>());
<span class="kw">for</span> <span class="kw-2">mut</span> <span class="ident">feature</span> <span class="kw">in</span> <span class="ident">fc</span>.<span class="ident">features</span> {
<span class="kw">let</span> <span class="ident">mp</span>: <span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="ident">feature</span>.<span class="ident">geometry</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>().<span class="ident">value</span>.<span class="ident">try_into</span>().<span class="ident">unwrap</span>();
<span class="kw">let</span> <span class="ident">mp</span>: <span class="ident">geo::MultiPolygon</span> <span class="op">=</span> <span class="ident">feature</span>.<span class="ident">geometry</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>().<span class="ident">value</span>.<span class="ident">try_into</span>().<span class="ident">unwrap</span>();
<span class="kw">if</span> <span class="ident">mp</span>.<span class="ident">contains</span>(<span class="kw-2">&amp;</span><span class="ident">center</span>) {
<span class="ident">matches</span>.<span class="ident">push</span>((
<span class="ident">mp</span>,

View File

@ -346,7 +346,7 @@
}
<span class="doccomment">/// Per cell, convert all polygons to a `geo::MultiPolygon`. Leave the coordinate system as map-space.</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">to_multipolygons</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::MultiPolygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span><span class="op">&gt;</span> {
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">to_multipolygons</span>(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">geo::MultiPolygon</span><span class="op">&gt;</span> {
<span class="self">self</span>.<span class="ident">polygons_per_cell</span>
.<span class="ident">clone</span>()
.<span class="ident">into_iter</span>()

View File

@ -221,7 +221,7 @@
<span class="kw">for</span> <span class="ident">feature</span> <span class="kw">in</span> <span class="kw-2">&amp;mut</span> <span class="ident">features</span> {
<span class="comment">// geojson to geo</span>
<span class="comment">// This could be a Polygon, MultiPolygon, LineString</span>
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">geom</span>: <span class="ident">geo::Geometry</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">feature</span>.<span class="ident">geometry</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>().<span class="ident">value</span>.<span class="ident">try_into</span>()<span class="question-mark">?</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">geom</span>: <span class="ident">geo::Geometry</span> <span class="op">=</span> <span class="ident">feature</span>.<span class="ident">geometry</span>.<span class="ident">take</span>().<span class="ident">unwrap</span>().<span class="ident">value</span>.<span class="ident">try_into</span>()<span class="question-mark">?</span>;
<span class="ident">geom</span>.<span class="ident">map_coords_in_place</span>(<span class="op">|</span><span class="ident">c</span><span class="op">|</span> {
<span class="kw">let</span> <span class="ident">gps</span> <span class="op">=</span> <span class="ident">Pt2D::new</span>(<span class="ident">c</span>.<span class="ident">x</span>, <span class="ident">c</span>.<span class="ident">y</span>).<span class="ident">to_gps</span>(<span class="ident">gps_bounds</span>);

View File

@ -179,7 +179,7 @@
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">RUSTDOC_VERSION</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;rustdoc 1.61.0 (fe5b13d68 2022-05-18)&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The build time in RFC2822, UTC.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Thu, 23 Jun 2022 15:53:07 +0000&quot;</span>;
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">BUILT_TIME_UTC</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;Fri, 24 Jun 2022 23:20:23 +0000&quot;</span>;
<span class="attribute">#[<span class="ident">doc</span><span class="op">=</span><span class="string">r#&quot;The target architecture, given by `CARGO_CFG_TARGET_ARCH`.&quot;#</span>]</span>
<span class="attribute">#[<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span>
<span class="kw">pub</span> <span class="kw">const</span> <span class="ident">CFG_TARGET_ARCH</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="string">r&quot;x86_64&quot;</span>;

View File

@ -122,7 +122,7 @@
<span class="doccomment">/// to residential buildings within that area. Returns a list of homes with the number of residents</span>
<span class="doccomment">/// in each.</span>
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">distribute_population_to_homes</span>(
<span class="ident">polygon</span>: <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>,
<span class="ident">polygon</span>: <span class="ident">geo::Polygon</span>,
<span class="ident">population</span>: <span class="ident">usize</span>,
<span class="ident">map</span>: <span class="kw-2">&amp;</span><span class="ident">Map</span>,
<span class="ident">rng</span>: <span class="kw-2">&amp;mut</span> <span class="ident">XorShiftRng</span>,

View File

@ -109,7 +109,7 @@
<span class="kw">use</span> <span class="ident">flatgeobuf::HttpFgbReader</span>;
<span class="kw">use</span> <span class="ident">geozero::geo_types::GeoWriter</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">geo_map_area</span>: <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="kw">_</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">map_area</span>.<span class="ident">clone</span>().<span class="ident">into</span>();
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">geo_map_area</span>: <span class="ident">geo::Polygon</span> <span class="op">=</span> <span class="ident">map_area</span>.<span class="ident">clone</span>().<span class="ident">into</span>();
<span class="ident">geo_map_area</span>.<span class="ident">map_coords_in_place</span>(<span class="op">|</span><span class="ident">c</span><span class="op">|</span> {
<span class="kw">let</span> <span class="ident">projected</span> <span class="op">=</span> <span class="ident">geom::Pt2D::new</span>(<span class="ident">c</span>.<span class="ident">x</span>, <span class="ident">c</span>.<span class="ident">y</span>).<span class="ident">to_gps</span>(<span class="ident">bounds</span>);
(<span class="ident">projected</span>.<span class="ident">x</span>(), <span class="ident">projected</span>.<span class="ident">y</span>()).<span class="ident">into</span>()

View File

@ -181,7 +181,7 @@
<span class="doccomment">/// have two overlapping areas.</span>
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">PartialEq</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">CensusArea</span> {
<span class="kw">pub</span> <span class="ident">polygon</span>: <span class="ident">geo::Polygon</span><span class="op">&lt;</span><span class="ident">f64</span><span class="op">&gt;</span>,
<span class="kw">pub</span> <span class="ident">polygon</span>: <span class="ident">geo::Polygon</span>,
<span class="kw">pub</span> <span class="ident">population</span>: <span class="ident">usize</span>,
<span class="comment">// TODO Not sure what goes here, whatever census data actually has that could be useful</span>
}