Struct libreda_db::layout::prelude::MultiPolygon [−][src]
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]
T: CoordinateType,
pub fn new(polygons: Vec<Polygon<T>, Global>) -> MultiPolygon<T>
[src]
Create a MultiPolygon
from a vector of Polygon
s.
pub fn len(&self) -> usize
[src]
Return the number of polygons.
Trait Implementations
impl<T> Clone for MultiPolygon<T> where
T: Clone + CoordinateType,
[src]
T: Clone + CoordinateType,
pub fn clone(&self) -> MultiPolygon<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for MultiPolygon<T> where
T: Debug + CoordinateType,
[src]
T: Debug + CoordinateType,
impl<T, IP> From<IP> for MultiPolygon<T> where
T: CoordinateType,
IP: Into<Polygon<T>>,
[src]
T: CoordinateType,
IP: Into<Polygon<T>>,
pub fn from(x: IP) -> MultiPolygon<T>
[src]
impl<T, IP> FromIterator<IP> for MultiPolygon<T> where
T: CoordinateType,
IP: Into<Polygon<T>>,
[src]
T: CoordinateType,
IP: Into<Polygon<T>>,
pub fn from_iter<I>(iter: I) -> MultiPolygon<T> where
I: IntoIterator<Item = IP>,
[src]
I: IntoIterator<Item = IP>,
impl<T> Hash for MultiPolygon<T> where
T: Hash + CoordinateType,
[src]
T: Hash + CoordinateType,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> IntoIterator for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
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?
pub fn into_iter(self) -> <MultiPolygon<T> as IntoIterator>::IntoIter
[src]
impl<T> MapPointwise<T> for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
impl<T> WindingNumber<T> for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
pub fn winding_number(&self, point: Point<T>) -> isize
[src]
pub fn contains_point_non_oriented(&self, point: Point<T>) -> bool
[src]
pub fn contains_point(&self, point: Point<T>) -> bool
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for MultiPolygon<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for MultiPolygon<T> where
T: Send,
T: Send,
impl<T> Sync for MultiPolygon<T> where
T: Sync,
T: Sync,
impl<T> Unpin for MultiPolygon<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for MultiPolygon<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, T> Mirror<T> for S where
S: MapPointwise<T>,
T: CoordinateType,
[src]
S: MapPointwise<T>,
T: CoordinateType,
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]
S: MapPointwise<T>,
T: CoordinateType,
pub fn rotate_ortho(&self, a: Angle) -> S
[src]
impl<S, T> Scale<T> for S where
S: MapPointwise<T>,
T: CoordinateType,
[src]
S: MapPointwise<T>,
T: CoordinateType,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<S, T> Translate<T> for S where
S: MapPointwise<T>,
T: CoordinateType,
[src]
S: MapPointwise<T>,
T: CoordinateType,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,