Skip to content

Commit

Permalink
Into<Geometry> for Line
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory McCann committed Feb 13, 2019
1 parent 96c7846 commit 0aa8e12
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 0aa8e12

Please sign in to comment.