Skip to main content

check_segment

Function check_segment 

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

§Examples

use geometry_trait::check_segment;
fn _call<S: geometry_trait::Segment>() { check_segment::<S>(); }