pub struct PolygonWithData<K, W = ()> {
pub exterior: Vec<[K; 2]>,
pub interiors: Vec<Vec<[K; 2]>>,
pub data: W,
}Fields§
§exterior: Vec<[K; 2]>Polygon boundary.
interiors: Vec<Vec<[K; 2]>>Polygon interior rings.
data: WUser-defined payload for this polygon.
Trait Implementations§
Source§impl<K, W> Centroid<K> for PolygonWithData<K, W>
impl<K, W> Centroid<K> for PolygonWithData<K, W>
Source§impl<K: Clone, W: Clone> Clone for PolygonWithData<K, W>
impl<K: Clone, W: Clone> Clone for PolygonWithData<K, W>
Source§fn clone(&self) -> PolygonWithData<K, W>
fn clone(&self) -> PolygonWithData<K, W>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<W: Clone> Difference<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
impl<W: Clone> Difference<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
fn difference( a: PolygonWithData<f32, W>, b: PolygonWithData<f32, W>, ) -> Vec<PolygonWithData<f32, W>>
Source§impl<W: Clone> Difference<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
impl<W: Clone> Difference<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
fn difference( a: PolygonWithData<f64, W>, b: PolygonWithData<f64, W>, ) -> Vec<PolygonWithData<f64, W>>
Source§impl<W: Clone> Difference<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
impl<W: Clone> Difference<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
fn difference( a: PolygonWithData<i8, W>, b: PolygonWithData<i8, W>, ) -> Vec<PolygonWithData<i8, W>>
Source§impl<W: Clone> Difference<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
impl<W: Clone> Difference<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
fn difference( a: PolygonWithData<i16, W>, b: PolygonWithData<i16, W>, ) -> Vec<PolygonWithData<i16, W>>
Source§impl<W: Clone> Difference<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
impl<W: Clone> Difference<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
fn difference( a: PolygonWithData<i32, W>, b: PolygonWithData<i32, W>, ) -> Vec<PolygonWithData<i32, W>>
Source§impl<W: Clone> Intersection<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
impl<W: Clone> Intersection<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
fn intersect( a: PolygonWithData<f32, W>, b: PolygonWithData<f32, W>, ) -> Vec<PolygonWithData<f32, W>>
Source§impl<W: Clone> Intersection<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
impl<W: Clone> Intersection<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
fn intersect( a: PolygonWithData<f64, W>, b: PolygonWithData<f64, W>, ) -> Vec<PolygonWithData<f64, W>>
Source§impl<W: Clone> Intersection<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
impl<W: Clone> Intersection<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
fn intersect( a: PolygonWithData<i8, W>, b: PolygonWithData<i8, W>, ) -> Vec<PolygonWithData<i8, W>>
Source§impl<W: Clone> Intersection<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
impl<W: Clone> Intersection<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
fn intersect( a: PolygonWithData<i16, W>, b: PolygonWithData<i16, W>, ) -> Vec<PolygonWithData<i16, W>>
Source§impl<W: Clone> Intersection<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
impl<W: Clone> Intersection<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
fn intersect( a: PolygonWithData<i32, W>, b: PolygonWithData<i32, W>, ) -> Vec<PolygonWithData<i32, W>>
Source§impl<K, W> Rings<K> for PolygonWithData<K, W>
impl<K, W> Rings<K> for PolygonWithData<K, W>
Source§impl<W> Union<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
impl<W> Union<PolygonWithData<f32, W>> for PolygonWithData<f32, W>
fn union( a: PolygonWithData<f32, W>, b: PolygonWithData<f32, W>, ) -> Option<PolygonWithData<f32, W>>
Source§impl<W> Union<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
impl<W> Union<PolygonWithData<f64, W>> for PolygonWithData<f64, W>
fn union( a: PolygonWithData<f64, W>, b: PolygonWithData<f64, W>, ) -> Option<PolygonWithData<f64, W>>
Source§impl<W> Union<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
impl<W> Union<PolygonWithData<i8, W>> for PolygonWithData<i8, W>
fn union( a: PolygonWithData<i8, W>, b: PolygonWithData<i8, W>, ) -> Option<PolygonWithData<i8, W>>
Source§impl<W> Union<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
impl<W> Union<PolygonWithData<i16, W>> for PolygonWithData<i16, W>
fn union( a: PolygonWithData<i16, W>, b: PolygonWithData<i16, W>, ) -> Option<PolygonWithData<i16, W>>
Source§impl<W> Union<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
impl<W> Union<PolygonWithData<i32, W>> for PolygonWithData<i32, W>
fn union( a: PolygonWithData<i32, W>, b: PolygonWithData<i32, W>, ) -> Option<PolygonWithData<i32, W>>
Auto Trait Implementations§
impl<K, W> Freeze for PolygonWithData<K, W>where
W: Freeze,
impl<K, W> RefUnwindSafe for PolygonWithData<K, W>where
W: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, W> Send for PolygonWithData<K, W>
impl<K, W> Sync for PolygonWithData<K, W>
impl<K, W> Unpin for PolygonWithData<K, W>
impl<K, W> UnsafeUnpin for PolygonWithData<K, W>where
W: UnsafeUnpin,
impl<K, W> UnwindSafe for PolygonWithData<K, W>where
W: UnwindSafe,
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more