pub trait IntersectsStrategy<A, B> {
// Required method
fn intersects(&self, a: &A, b: &B) -> bool;
}Expand description
A strategy for “do these two geometries share at least one point?”.
Mirrors boost::geometry::intersects(g1, g2) from
boost/geometry/algorithms/intersects.hpp. The Boost API takes the
strategy implicitly through the algorithm’s per-pair dispatch
table; the Rust analogue collapses dispatch and strategy onto one
trait keyed on the geometry pair.
Required Methods§
Sourcefn intersects(&self, a: &A, b: &B) -> bool
fn intersects(&self, a: &A, b: &B) -> bool
true iff a and b share at least one point.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".