pub trait Point2 {
// Required methods
fn new(x: f32, y: f32) -> Self;
fn x(&self) -> f32;
fn y(&self) -> f32;
}Expand description
Trait to aid with using arbitrary 2D point types on a Contour.
Required Methods§
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.