iced::widget::canvas::path::lyon_path::traits

Trait PathIterator

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> { ... }
}
Available on crate feature canvas only.
Expand description

An extension trait for PathEvent iterators.

Provided Methods§

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

Returns an iterator that turns curves into line segments.

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<Iter> PathIterator for Iter