pub enum VectorGeometry<M: Clone + Default = MValue> {
Point(VectorPointGeometry<M>),
MultiPoint(VectorMultiPointGeometry<M>),
LineString(VectorLineStringGeometry<M>),
MultiLineString(VectorMultiLineStringGeometry<M>),
Polygon(VectorPolygonGeometry<M>),
MultiPolygon(VectorMultiPolygonGeometry<M>),
}
Expand description
All possible geometry shapes
Variants§
Point(VectorPointGeometry<M>)
Point Shape
MultiPoint(VectorMultiPointGeometry<M>)
MultiPoint Shape
LineString(VectorLineStringGeometry<M>)
LineString Shape
MultiLineString(VectorMultiLineStringGeometry<M>)
MultiLineString Shape
Polygon(VectorPolygonGeometry<M>)
Polygon Shape
MultiPolygon(VectorMultiPolygonGeometry<M>)
MultiPolygon Shape
Implementations§
Source§impl<M: Clone + Default> VectorGeometry<M>
impl<M: Clone + Default> VectorGeometry<M>
Sourcepub fn new_point(coordinates: VectorPoint<M>, bbox: Option<BBox3D>) -> Self
pub fn new_point(coordinates: VectorPoint<M>, bbox: Option<BBox3D>) -> Self
Create a new point
Sourcepub fn new_multipoint(
coordinates: VectorMultiPoint<M>,
bbox: Option<BBox3D>,
) -> Self
pub fn new_multipoint( coordinates: VectorMultiPoint<M>, bbox: Option<BBox3D>, ) -> Self
Create a new multipoint
Sourcepub fn new_linestring(
coordinates: VectorLineString<M>,
bbox: Option<BBox3D>,
) -> Self
pub fn new_linestring( coordinates: VectorLineString<M>, bbox: Option<BBox3D>, ) -> Self
Create a new linestring
Sourcepub fn new_multilinestring(
coordinates: VectorMultiLineString<M>,
bbox: Option<BBox3D>,
) -> Self
pub fn new_multilinestring( coordinates: VectorMultiLineString<M>, bbox: Option<BBox3D>, ) -> Self
Create a new multilinestring
Sourcepub fn new_polygon(coordinates: VectorPolygon<M>, bbox: Option<BBox3D>) -> Self
pub fn new_polygon(coordinates: VectorPolygon<M>, bbox: Option<BBox3D>) -> Self
Create a new polygon
Sourcepub fn new_multipolygon(
coordinates: VectorMultiPolygon<M>,
bbox: Option<BBox3D>,
) -> Self
pub fn new_multipolygon( coordinates: VectorMultiPolygon<M>, bbox: Option<BBox3D>, ) -> Self
Create a new multipolygon
Trait Implementations§
Source§impl<M: Clone + Clone + Default> Clone for VectorGeometry<M>
impl<M: Clone + Clone + Default> Clone for VectorGeometry<M>
Source§fn clone(&self) -> VectorGeometry<M>
fn clone(&self) -> VectorGeometry<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de, M> Deserialize<'de> for VectorGeometry<M>
impl<'de, M> Deserialize<'de> for VectorGeometry<M>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<M> Serialize for VectorGeometry<M>
impl<M> Serialize for VectorGeometry<M>
impl<M: Clone + Default> StructuralPartialEq for VectorGeometry<M>
Auto Trait Implementations§
impl<M> Freeze for VectorGeometry<M>where
M: Freeze,
impl<M> RefUnwindSafe for VectorGeometry<M>where
M: RefUnwindSafe,
impl<M> Send for VectorGeometry<M>where
M: Send,
impl<M> Sync for VectorGeometry<M>where
M: Sync,
impl<M> Unpin for VectorGeometry<M>where
M: Unpin,
impl<M> UnwindSafe for VectorGeometry<M>where
M: UnwindSafe,
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