Skip to main content

Add

Trait Add 

Source
pub trait Add<P> {
    type Output;

    // Required method
    fn add(&mut self, polygon: P) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn add(&mut self, polygon: P) -> Self::Output

Implementors§

Source§

impl<K: Clone, P: Clone + Inflate<K>, S: Add<P, Output = PolygonId>> Add<P> for Inflated<S, K>

Source§

impl<K: RTreeNum, P: Clone + Rings<K> + Union<P> + Difference<P>, PC: Get<usize, Value = P> + Push<usize> + Remove<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, PolygonId>>> + Insert<GeomWithData<Rectangle<[K; 2]>, PolygonId>, Value = ()> + Remove<GeomWithData<Rectangle<[K; 2]>, PolygonId>>> Add<P> for PolygonSet<K, P, PC, PR>

Source§

impl<K: RTreeNum, P: Clone + Rings<K> + Union<P>, PC: Get<usize, Value = P> + Push<usize> + Set<usize>, PR: AsRef<RTree<GeomWithData<Rectangle<[K; 2]>, PolygonId>>> + Insert<GeomWithData<Rectangle<[K; 2]>, PolygonId>, Value = ()> + Remove<GeomWithData<Rectangle<[K; 2]>, PolygonId>>, UFPC: Get<usize, Value = usize> + Push<usize> + Set<usize>, UFRC: Get<usize, Value = usize> + Push<usize> + Set<usize>> Add<P> for PolygonUnionFind<K, P, PC, PR, UFPC, UFRC>

Source§

impl<P: Clone, M: Sub<P, Output = (Vec<PolygonId>, Vec<P>)>, S: Add<P, Output = PolygonId> + Get<PolygonId, Value = P>> Add<P> for Negated<M, S>

Source§

impl<P: Clone, S: Add<P>> Add<P> for Paralleled<S>

Source§

type Output = (<S as Add<P>>::Output, Vec<<S as Add<P>>::Output>)