Enum geojson::Value[][src]

pub enum Value {
    Point(PointType),
    MultiPoint(Vec<PointType>),
    LineString(LineStringType),
    MultiLineString(Vec<LineStringType>),
    Polygon(PolygonType),
    MultiPolygon(Vec<PolygonType>),
    GeometryCollection(Vec<Geometry>),
}

The underlying Geometry value

Conversion from geo_types

From is implemented for Value for converting from geo_types geospatial types:

extern crate geo_types;
extern crate geojson;

let point = geo_types::Point::new(2., 9.);
assert_eq!(
    geojson::Value::from(&point),
    geojson::Value::Point(vec![2., 9.]),
);

Variants

Point

[GeoJSON Format Specification § 3.1.2] (https://tools.ietf.org/html/rfc7946#section-3.1.2

MultiPoint

[GeoJSON Format Specification § 3.1.3] (https://tools.ietf.org/html/rfc7946#section-3.1.3

LineString

[GeoJSON Format Specification § 3.1.4] (https://tools.ietf.org/html/rfc7946#section-3.1.4

MultiLineString

[GeoJSON Format Specification § 3.1.5] (https://tools.ietf.org/html/rfc7946#section-3.1.5)

Polygon

[GeoJSON Format Specification § 3.1.6] (https://tools.ietf.org/html/rfc7946#section-3.1.6)

MultiPolygon

[GeoJSON Format Specification § 3.1.7] (https://tools.ietf.org/html/rfc7946#section-3.1.7)

GeometryCollection

[GeoJSON Format Specification § 3.1.8] (https://tools.ietf.org/html/rfc7946#section-3.1.8)

Trait Implementations

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Value
[src]

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

This method tests for !=.

impl<'a> From<&'a Value> for JsonValue
[src]

Performs the conversion.

impl Serialize for Value
[src]

Serialize this value into the given Serde serializer. Read more

impl<T> TryInto<Point<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a Point<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<MultiPoint<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a MultiPoint<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<LineString<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a LineString<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<MultiLineString<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a MultiLineString<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<Polygon<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a Polygon<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<MultiPolygon<T>> for Value where
    T: Float
[src]

impl<'a, T> From<&'a MultiPolygon<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<T> TryInto<GeometryCollection<T>> for Value where
    T: Float
[src]

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

impl<'a, T> From<&'a GeometryCollection<T>> for Value where
    T: Float
[src]

Performs the conversion.

impl<'a, T> From<&'a Geometry<T>> for Value where
    T: Float
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Value

impl Sync for Value