pub struct PolyPath<P: FullXY> {
pub id: usize,
pub outer: Option<Vec<P>>,
pub old_outers: Vec<BBox>,
pub holes: Vec<Vec<P>>,
pub polys_consumed: BTreeSet<usize>,
pub bbox: BBox,
}Expand description
Reconstructing a poly line that interacts with intersections
Fields§
§id: usizehelps down the road to spot duplicate pulls of this Path
outer: Option<Vec<P>>True outer ring
old_outers: Vec<BBox>Outers that have already been consumed
holes: Vec<Vec<P>>Holes
polys_consumed: BTreeSet<usize>indexes of the polygons in the multipolygon. So we can quickly consume holes.
bbox: BBoxBounding box
Implementations§
Source§impl<P: FullXY> PolyPath<P>
impl<P: FullXY> PolyPath<P>
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for PolyPath<P>
impl<P> RefUnwindSafe for PolyPath<P>where
P: RefUnwindSafe,
impl<P> Send for PolyPath<P>where
P: Send,
impl<P> Sync for PolyPath<P>where
P: Sync,
impl<P> Unpin for PolyPath<P>where
P: Unpin,
impl<P> UnwindSafe for PolyPath<P>where
P: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more