[−][src]Enum geojson::Value
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
impl<T> TryInto<Point<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<MultiPoint<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<LineString<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<MultiLineString<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<Polygon<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<MultiPolygon<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<GeometryCollection<T>> for Value where
T: Float,
[src]
T: Float,
impl<T> TryInto<Geometry<T>> for Value where
T: Float,
[src]
T: Float,
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<&'a Value> for JsonValue
[src]
impl<'a, T> From<&'a Point<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a MultiPoint<T>> for Value where
T: Float,
[src]
T: Float,
fn from(multi_point: &MultiPoint<T>) -> Self
[src]
impl<'a, T> From<&'a LineString<T>> for Value where
T: Float,
[src]
T: Float,
fn from(line_string: &LineString<T>) -> Self
[src]
impl<'a, T> From<&'a MultiLineString<T>> for Value where
T: Float,
[src]
T: Float,
fn from(multi_line_string: &MultiLineString<T>) -> Self
[src]
impl<'a, T> From<&'a Polygon<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a MultiPolygon<T>> for Value where
T: Float,
[src]
T: Float,
fn from(multi_polygon: &MultiPolygon<T>) -> Self
[src]
impl<'a, T> From<&'a GeometryCollection<T>> for Value where
T: Float,
[src]
T: Float,
fn from(geometry_collection: &GeometryCollection<T>) -> Self
[src]
impl<'a, T> From<&'a Geometry<T>> for Value where
T: Float,
[src]
T: Float,
impl PartialEq<Value> for Value
[src]
impl Debug for Value
[src]
impl Serialize for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,