pub fn for_each_segment<G, F>(g: &G, f: F)where
G: ForEachSegment,
F: FnMut(&G::Point, &G::Point),Expand description
Apply f to every segment of g as a (&start, &end) pair,
recursively.
Mirrors boost::geometry::for_each_segment(g, f) from
boost/geometry/algorithms/for_each.hpp. A closed ring visits its
closing edge via the repeated last-vertex already in storage; an
open ring emits the implicit (last, first) closing edge.