Enum geo::Geometry [] [src]

pub enum Geometry<T> where
    T: Float
{ Point(Point<T>), Line(Line<T>), LineString(LineString<T>), Polygon(Polygon<T>), MultiPoint(MultiPoint<T>), MultiLineString(MultiLineString<T>), MultiPolygon(MultiPolygon<T>), GeometryCollection(GeometryCollection<T>), }

An enum representing any possible geometry type.

All Geo types can be converted to a Geometry member using .into() (as part of the std::convert::Into pattern).

Variants

Trait Implementations

impl<T: PartialEq> PartialEq for Geometry<T> where
    T: Float
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Clone> Clone for Geometry<T> where
    T: Float
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Geometry<T> where
    T: Float
[src]

[src]

Formats the value using the given formatter.

impl<T: Float> From<Point<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<LineString<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<Polygon<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<MultiPoint<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<MultiLineString<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float> From<MultiPolygon<T>> for Geometry<T>
[src]

[src]

Performs the conversion.

impl<T: Float, NT: Float> MapCoords<T, NT> for Geometry<T>
[src]

[src]

Apply a function to all the coordinates in a geometric object, returning a new object. Read more

impl ToPostgis<Geometry> for Geometry<f64>
[src]

[src]

Converts this geometry to a PostGIS type, using the supplied SRID.

[src]

Converts this WGS84 geometry to a PostGIS type.