Function kurbo::segments[][src]

pub fn segments<I>(elements: I) -> Segments<I::IntoIter>
Notable traits for Segments<I>
impl<I: Iterator<Item = PathEl>> Iterator for Segments<I> type Item = PathSeg;
where
    I: IntoIterator<Item = PathEl>, 
Expand description

Transform an iterator over path elements into one over path segments.

See also BezPath::segments. This signature is a bit more general, allowing &[PathEl] slices and other iterators yielding PathEl.