Struct geo_types::MultiPolygon [−][src]
pub struct MultiPolygon<T>(pub Vec<Polygon<T>>)
where
T: CoordinateType;
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.
Trait Implementations
impl<T: PartialEq> PartialEq for MultiPolygon<T> where
T: CoordinateType,
[src]
impl<T: PartialEq> PartialEq for MultiPolygon<T> where
T: CoordinateType,
fn eq(&self, other: &MultiPolygon<T>) -> bool
[src]
fn eq(&self, other: &MultiPolygon<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MultiPolygon<T>) -> bool
[src]
fn ne(&self, other: &MultiPolygon<T>) -> bool
This method tests for !=
.
impl<T: Clone> Clone for MultiPolygon<T> where
T: CoordinateType,
[src]
impl<T: Clone> Clone for MultiPolygon<T> where
T: CoordinateType,
fn clone(&self) -> MultiPolygon<T>
[src]
fn clone(&self) -> MultiPolygon<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for MultiPolygon<T> where
T: CoordinateType,
[src]
impl<T: Debug> Debug for MultiPolygon<T> where
T: CoordinateType,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: CoordinateType, IP: Into<Polygon<T>>> From<IP> for MultiPolygon<T>
[src]
impl<T: CoordinateType, IP: Into<Polygon<T>>> From<IP> for MultiPolygon<T>
impl<T: CoordinateType, IP: Into<Polygon<T>>> FromIterator<IP> for MultiPolygon<T>
[src]
impl<T: CoordinateType, IP: Into<Polygon<T>>> FromIterator<IP> for MultiPolygon<T>
fn from_iter<I: IntoIterator<Item = IP>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = IP>>(iter: I) -> Self
Creates a value from an iterator. Read more
impl<T: CoordinateType> IntoIterator for MultiPolygon<T>
[src]
impl<T: CoordinateType> IntoIterator for MultiPolygon<T>
type Item = Polygon<T>
The type of the elements being iterated over.
type IntoIter = IntoIter<Polygon<T>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<T: CoordinateType> From<MultiPolygon<T>> for Geometry<T>
[src]
impl<T: CoordinateType> From<MultiPolygon<T>> for Geometry<T>
fn from(x: MultiPolygon<T>) -> Geometry<T>
[src]
fn from(x: MultiPolygon<T>) -> Geometry<T>
Performs the conversion.
Auto Trait Implementations
impl<T> Send for MultiPolygon<T> where
T: Send,
impl<T> Send for MultiPolygon<T> where
T: Send,
impl<T> Sync for MultiPolygon<T> where
T: Sync,
impl<T> Sync for MultiPolygon<T> where
T: Sync,