Enum geo::Geometry [] [src]

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

An enum representing any possible geomtry type.

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

Variants

Trait Implementations

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

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

This method tests for !=.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.