pub struct PolygonUnionFind<K: RTreeNum, PC: KeyedCollection = Vec<Vec<Point2<K>>>, PR: KeyedCollection = AsRefRTree<GeomWithData<Rectangle<[K; 2]>, usize>>, UFPC = Vec<usize>, UFRC = Vec<usize>> { /* private fields */ }Implementations§
Source§impl<K: RTreeNum, PC: Default + KeyedCollection, PR: Default + KeyedCollection, UFPC: Default, UFRC: Default> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: RTreeNum, PC: Default + KeyedCollection, PR: Default + KeyedCollection, UFPC: Default, UFRC: Default> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Source§impl<K: RTreeNum, PC: KeyedCollection, PR: KeyedCollection, UFPC, UFRC> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: RTreeNum, PC: KeyedCollection, PR: KeyedCollection, UFPC, UFRC> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Source§impl<K: FromPrimitive + RTreeNum + ToPrimitive, PC: Clone + IntoIter<usize> + Get<usize, Value = Vec<Point2<K>>> + Push<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, usize>>> + Insert<GeomWithData<Rectangle<[K; 2]>, usize>, Value = ()>, UFPC: Get<usize, Value = usize> + Push<usize> + Set<usize>, UFRC: Get<usize, Value = usize> + Push<usize> + Set<usize>> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: FromPrimitive + RTreeNum + ToPrimitive, PC: Clone + IntoIter<usize> + Get<usize, Value = Vec<Point2<K>>> + Push<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, usize>>> + Insert<GeomWithData<Rectangle<[K; 2]>, usize>, Value = ()>, UFPC: Get<usize, Value = usize> + Push<usize> + Set<usize>, UFRC: Get<usize, Value = usize> + Push<usize> + Set<usize>> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Source§impl<K: FromPrimitive + RTreeNum + ToPrimitive, PC: Get<usize, Value = Vec<Point2<K>>> + Push<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, usize>>> + Insert<GeomWithData<Rectangle<[K; 2]>, usize>, Value = ()>, UFPC: Get<usize, Value = usize> + Push<usize> + Set<usize>, UFRC: Get<usize, Value = usize> + Push<usize> + Set<usize>> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: FromPrimitive + RTreeNum + ToPrimitive, PC: Get<usize, Value = Vec<Point2<K>>> + Push<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, usize>>> + Insert<GeomWithData<Rectangle<[K; 2]>, usize>, Value = ()>, UFPC: Get<usize, Value = usize> + Push<usize> + Set<usize>, UFRC: Get<usize, Value = usize> + Push<usize> + Set<usize>> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
pub fn insert(&mut self, polygon: impl IntoIterator<Item = [K; 2]>) -> usize
Trait Implementations§
Source§impl<K: RTreeNum, PCE: Clone + KeyedCollection, PC: KeyedCollection + Clone + ApplyDelta<PCE>, PRE: Clone + KeyedCollection, PR: KeyedCollection + Clone + ApplyDelta<PRE>, UFPCE: Clone + KeyedCollection, UFPC: Clone + ApplyDelta<UFPCE>, UFRCE: Clone + KeyedCollection, UFRC: Clone + ApplyDelta<UFRCE>> ApplyDelta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>> for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Available on crate feature undoredo only.
impl<K: RTreeNum, PCE: Clone + KeyedCollection, PC: KeyedCollection + Clone + ApplyDelta<PCE>, PRE: Clone + KeyedCollection, PR: KeyedCollection + Clone + ApplyDelta<PRE>, UFPCE: Clone + KeyedCollection, UFPC: Clone + ApplyDelta<UFPCE>, UFRCE: Clone + KeyedCollection, UFRC: Clone + ApplyDelta<UFRCE>> ApplyDelta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>> for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Available on crate feature
undoredo only.Source§fn apply_delta(
&mut self,
delta: &Delta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>>,
)
fn apply_delta( &mut self, delta: &Delta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>>, )
Apply the changes in an delta to a collection. Read more
Source§impl<K: Clone + RTreeNum, PC: Clone + KeyedCollection, PR: Clone + KeyedCollection, UFPC: Clone, UFRC: Clone> Clone for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: Clone + RTreeNum, PC: Clone + KeyedCollection, PR: Clone + KeyedCollection, UFPC: Clone, UFRC: Clone> Clone for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Source§fn clone(&self) -> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
fn clone(&self) -> PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug + RTreeNum, PC: Debug + KeyedCollection, PR: Debug + KeyedCollection, UFPC: Debug, UFRC: Debug> Debug for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K: Debug + RTreeNum, PC: Debug + KeyedCollection, PR: Debug + KeyedCollection, UFPC: Debug, UFRC: Debug> Debug for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Source§impl<K: RTreeNum, PCE: Clone + KeyedCollection, PC: KeyedCollection + FlushDelta<PCE>, PRE: Clone + KeyedCollection, PR: KeyedCollection + FlushDelta<PRE>, UFPCE: Clone + KeyedCollection, UFPC: FlushDelta<UFPCE>, UFRCE: Clone + KeyedCollection, UFRC: FlushDelta<UFRCE>> FlushDelta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>> for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Available on crate feature undoredo only.
impl<K: RTreeNum, PCE: Clone + KeyedCollection, PC: KeyedCollection + FlushDelta<PCE>, PRE: Clone + KeyedCollection, PR: KeyedCollection + FlushDelta<PRE>, UFPCE: Clone + KeyedCollection, UFPC: FlushDelta<UFPCE>, UFRCE: Clone + KeyedCollection, UFRC: FlushDelta<UFRCE>> FlushDelta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>> for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
Available on crate feature
undoredo only.Source§fn flush_delta(&mut self) -> Delta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>>
fn flush_delta(&mut self) -> Delta<PolygonUnionFind<K, PCE, PRE, UFPCE, UFRCE>>
Flush the recorder, returning the recorded delta and replacing it with a
new empty one.
Auto Trait Implementations§
impl<K, PC, PR, UFPC, UFRC> Freeze for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K, PC, PR, UFPC, UFRC> RefUnwindSafe for PolygonUnionFind<K, PC, PR, UFPC, UFRC>where
PC: RefUnwindSafe,
PR: RefUnwindSafe,
UFPC: RefUnwindSafe,
UFRC: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, PC, PR, UFPC, UFRC> Send for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K, PC, PR, UFPC, UFRC> Sync for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K, PC, PR, UFPC, UFRC> Unpin for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K, PC, PR, UFPC, UFRC> UnsafeUnpin for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
impl<K, PC, PR, UFPC, UFRC> UnwindSafe for PolygonUnionFind<K, PC, PR, UFPC, UFRC>
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