cosmic::widget::canvas::path::lyon_path

Trait Position

source
pub trait Position {
    // Required method
    fn position(&self) -> Point2D<f32, UnknownUnit>;
}
Expand description

Interface for types types (typically endpoints and control points) that have a 2D position.

Required Methods§

Implementations on Foreign Types§

source§

impl Position for (f32, f32)

source§

impl Position for [f32; 2]

source§

impl<'l, T> Position for &'l T
where T: Position,

source§

impl<T> Position for (Point2D<f32, UnknownUnit>, T)

Implementors§

source§

impl<U> Position for Point2D<f32, U>