Struct lyon::path_iterator::FlatteningIter
[−]
[src]
pub struct FlatteningIter<Iter> { /* fields omitted */ }
An iterator that consumes an PathIterator and yields FlattenedEvents.
Methods
impl<Iter> FlatteningIter<Iter> where Iter: PathIterator
fn new(tolerance: f32, it: Iter) -> FlatteningIter<Iter>
Create the iterator.
Trait Implementations
impl<Iter> Iterator for FlatteningIter<Iter> where Iter: PathIterator
type Item = FlattenedEvent
fn next(&mut self) -> Option<FlattenedEvent>
impl<Iter> FlattenedIterator for FlatteningIter<Iter> where Iter: PathIterator
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. Read more
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.