[][src]Trait lyon_path::iterator::FlattenedIterator

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

    fn path_events(self) -> Map<Self, fn(_: FlattenedEvent) -> PathEvent> { ... }
fn svg_events(self) -> Map<Self, fn(_: FlattenedEvent) -> SvgEvent> { ... }
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

fn path_events(self) -> Map<Self, fn(_: FlattenedEvent) -> PathEvent>

Returns an iterator of path events.

fn svg_events(self) -> Map<Self, fn(_: FlattenedEvent) -> SvgEvent>

Returns an iterator of svg events.

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<Iter> FlattenedIterator for Flattened<Iter> where
    Iter: PathIterator
[src]

Loading content...