Skip to main content

PathCurves

Trait PathCurves 

Source
pub trait PathCurves {
    // Required methods
    fn quadratic_curves(&self) -> impl Iterator<Item = QuadraticBezier> + '_;
    fn cubic_curves(&self) -> impl Iterator<Item = CubicBezier> + '_;
}
Expand description

Extension trait for extracting curve segments from paths.

Required Methods§

Source

fn quadratic_curves(&self) -> impl Iterator<Item = QuadraticBezier> + '_

Iterator over quadratic curves in the path.

Source

fn cubic_curves(&self) -> impl Iterator<Item = CubicBezier> + '_

Iterator over cubic curves in the path.

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§