Struct geo_types::MultiPolygon
source · pub struct MultiPolygon<T>(pub Vec<Polygon<T>>)
where
T: CoordinateType;
Expand description
A collection of Polygon
s
Can be created from a Vec
of Polygon
s, or collect
ed from an Iterator which yields Polygon
s.
Iterating over this object yields the component Polygons.
Tuple Fields
0: Vec<Polygon<T>>
Trait Implementations
sourceimpl<T: Clone> Clone for MultiPolygon<T>where
T: CoordinateType,
impl<T: Clone> Clone for MultiPolygon<T>where
T: CoordinateType,
sourcefn clone(&self) -> MultiPolygon<T>
fn clone(&self) -> MultiPolygon<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for MultiPolygon<T>where
T: CoordinateType,
impl<T: Debug> Debug for MultiPolygon<T>where
T: CoordinateType,
sourceimpl<T: CoordinateType, IP: Into<Polygon<T>>> From<IP> for MultiPolygon<T>
impl<T: CoordinateType, IP: Into<Polygon<T>>> From<IP> for MultiPolygon<T>
sourceimpl<T: CoordinateType> From<MultiPolygon<T>> for Geometry<T>
impl<T: CoordinateType> From<MultiPolygon<T>> for Geometry<T>
sourcefn from(x: MultiPolygon<T>) -> Geometry<T>
fn from(x: MultiPolygon<T>) -> Geometry<T>
Converts to this type from the input type.
sourceimpl<T: CoordinateType, IP: Into<Polygon<T>>> FromIterator<IP> for MultiPolygon<T>
impl<T: CoordinateType, IP: Into<Polygon<T>>> FromIterator<IP> for MultiPolygon<T>
sourcefn from_iter<I: IntoIterator<Item = IP>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = IP>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl<T: CoordinateType> IntoIterator for MultiPolygon<T>
impl<T: CoordinateType> IntoIterator for MultiPolygon<T>
sourceimpl<T: PartialEq> PartialEq<MultiPolygon<T>> for MultiPolygon<T>where
T: CoordinateType,
impl<T: PartialEq> PartialEq<MultiPolygon<T>> for MultiPolygon<T>where
T: CoordinateType,
sourcefn eq(&self, other: &MultiPolygon<T>) -> bool
fn eq(&self, other: &MultiPolygon<T>) -> bool
impl<T> StructuralPartialEq for MultiPolygon<T>where
T: CoordinateType,
Auto Trait Implementations
impl<T> RefUnwindSafe for MultiPolygon<T>where
T: RefUnwindSafe,
impl<T> Send for MultiPolygon<T>where
T: Send,
impl<T> Sync for MultiPolygon<T>where
T: Sync,
impl<T> Unpin for MultiPolygon<T>where
T: Unpin,
impl<T> UnwindSafe for MultiPolygon<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more