[−][src]Enum geojson::Value
The underlying value for a Geometry
.
Conversion from geo_types
From
is implemented for Value
for converting from geo_types
geospatial
types:
let point = geo_types::Point::new(2., 9.); assert_eq!( geojson::Value::from(&point), geojson::Value::Point(vec![2., 9.]), );
Variants
Point(PointType)
MultiPoint
LineString(LineStringType)
LineString
MultiLineString(Vec<LineStringType>)
MultiLineString
Polygon(PolygonType)
MultiPolygon(Vec<PolygonType>)
MultiPolygon
GeometryCollection
Trait Implementations
impl Clone for Value
[src]
impl Debug for Value
[src]
impl<'a, T> From<&'a Geometry<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a GeometryCollection<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a LineString<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a MultiLineString<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a MultiPoint<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a MultiPolygon<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a Point<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a, T> From<&'a Polygon<T>> for Value where
T: Float,
[src]
T: Float,
impl<'a> From<&'a Value> for JsonValue
[src]
impl PartialEq<Value> for Value
[src]
impl Serialize for Value
[src]
impl StructuralPartialEq for Value
[src]
impl<T> TryInto<Geometry<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Geometry<T>, Self::Error>
[src]
impl<T> TryInto<GeometryCollection<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<GeometryCollection<T>, Self::Error>
[src]
impl<T> TryInto<LineString<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<LineString<T>, Self::Error>
[src]
impl<T> TryInto<MultiLineString<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<MultiLineString<T>, Self::Error>
[src]
impl<T> TryInto<MultiPoint<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<MultiPoint<T>, Self::Error>
[src]
impl<T> TryInto<MultiPolygon<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<MultiPolygon<T>, Self::Error>
[src]
impl<T> TryInto<Point<T>> for Value where
T: Float,
[src]
T: Float,
type Error = GJError
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Point<T>, Self::Error>
[src]
impl<T> TryInto<Polygon<T>> for Value where
T: Float,
[src]
T: Float,
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,