pub trait PointCoord:
    Copy
    + Default
    + AnyBitPattern
    + PartialEq
    + PartialOrd
    + Add<Output = Self>
    + AddAssign
    + Sub<Output = Self>
    + Div<Output = Self>
    + Mul<Output = Self>
    + MulAssign {
    // Required methods
    fn from_fixed(x: Fixed) -> Self;
    fn from_i32(x: i32) -> Self;
    fn to_f32(self) -> f32;
    fn midpoint(self, other: Self) -> Self;
}Expand description
Trait for types that are usable for TrueType point coordinates.
Required Methods§
fn from_fixed(x: Fixed) -> Self
fn from_i32(x: i32) -> Self
fn to_f32(self) -> f32
fn midpoint(self, other: Self) -> Self
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.