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
Variants
Point(PointType)
MultiPoint(Vec<PointType>)
MultiPoint
LineString(LineStringType)
LineString
MultiLineString(Vec<LineStringType>)
MultiLineString
Polygon(PolygonType)
MultiPolygon(Vec<PolygonType>)
MultiPolygon
GeometryCollection(Vec<Geometry>)
GeometryCollection
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Value
[src]
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl Serialize for Value
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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]
Performs the conversion.
impl<'a, T> From<&'a LineString<T>> for Value where
T: Float,
[src]
T: Float,
fn from(line_string: &LineString<T>) -> Self
[src]
Performs the conversion.
impl<'a, T> From<&'a MultiLineString<T>> for Value where
T: Float,
[src]
T: Float,
fn from(multi_line_string: &MultiLineString<T>) -> Self
[src]
Performs the conversion.
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]
Performs the conversion.
impl<'a, T> From<&'a GeometryCollection<T>> for Value where
T: Float,
[src]
T: Float,
fn from(geometry_collection: &GeometryCollection<T>) -> Self
[src]
Performs the conversion.
impl<'a, T> From<&'a Geometry<T>> for Value where
T: Float,
[src]
T: Float,