pub fn check_polygon<T: Polygon>()Expand description
Call this in a unit test next to your type definition to surface adaptation errors close to the source rather than at the algorithm call site.
Mirrors boost::geometry::concepts::check<Polygon>() driven by
boost/geometry/geometries/concepts/polygon_concept.hpp.
§Examples
use geometry_trait::check_polygon;
fn _call<P: geometry_trait::Polygon>() { check_polygon::<P>(); }