Skip to content

Commit

Permalink
Improve generic names and bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Nov 1, 2024
1 parent 11c1200 commit 8b1e97d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geo/src/algorithm/bool_ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ impl<T: BoolOpsNum> BooleanOps for MultiPolygon<T> {
}

/// Allows the unary union operation to be performed on any container which can produce items of type `Polygon<T>`
impl<T: BoolOpsNum, C> UnaryUnion for C
impl<T, Container> UnaryUnion for Container
where
C: IntoIterator<Item = Polygon<T>> + Clone,
T: BoolOpsNum,
Container: IntoIterator<Item = Polygon<T>> + Clone,
Polygon<T>: RTreeObject,
{
type Scalar = T;
Expand All @@ -238,7 +239,6 @@ where
accum1.union(&accum2)
};
let rtree = RTree::bulk_load(self.clone().into_iter().collect());

bottom_up_fold_reduce(&rtree, init, fold, reduce)
}
}

0 comments on commit 8b1e97d

Please sign in to comment.