pub enum GeometryShape {
Point(Position),
LineString(LineStringValue),
Polygon(PolygonValue),
MultiPoint(Vec<Position>),
MultiLineString(Vec<LineStringValue>),
MultiPolygon(Vec<PolygonValue>),
GeometryCollection(Vec<GeometryShape>),
}Variants§
Point(Position)
LineString(LineStringValue)
Polygon(PolygonValue)
MultiPoint(Vec<Position>)
MultiLineString(Vec<LineStringValue>)
MultiPolygon(Vec<PolygonValue>)
GeometryCollection(Vec<GeometryShape>)
Implementations§
Source§impl GeometryShape
impl GeometryShape
pub fn to_geojson_value(&self) -> Result<Value, EncodeError>
pub fn from_geojson_value(value: &Value) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for GeometryShape
impl Clone for GeometryShape
Source§fn clone(&self) -> GeometryShape
fn clone(&self) -> GeometryShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeometryShape
impl Debug for GeometryShape
Source§impl PartialEq for GeometryShape
impl PartialEq for GeometryShape
Source§fn eq(&self, other: &GeometryShape) -> bool
fn eq(&self, other: &GeometryShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeometryShape
Auto Trait Implementations§
impl Freeze for GeometryShape
impl RefUnwindSafe for GeometryShape
impl Send for GeometryShape
impl Sync for GeometryShape
impl Unpin for GeometryShape
impl UnsafeUnpin for GeometryShape
impl UnwindSafe for GeometryShape
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