Trait lyon_path_iterator::FlattenedIterator [] [src]

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

    fn path_iter(self) -> Map<Self, fn(_: FlattenedEvent) -> PathEvent> { ... }
    fn svg_iter(self) -> Map<Self, fn(_: FlattenedEvent) -> SvgEvent> { ... }
}

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 of path events.

Returns an iterator of svg events.

Implementors