PointType

Trait PointType 

Source
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§

Source

fn from<P: PointType>(p: &P) -> Self

Source

fn to_point_f64(&self) -> PointF64

Source

fn to_point_i32(&self) -> PointI32

Provided Methods§

Source

fn to<T: PointType>(&self) -> T

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§