Trait lyon::path_iterator::FlattenedIterator
[−]
[src]
pub trait FlattenedIterator: Iterator<Item=FlattenedEvent> { 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
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.
Provided Methods
fn path_iter(self) -> Map<Self, fn(FlattenedEvent) -> PathEvent>
Returns an iterator of path events.
fn svg_iter(self) -> Map<Self, fn(FlattenedEvent) -> SvgEvent>
Returns an iterator of svg events.
Implementors
impl<Iter> FlattenedIterator for FlatteningIter<Iter> where Iter: PathIterator