Skip to content

Commit

Permalink
Merge georust#340
Browse files Browse the repository at this point in the history
340: Into<Geometry> for Line r=frewsxcv a=rory



Co-authored-by: Rory McCann <rory@technomancy.org>
  • Loading branch information
bors[bot] and Rory McCann committed Feb 16, 2019
2 parents 39c4569 + 0aa8e12 commit 07896f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geo-types/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ impl<T: CoordinateType> From<Point<T>> for Geometry<T> {
Geometry::Point(x)
}
}
impl<T: CoordinateType> From<Line<T>> for Geometry<T> {
fn from(x: Line<T>) -> Geometry<T> {
Geometry::Line(x)
}
}
impl<T: CoordinateType> From<LineString<T>> for Geometry<T> {
fn from(x: LineString<T>) -> Geometry<T> {
Geometry::LineString(x)
Expand Down

0 comments on commit 07896f4

Please sign in to comment.