Struct libreda_db::prelude::MultiPolygon[][src]

pub struct MultiPolygon<T> where
    T: CoordinateType
{ pub polygons: Vec<Polygon<T>, Global>, }

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

impl<T> MultiPolygon<T> where
    T: CoordinateType
[src]

pub fn new(polygons: Vec<Polygon<T>, Global>) -> MultiPolygon<T>[src]

Create a MultiPolygon from a vector of Polygons.

pub fn len(&self) -> usize[src]

Return the number of polygons.

Trait Implementations

impl<T> Clone for MultiPolygon<T> where
    T: Clone + CoordinateType
[src]

impl<T> Debug for MultiPolygon<T> where
    T: Debug + CoordinateType
[src]

impl<T, IP> From<IP> for MultiPolygon<T> where
    T: CoordinateType,
    IP: Into<Polygon<T>>, 
[src]

impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
    T: CoordinateType,
    IP: Into<Polygon<T>>, 
[src]

impl<T> Hash for MultiPolygon<T> where
    T: Hash + CoordinateType
[src]

impl<T> IntoIterator for MultiPolygon<T> where
    T: CoordinateType
[src]

type Item = Polygon<T>

The type of the elements being iterated over.

type IntoIter = IntoIter<Polygon<T>, Global>

Which kind of iterator are we turning this into?

impl<T> MapPointwise<T> for MultiPolygon<T> where
    T: CoordinateType
[src]

impl<T> WindingNumber<T> for MultiPolygon<T> where
    T: CoordinateType
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, T> Mirror<T> for S where
    S: MapPointwise<T>,
    T: CoordinateType
[src]

pub fn mirror_x(&self) -> S[src]

Return the geometrical object mirrored at the x axis.

pub fn mirror_y(&self) -> S[src]

Return the geometrical object mirrored at the y axis.

impl<S, T> RotateOrtho<T> for S where
    S: MapPointwise<T>,
    T: CoordinateType
[src]

impl<S, T> Scale<T> for S where
    S: MapPointwise<T>,
    T: CoordinateType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<S, T> Translate<T> for S where
    S: MapPointwise<T>,
    T: CoordinateType
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.