Struct geo::MultiPolygon [−][src]
pub struct MultiPolygon<T>(pub Vec<Polygon<T>>)
where
T: CoordinateType;
A collection of Polygons
Can be created from a Vec of Polygons, or collected from an Iterator which yields Polygons.
Iterating over this object yields the component Polygons.
Trait Implementations
impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
IP: Into<Polygon<T>>,
T: CoordinateType, [src]
impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
IP: Into<Polygon<T>>,
T: CoordinateType, fn from_iter<I>(iter: I) -> MultiPolygon<T> where
I: IntoIterator<Item = IP>, [src]
fn from_iter<I>(iter: I) -> MultiPolygon<T> where
I: IntoIterator<Item = IP>, Creates a value from an iterator. Read more
impl<T> Clone for MultiPolygon<T> where
T: Clone + CoordinateType, [src]
impl<T> Clone for MultiPolygon<T> where
T: Clone + 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)Performs copy-assignment from source. Read more
impl<T> Debug for MultiPolygon<T> where
T: Debug + CoordinateType, [src]
impl<T> Debug for MultiPolygon<T> where
T: Debug + CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> IntoIterator for MultiPolygon<T> where
T: CoordinateType, [src]
impl<T> IntoIterator for MultiPolygon<T> where
T: CoordinateType, 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) -> <MultiPolygon<T> as IntoIterator>::IntoIter[src]
fn into_iter(self) -> <MultiPolygon<T> as IntoIterator>::IntoIterCreates an iterator from a value. Read more
impl<T> PartialEq<MultiPolygon<T>> for MultiPolygon<T> where
T: PartialEq<T> + CoordinateType, [src]
impl<T> PartialEq<MultiPolygon<T>> for MultiPolygon<T> where
T: PartialEq<T> + CoordinateType, fn eq(&self, other: &MultiPolygon<T>) -> bool[src]
fn eq(&self, other: &MultiPolygon<T>) -> boolThis 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>) -> boolThis method tests for !=.
impl<T, IP> From<IP> for MultiPolygon<T> where
IP: Into<Polygon<T>>,
T: CoordinateType, [src]
impl<T, IP> From<IP> for MultiPolygon<T> where
IP: Into<Polygon<T>>,
T: CoordinateType, fn from(x: IP) -> MultiPolygon<T>[src]
fn from(x: IP) -> MultiPolygon<T>Performs the conversion.
impl<T> From<MultiPolygon<T>> for Geometry<T> where
T: CoordinateType, [src]
impl<T> From<MultiPolygon<T>> for Geometry<T> where
T: CoordinateType, fn from(x: MultiPolygon<T>) -> Geometry<T>[src]
fn from(x: MultiPolygon<T>) -> Geometry<T>Performs the conversion.
impl<T> Centroid<T> for MultiPolygon<T> where
T: Float + FromPrimitive, [src]
impl<T> Centroid<T> for MultiPolygon<T> where
T: Float + FromPrimitive, type Output = Option<Point<T>>
fn centroid(&self) -> Self::Output[src]
fn centroid(&self) -> Self::OutputSee: https://en.wikipedia.org/wiki/Centroid Read more
impl<T> Contains<Point<T>> for MultiPolygon<T> where
T: Float, [src]
impl<T> Contains<Point<T>> for MultiPolygon<T> where
T: Float, fn contains(&self, p: &Point<T>) -> bool[src]
fn contains(&self, p: &Point<T>) -> boolChecks if rhs is completely contained within self. Read more
impl<T> Area<T> for MultiPolygon<T> where
T: Float, [src]
impl<T> Area<T> for MultiPolygon<T> where
T: Float, impl<T> EuclideanDistance<T, MultiPolygon<T>> for Point<T> where
T: Float, [src]
impl<T> EuclideanDistance<T, MultiPolygon<T>> for Point<T> where
T: Float, fn euclidean_distance(&self, mpolygon: &MultiPolygon<T>) -> T[src]
fn euclidean_distance(&self, mpolygon: &MultiPolygon<T>) -> TMinimum distance from a Point to a MultiPolygon
impl<T> EuclideanDistance<T, Point<T>> for MultiPolygon<T> where
T: Float, [src]
impl<T> EuclideanDistance<T, Point<T>> for MultiPolygon<T> where
T: Float, fn euclidean_distance(&self, point: &Point<T>) -> T[src]
fn euclidean_distance(&self, point: &Point<T>) -> TMinimum distance from a MultiPolygon to a Point
impl<T> EuclideanDistance<T, MultiPolygon<T>> for Line<T> where
T: Float + FloatConst + Signed + SpadeFloat, [src]
impl<T> EuclideanDistance<T, MultiPolygon<T>> for Line<T> where
T: Float + FloatConst + Signed + SpadeFloat, Line to MultiPolygon distance
fn euclidean_distance(&self, mpolygon: &MultiPolygon<T>) -> T[src]
fn euclidean_distance(&self, mpolygon: &MultiPolygon<T>) -> TReturns the distance between two geometries Read more
impl<T> EuclideanDistance<T, Line<T>> for MultiPolygon<T> where
T: Float + FloatConst + Signed + SpadeFloat, [src]
impl<T> EuclideanDistance<T, Line<T>> for MultiPolygon<T> where
T: Float + FloatConst + Signed + SpadeFloat, MultiPolygon to Line distance
fn euclidean_distance(&self, other: &Line<T>) -> T[src]
fn euclidean_distance(&self, other: &Line<T>) -> TReturns the distance between two geometries Read more
impl<T> BoundingBox<T> for MultiPolygon<T> where
T: CoordinateType, [src]
impl<T> BoundingBox<T> for MultiPolygon<T> where
T: CoordinateType, type Output = Option<Bbox<T>>
fn bbox(&self) -> Self::Output[src]
fn bbox(&self) -> Self::OutputReturn the BoundingBox for a MultiPolygon
impl<T> Simplify<T> for MultiPolygon<T> where
T: Float, [src]
impl<T> Simplify<T> for MultiPolygon<T> where
T: Float, fn simplify(&self, epsilon: &T) -> MultiPolygon<T>[src]
fn simplify(&self, epsilon: &T) -> MultiPolygon<T>Returns the simplified representation of a geometry, using the Ramer–Douglas–Peucker algorithm Read more
impl<T> SimplifyVWPreserve<T> for MultiPolygon<T> where
T: Float + SpadeFloat, [src]
impl<T> SimplifyVWPreserve<T> for MultiPolygon<T> where
T: Float + SpadeFloat, fn simplifyvw_preserve(&self, epsilon: &T) -> MultiPolygon<T>[src]
fn simplifyvw_preserve(&self, epsilon: &T) -> MultiPolygon<T>Returns the simplified representation of a geometry, using a topology-preserving variant of the Visvalingam-Whyatt algorithm. Read more
impl<T> SimplifyVW<T> for MultiPolygon<T> where
T: Float, [src]
impl<T> SimplifyVW<T> for MultiPolygon<T> where
T: Float, fn simplifyvw(&self, epsilon: &T) -> MultiPolygon<T>[src]
fn simplifyvw(&self, epsilon: &T) -> MultiPolygon<T>Returns the simplified representation of a geometry, using the Visvalingam-Whyatt algorithm Read more
impl<T> ConvexHull<T> for MultiPolygon<T> where
T: Float, [src]
impl<T> ConvexHull<T> for MultiPolygon<T> where
T: Float, fn convex_hull(&self) -> Polygon<T>[src]
fn convex_hull(&self) -> Polygon<T>Returns the convex hull of a Polygon. The hull is always oriented counter-clockwise. Read more
impl<T> Orient<T> for MultiPolygon<T> where
T: CoordinateType, [src]
impl<T> Orient<T> for MultiPolygon<T> where
T: CoordinateType, fn orient(&self, direction: Direction) -> MultiPolygon<T>[src]
fn orient(&self, direction: Direction) -> MultiPolygon<T>Orients a Polygon's exterior and interior rings according to convention Read more
impl<T> ExtremeIndices<T> for MultiPolygon<T> where
T: Float + Signed, [src]
impl<T> ExtremeIndices<T> for MultiPolygon<T> where
T: Float + Signed, fn extreme_indices(&self) -> Result<Extremes, ()>[src]
fn extreme_indices(&self) -> Result<Extremes, ()>Find the extreme x and y indices of a convex Polygon Read more
impl<T> Rotate<T> for MultiPolygon<T> where
T: Float + FromPrimitive, [src]
impl<T> Rotate<T> for MultiPolygon<T> where
T: Float + FromPrimitive, fn rotate(&self, angle: T) -> Self[src]
fn rotate(&self, angle: T) -> SelfRotate the contained Polygons about their centroids by the given number of degrees
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiPolygon<T>[src]
impl<T: CoordinateType, NT: CoordinateType> MapCoords<T, NT> for MultiPolygon<T>type Output = MultiPolygon<NT>
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::Output[src]
fn map_coords(&self, func: &Fn(&(T, T)) -> (NT, NT)) -> Self::OutputApply a function to all the coordinates in a geometric object, returning a new object. Read more
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for MultiPolygon<T>[src]
impl<T: CoordinateType, NT: CoordinateType> TryMapCoords<T, NT> for MultiPolygon<T>type Output = MultiPolygon<NT>
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>[src]
fn try_map_coords(
&self,
func: &Fn(&(T, T)) -> Result<(NT, NT), Error>
) -> Result<Self::Output, Error>Map a fallible function over all the coordinates in a geometry, returning a Result Read more
impl<T: CoordinateType> MapCoordsInplace<T> for MultiPolygon<T>[src]
impl<T: CoordinateType> MapCoordsInplace<T> for MultiPolygon<T>fn map_coords_inplace(&mut self, func: &Fn(&(T, T)) -> (T, T))[src]
fn map_coords_inplace(&mut self, func: &Fn(&(T, T)) -> (T, T))Apply a function to all the coordinates in a geometric object, in place Read more
impl<F: Float> ClosestPoint<F> for MultiPolygon<F>[src]
impl<F: Float> ClosestPoint<F> for MultiPolygon<F>fn closest_point(&self, p: &Point<F>) -> Closest<F>[src]
fn closest_point(&self, p: &Point<F>) -> Closest<F>Find the closest point between self and p.
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,