In the above case, it's pretty much equivalent to using the existing deserialize_geometry method, but this new method also works for any of the types that impl TryFromWkt, so notably you can deserialize directly to the inner Geometry members when know you're expecting a particular geometry.
CHANGES.md
if knowledge of this change could be valuable to users.[x] I ran cargo fmt
The first two commits are just no-ops to move things around. But the final commit is the interesting one. With the exciting bit at https://github.com/georust/wkt/pull/99/files#diff-95bc9d4f4b531a38268ea56c3b4db680f15a6ab9a2bed1b257ad64217f477e5bR61
The new feature is the introduction of
wkt::deserialize_wkt
In the above case, it's pretty much equivalent to using the existing
deserialize_geometry
method, but this new method also works for any of the types that implTryFromWkt
, so notably you can deserialize directly to the inner Geometry members when know you're expecting a particular geometry.