Skip to main content

check_point

Function check_point 

Source
pub fn check_point<T: Point>()
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<Point>() from boost/geometry/geometries/concepts/check.hpp instantiated with the point-concept specialisation in boost/geometry/geometries/concepts/point_concept.hpp.

§Examples

use geometry_trait::check_point;
fn _call<P: geometry_trait::Point>() { check_point::<P>(); }