cosmic::iced_widget::canvas::path::lyon_path::iterator

Trait PathIterator

source
pub trait PathIterator: Sized + Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> {
    // Provided methods
    fn flattened(self, tolerance: f32) -> Flattened<Self>  { ... }
    fn transformed<T>(self, mat: &T) -> Transformed<'_, Self, T> 
       where T: Transformation<f32> { ... }
}
Expand description

An extension trait for PathEvent iterators.

Provided Methods§

source

fn flattened(self, tolerance: f32) -> Flattened<Self>

Returns an iterator that turns curves into line segments.

source

fn transformed<T>(self, mat: &T) -> Transformed<'_, Self, T>
where T: Transformation<f32>,

Returns an iterator applying a 2D transform to all of its events.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Iter> PathIterator for Iter