<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Maybe a misnomer, but like a PolyLine, but closed."><metaname="keywords"content="rust, rustlang, rust-lang, Ring"><title>Ring in geom - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../storage.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../main.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../favicon.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../geom/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../rust-logo.svg"alt="logo"></div></a><h2class="location"></h2></nav><navclass="sidebar"><aclass="sidebar-logo"href="../geom/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../rust-logo.svg"alt="logo"></div></a><h2class="location"><ahref="#">Ring</a></h2><divclass="sidebar-elems"><section><divclass="block"><h3class="sidebar-title"><ahref="#fields">Fields</a></h3><ul><li><ahref="#structfield.pts">pts</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#implementations">Methods</a></h3><ul><li><ahref="#method.all_intersections">all_intersections</a></li><li><ahref="#method.as_geo_linestring">as_geo_linestring</a></li><li><ahref="#method.contains_pt">contains_pt</a></li><li><ahref="#method.deduping_new">deduping_new</a></li><li><ahref="#method.doubles_back">doubles_back</a></li><li><ahref="#method.get_both_slices_btwn">get_both_slices_btwn</a></li><li><ahref="#method.get_shorter_slice_between">get_shorter_slice_between</a></li><li><ahref="#method.get_shorter_slice_btwn">get_shorter_slice_btwn</a></li><li><ahref="#method.get_slice_between">get_slice_between</a></li><li><ahref="#method.into_points">into_points</a></li><li><ahref="#method.into_polygon">into_polygon</a></li><li><ahref="#method.must_new">must_new</a></li><li><ahref="#method.new">new</a></li><li><ahref="#method.points">points</a></li><li><ahref="#method.polylabel">polylabel</a></li><li><ahref="#method.split_points">split_points</a></li><li><ahref="#method.to_geojson">to_geojson</a></li><li><ahref="#method.to_outline">to_outline</a></li><li><ahref="#method.translate">translate</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#trait-implementations">Trait Implementations</a></h3><ul><li><ahref="#impl-Clone-for-Ring">Clone</a></li><li><ahref="#impl-Debug-for-Ring">Debug</a></li><li><ahref="#impl-Deserialize%3C%27de%3E-for-Ring">Deserialize<'de></a></li><li><ahref="#impl-Display-for-Ring">Display</a></li><li><ahref
}</code></pre></div><detailsclass="rustdoc-toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Maybe a misnomer, but like a PolyLine, but closed.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_outline"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#55-58">source</a></span><h4class="code-header">pub fn <ahref="#method.to_outline"class="fnname">to_outline</a>(&self, thickness: <aclass="struct"href="distance/struct.Distance.html"title="struct geom::distance::Distance">Distance</a>) -><aclass="struct"href="tessellation/struct.Tessellation.html"title="struct geom::tessellation::Tessellation">Tessellation</a></h4></section></summary><divclass="docblock"><p>Draws the ring with some thickness, with half of it straddling the interor of the ring, and
</div></details><sectionid="method.get_both_slices_btwn"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#93-117">source</a></span><h4class="code-header">pub(crate) fn <ahref="#method.get_both_slices_btwn"class="fnname">get_both_slices_btwn</a>(<br> &self,<br> pt1: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>,<br> pt2: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><(<aclass="struct"href="polyline/struct.PolyLine.html"title="struct geom::polyline::PolyLine">PolyLine</a>, <aclass="struct"href="polyline/struct.PolyLine.html"title="struct geom::polyline::PolyLine">PolyLine</a>)></h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.get_slice_between"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#122-139">source</a></span><h4class="code-header">pub fn <ahref="#method.get_slice_between"class="fnname">get_slice_between</a>(<br> &self,<br> pt1: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>,<br> pt2: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>,<br> longer: <aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="polyline/struct.PolyLine.html"title="struct geom::polyline::PolyLine">PolyLine</a>></h4></section></summary><divclass="docblock"><p>Assuming both points are somewhere along the ring, return the points in between the two, by
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.get_shorter_slice_between"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#144-146">source</a></span><h4class="code-header">pub fn <ahref="#method.get_shorter_slice_between"class="fnname">get_shorter_slice_between</a>(&self, pt1: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>, pt2: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="polyline/struct.PolyLine.html"title="struct geom::polyline::PolyLine">PolyLine</a>></h4></section></summary><divclass="docblock"><p>Assuming both points are somewhere along the ring, return the points in between the two, by
</div></details><sectionid="method.contains_pt"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#190-194">source</a></span><h4class="code-header">pub fn <ahref="#method.contains_pt"class="fnname">contains_pt</a>(&self, pt: <aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_geojson"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#197-209">source</a></span><h4class="code-header">pub fn <ahref="#method.to_geojson"class="fnname">to_geojson</a>(&self, gps: <aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="bounds/struct.GPSBounds.html"title="struct geom::bounds::GPSBounds">GPSBounds</a>>) -> Geometry</h4></section></summary><divclass="docblock"><p>Produces a GeoJSON polygon, optionally mapping the world-space points back to GPS.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.translate"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#212-217">source</a></span><h4class="code-header">pub fn <ahref="#method.translate"class="fnname">translate</a>(self, dx: <aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.f64.html">f64</a>, dy: <aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.f64.html">f64</a>) -><aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h4></section></summary><divclass="docblock"><p>Translates the ring by a fixed offset.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.polylabel"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#221-234">source</a></span><h4class="code-header">pub fn <ahref="#method.polylabel"class="fnname">polylabel</a>(&self) -><aclass="struct"href="pt/struct.Pt2D.html"title="struct geom::pt::Pt2D">Pt2D</a></h4></section></summary><divclass="docblock"><p>Find the “pole of inaccessibility” – the most distant internal point from the polygon
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.doubles_back"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#242-259">source</a></span><h4class="code-header">pub fn <ahref="#method.doubles_back"class="fnname">doubles_back</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Look for “bad” rings that double back on themselves. These’re likely to cause many
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.as_geo_linestring"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#262-270">source</a></span><h4class="code-header">pub fn <ahref="#method.as_geo_linestring"class="fnname">as_geo_linestring</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass="docblock"><p>Print the coordinates of this ring as a <code>geo::LineString</code> for easy bug reports</p>
</div></details></div></details></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#impl-Clone-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#method.clone"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone"class="fnname">clone</a>(&self) -><aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h4></section></summary><divclass='docblock'><p>Returns a copy of the value. <ahref="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/clone.rs.html#132-134">source</a></span><ahref="#method.clone_from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from"class="fnname">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><divclass='docblock'><p>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#impl-Debug-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#method.fmt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.64.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Deserialize%3C%27de%3E-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#impl-Deserialize%3C%27de%3E-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.deserialize"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#method.deserialize"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize"class="fnname">deserialize</a><__D>(__deserializer: __D) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, __D::<aclass="associatedtype"href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> __D: <aclass="trait"href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></h4></section></summary><divclass='docblock'><p>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Display-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#273-281">source</a></span><ahref="#impl-Display-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt-1"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#274-280">source</a></span><ahref="#method.fmt-1"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Display.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.64.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-From%3CRing%3E-for-LineString"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#283-292">source</a></span><ahref="#impl-From%3CRing%3E-for-LineString"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><<aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a>> for LineString</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#284-291">source</a></span><ahref="#method.from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(ring: <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a>) -> Self</h4></section></summary><divclass='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-PartialEq%3CRing%3E-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#impl-PartialEq%3CRing%3E-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a>> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.eq"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#method.eq"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq"class="fnname">eq</a>(&self, other: &<aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <ahref="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Serialize-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#impl-Serialize-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://docs.rs/serde/1.0.126/serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.serialize"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#11">source</a></span><ahref="#method.serialize"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/serde/1.0.126/serde/ser/trait.Serialize.html#tymethod.serialize"class="fnname">serialize</a><__S>(&self, __serializer: __S) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><__S::<aclass="associatedtype"href="https://docs.rs/serde/1.0.126/serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, __S::<aclass="associatedtype"href="https://docs.rs/serde/1.0.126/serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><spanclass="where fmt-newline">where<br> __S: <aclass="trait"href="https://docs.rs/serde/1.0.126/serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>, </span></h4></section></summary><divclass='docblock'><p>Serialize this value into the given Serde serializer. <ahref="https://docs.rs/serde/1.0.126/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-TryFrom%3CLineString%3Cf64%3E%3E-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/geom/ring.rs.html#294-301">source</a></span><ahref="#impl-TryFrom%3CLineString%3Cf64%3E%3E-for-Ring"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><LineString<<aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.f64.html">f64</a>>> for <aclass="struct"href="ring/struct.Ring.html"title="struct geom::ring::Ring">Ring</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="struct"href="https://docs.rs/anyhow/1.0.41/anyhow/struct.Error.html"title="struct anyhow::Error">Error</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
<code><ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html"title="From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-ToOwned-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#83">source</a></span><ahref="#impl-ToOwned-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Owned"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Owned"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="associatedtype">Owned</a> = T</h4></section></summary><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#88">source</a></span><ahref="#method.to_owned"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#92">source</a></span><ahref="#method.clone_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>T)</h4></section></summary><divclass='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-ToString-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/alloc/string.rs.html#2479">source</a></span><ahref="#impl-ToString-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.64.0/alloc/string/trait.ToString.html"title="trait alloc::string::ToString">ToString</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_string"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/alloc/string.rs.html#2485">source</a></span><ahref="#method.to_string"class="anchor"></a><h4class="code-header">default fn <ahref="https://doc.rust-lang.org/1.64.0/alloc/string/trait.ToString.html#tymethod.to_string"class="fnname">to_string</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass='docblock'><p>Converts the given value to a <code>String</code>. <ahref="https://doc.rust-lang.org/1.64.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#598">source</a></span><ahref="#impl-TryFrom%3CU%3E-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_from-1"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#604">source</a></span><ahref="#method.try_from-1"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#583">source</a></span><ahref="#impl-TryInto%3CU%3E-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-2"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-2"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#589">source</a></span><ahref="#method.try_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><sectionid="impl-DeserializeOwned-for-Ring"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/serde/1.0.126/src/serde/de/mod.rs.html#603">source</a></span><ahref="#impl-DeserializeOwned-for-Ring"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/serde/1.0.126/serde/de/trait.DeserializeOwned.html"title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <spanclass="where fmt-newline">where<br> T: for<'de><aclass="trait"href="https://docs.rs/serde/1.0.126/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></h3></section></div></section></div></main><divid="rustdoc-vars"data-root-path="../"data-current-crate="geom"data-themes="ayu,dark,light"data-resource-suffix=""data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)"></div></body></html>