/// Create an iterator yielding segments from an iterator yielding points.
Create an iterator yielding segments from an iterator yielding points.
Create an iterator yielding segments from an iterator yielding points .
pub fn points_to_segments<I>(points: I) -> Segments<I::IntoIter>
where
    I: IntoIterator<Item = Point>,
{
    let points = points.into_iter();
    let last_point = None;
    Segments { points, last_point }
}
pub fn points_to_segments < I > ( points : I ) -> Segments < I :: IntoIter > where I : IntoIterator < Item = Point > , { let points = points . into_iter ( ) ; let last_point = None ; Segments { points , last_point } }
Create an iterator yielding segments from an iterator yielding points.
Create an iterator yielding segments from an iterator yielding points .
points
I