Struct libreda_db::prelude::MultiPolygon [−][src]
pub struct MultiPolygon<T> where
T: CoordinateType, {
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.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MultiPolygon<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MultiPolygon<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
T: CoordinateType,
IP: Into<Polygon<T>>,
impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
T: CoordinateType,
IP: Into<Polygon<T>>,
Creates a value from an iterator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
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
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
Mutably borrows from an owned value. Read more
Rotate the geometrical shape by a multiple of 90 degrees.