Struct iron_shapes::multi_polygon::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>>
The list of polygons which defines the content of this multi polygon.
Implementations
impl<T: CoordinateType> MultiPolygon<T>
[src]
pub fn new(polygons: Vec<Polygon<T>>) -> Self
[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> Clone for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn clone(&self) -> MultiPolygon<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
impl<T: CoordinateType, IP: Into<Polygon<T>>> From<IP> for MultiPolygon<T>
[src]
impl<T: CoordinateType, IP: Into<Polygon<T>>> FromIterator<IP> for MultiPolygon<T>
[src]
fn from_iter<I: IntoIterator<Item = IP>>(iter: I) -> Self
[src]
impl<T: Hash> Hash for MultiPolygon<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: CoordinateType> IntoIterator for MultiPolygon<T>
[src]
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) -> Self::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,
fn winding_number(&self, point: Point<T>) -> isize
[src]
fn contains_point_non_oriented(&self, point: Point<T>) -> bool
[src]
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
T: CoordinateType,
S: MapPointwise<T>,
[src]
T: CoordinateType,
S: MapPointwise<T>,
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
T: CoordinateType,
S: MapPointwise<T>,
[src]
T: CoordinateType,
S: MapPointwise<T>,
pub fn rotate_ortho(&Self, Angle) -> S
[src]
impl<S, T> Scale<T> for S where
T: CoordinateType,
S: MapPointwise<T>,
[src]
T: CoordinateType,
S: MapPointwise<T>,
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
T: CoordinateType,
S: MapPointwise<T>,
[src]
T: CoordinateType,
S: MapPointwise<T>,
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>,