Enum geojson::GeoJson
[−]
[src]
pub enum GeoJson { Geometry(Geometry), Feature(Feature), FeatureCollection(FeatureCollection), }
GeoJSON Objects
Variants
Geometry(Geometry)
Feature(Feature)
FeatureCollection(FeatureCollection)
Trait Implementations
impl Clone for GeoJson
[src]
fn clone(&self) -> GeoJson
[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 GeoJson
[src]
impl PartialEq for GeoJson
[src]
fn eq(&self, __arg_0: &GeoJson) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GeoJson) -> bool
[src]
This method tests for !=
.
impl From<Geometry> for GeoJson
[src]
impl From<Feature> for GeoJson
[src]
impl From<FeatureCollection> for GeoJson
[src]
fn from(feature_collection: FeatureCollection) -> GeoJson
[src]
Performs the conversion.
impl Serialize for GeoJson
[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<'de> Deserialize<'de> for GeoJson
[src]
fn deserialize<D>(deserializer: D) -> Result<GeoJson, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for GeoJson
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more