pub struct MultiPolygon {
pub polygons: Vec<Polygon>,
}Expand description
MultiPolygon geometry
Fields§
§polygons: Vec<Polygon>Polygons in the collection
Implementations§
Source§impl MultiPolygon
impl MultiPolygon
Sourcepub const fn new(polygons: Vec<Polygon>) -> MultiPolygon
pub const fn new(polygons: Vec<Polygon>) -> MultiPolygon
Creates a new multi-polygon
Sourcepub const fn empty() -> MultiPolygon
pub const fn empty() -> MultiPolygon
Creates an empty multi-polygon
Trait Implementations§
Source§impl Clone for MultiPolygon
impl Clone for MultiPolygon
Source§fn clone(&self) -> MultiPolygon
fn clone(&self) -> MultiPolygon
Returns a duplicate 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 Debug for MultiPolygon
impl Debug for MultiPolygon
Source§impl<'de> Deserialize<'de> for MultiPolygon
impl<'de> Deserialize<'de> for MultiPolygon
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MultiPolygon, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MultiPolygon, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MultiPolygon
impl PartialEq for MultiPolygon
Source§impl Serialize for MultiPolygon
impl Serialize for MultiPolygon
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MultiPolygon
Auto Trait Implementations§
impl Freeze for MultiPolygon
impl RefUnwindSafe for MultiPolygon
impl Send for MultiPolygon
impl Sync for MultiPolygon
impl Unpin for MultiPolygon
impl UnsafeUnpin for MultiPolygon
impl UnwindSafe for MultiPolygon
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