Trait lyon_path::iterator::PathIterator [] [src]

pub trait PathIterator: Iterator<Item = PathEvent> + Sized {
    fn get_state(&self) -> &PathState;

    fn flattened(self, tolerance: f32) -> Flattened<Self> { ... }
}

An extension to the common Iterator interface, that adds information which is useful when chaining path-specific iterators.

Required Methods

The returned structure exposes the current position, the first position in the current sub-path, and the position of the last control point.

Provided Methods

Returns an iterator that turns curves into line segments.

Implementors