Skip to main content

check_ring

Function check_ring 

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

§Examples

use geometry_trait::check_ring;
fn _call<R: geometry_trait::Ring>() { check_ring::<R>(); }