pub enum Value {
Point(PointType),
MultiPoint(Vec<PointType>),
LineString(LineStringType),
MultiLineString(Vec<LineStringType>),
Polygon(PolygonType),
MultiPolygon(Vec<PolygonType>),
GeometryCollection(Vec<Geometry>),
}
Expand description
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(PointType)
Point
[GeoJSON Format Specification § 3.1.2](https://tools.ietf.org/html/rfc7946#section-3.1.2
MultiPoint(Vec<PointType>)
MultiPoint
[GeoJSON Format Specification § 3.1.3](https://tools.ietf.org/html/rfc7946#section-3.1.3
LineString(LineStringType)
LineString
[GeoJSON Format Specification § 3.1.4](https://tools.ietf.org/html/rfc7946#section-3.1.4
MultiLineString(Vec<LineStringType>)
MultiLineString
Polygon(PolygonType)
MultiPolygon(Vec<PolygonType>)
MultiPolygon
GeometryCollection(Vec<Geometry>)
GeometryCollection
Trait Implementations
sourceimpl<'a, T> From<&'a GeometryCollection<T>> for Valuewhere
T: Float,
impl<'a, T> From<&'a GeometryCollection<T>> for Valuewhere
T: Float,
sourcefn from(geometry_collection: &GeometryCollection<T>) -> Self
fn from(geometry_collection: &GeometryCollection<T>) -> Self
Converts to this type from the input type.
sourceimpl<'a, T> From<&'a LineString<T>> for Valuewhere
T: Float,
impl<'a, T> From<&'a LineString<T>> for Valuewhere
T: Float,
sourcefn from(line_string: &LineString<T>) -> Self
fn from(line_string: &LineString<T>) -> Self
Converts to this type from the input type.
sourceimpl<'a, T> From<&'a MultiLineString<T>> for Valuewhere
T: Float,
impl<'a, T> From<&'a MultiLineString<T>> for Valuewhere
T: Float,
sourcefn from(multi_line_string: &MultiLineString<T>) -> Self
fn from(multi_line_string: &MultiLineString<T>) -> Self
Converts to this type from the input type.
sourceimpl<'a, T> From<&'a MultiPoint<T>> for Valuewhere
T: Float,
impl<'a, T> From<&'a MultiPoint<T>> for Valuewhere
T: Float,
sourcefn from(multi_point: &MultiPoint<T>) -> Self
fn from(multi_point: &MultiPoint<T>) -> Self
Converts to this type from the input type.
sourceimpl<'a, T> From<&'a MultiPolygon<T>> for Valuewhere
T: Float,
impl<'a, T> From<&'a MultiPolygon<T>> for Valuewhere
T: Float,
sourcefn from(multi_polygon: &MultiPolygon<T>) -> Self
fn from(multi_polygon: &MultiPolygon<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> TryInto<GeometryCollection<T>> for Valuewhere
T: Float,
impl<T> TryInto<GeometryCollection<T>> for Valuewhere
T: Float,
sourceimpl<T> TryInto<LineString<T>> for Valuewhere
T: Float,
impl<T> TryInto<LineString<T>> for Valuewhere
T: Float,
sourceimpl<T> TryInto<MultiLineString<T>> for Valuewhere
T: Float,
impl<T> TryInto<MultiLineString<T>> for Valuewhere
T: Float,
sourceimpl<T> TryInto<MultiPoint<T>> for Valuewhere
T: Float,
impl<T> TryInto<MultiPoint<T>> for Valuewhere
T: Float,
sourceimpl<T> TryInto<MultiPolygon<T>> for Valuewhere
T: Float,
impl<T> TryInto<MultiPolygon<T>> for Valuewhere
T: Float,
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more