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

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

    fn flattened(self, tolerance: f32) -> Flattened<Self> { ... }
fn transformed(self, mat: &Transform2D) -> Transformed<Self> { ... } }

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

Required methods

fn get_state(&self) -> &PathState

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

Loading content...

Provided methods

Important traits for Flattened<Iter>
fn flattened(self, tolerance: f32) -> Flattened<Self>

Returns an iterator that turns curves into line segments.

Important traits for Transformed<I>
fn transformed(self, mat: &Transform2D) -> Transformed<Self>

Returns an iterator applying a 2D transform to all of its events.

Loading content...

Implementors

impl<E, Iter> PathIterator for PathIter<Iter> where
    E: Into<PathEvent>,
    Iter: Iterator<Item = E>, 
[src]

impl<SvgIter> PathIterator for PathEvents<SvgIter> where
    SvgIter: SvgIterator
[src]

Loading content...