pub enum Geometry {
Point(Position),
MultiPoint(Vec<Position>),
LineString(LineString),
MultiLineString(Vec<LineString>),
Polygon(Polygon),
MultiPolygon(Vec<Polygon>),
}Expand description
The Geometry object specified in The GeoJSON Format (RFC7946) §3.1.
Variants§
Point(Position)
MultiPoint(Vec<Position>)
LineString(LineString)
MultiLineString(Vec<LineString>)
Polygon(Polygon)
MultiPolygon(Vec<Polygon>)
Trait Implementations§
Source§impl<'x> Deserialize<'x> for Geometry
impl<'x> Deserialize<'x> for Geometry
Source§fn deserialize<D: Deserializer<'x>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'x>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more