pub struct MultiPolygon<T> {
    pub polygons: Vec<Polygon<T>, Global>,
}
Expand description

A MultiPolygon is a list of polygons. There is no restrictions on the polygons (they can be intersecting, empty, etc.).

Fields

polygons: Vec<Polygon<T>, Global>

The list of polygons which defines the content of this multi polygon.

Implementations

Create an empty set of polygons.

Create a MultiPolygon from a vector of Polygons.

Return the number of polygons.

Check if polygon is empty.

Insert a polygon into the region.

Iterate over all edges of the polygons including holes.

Trait Implementations

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Compute the boolean operation of self and other. Read more

Compute the boolean intersection self & other. Read more

Compute the boolean difference self - other. Read more

Compute the boolean union self | other. Read more

Compute the boolean exclusive OR self ^ other. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Creates a value from an iterator. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Point wise transformation.

Serialize this value into the given Serde serializer. Read more

Return the bounding box of this geometry if a bounding box is defined.

Calculate the winding number of the polygon around this point. Read more

Check if point is inside the polygon, i.e. the polygons winds around the point a non-zero number of times. Read more

Check if point is inside the polygon, i.e. the polygon winds around the point an odd number of times. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Return the geometrical object mirrored at the x axis.

Return the geometrical object mirrored at the y axis.

Rotate the geometrical shape by a multiple of 90 degrees.

Scale the geometrical shape. Scaling center is the origin (0, 0).

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Translate the geometrical object by a vector v.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.