Struct lyon::path_iterator::PathStateIter
[−]
[src]
pub struct PathStateIter<Iter> { /* fields omitted */ }
An adapater iterator that implements PathIterator on top of an Iterator
Methods
impl<Iter> PathStateIter<Iter> where Iter: Iterator<Item=PathEvent>
fn new(it: Iter) -> PathStateIter<Iter>
Trait Implementations
impl<Iter> Iterator for PathStateIter<Iter> where Iter: Iterator<Item=PathEvent>
impl<Iter> PathIterator for PathStateIter<Iter> where Iter: Iterator<Item=PathEvent>
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 flattened(self, tolerance: f32) -> FlatteningIter<Self>
Returns an iterator that turns curves into line segments.
fn svg_iter(self) -> Map<Self, fn(PathEvent) -> SvgEvent>
Returns an iterator of SVG events.