pub trait PointType: Default + Copy {
// Required methods
fn from<P: PointType>(p: &P) -> Self;
fn to_point_f64(&self) -> PointF64;
fn to_point_i32(&self) -> PointI32;
// Provided method
fn to<T: PointType>(&self) -> T { ... }
}Required Methods§
fn from<P: PointType>(p: &P) -> Self
fn to_point_f64(&self) -> PointF64
fn to_point_i32(&self) -> PointI32
Provided 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.