Skip to main content

check_multi_polygon

Function check_multi_polygon 

Source
pub fn check_multi_polygon<T: MultiPolygon>()
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<MultiPolygon>() driven by boost/geometry/geometries/concepts/multi_polygon_concept.hpp.

§Examples

use geometry_trait::check_multi_polygon;
fn _call<M: geometry_trait::MultiPolygon>() { check_multi_polygon::<M>(); }