Skip to main content

SubPixel

Trait SubPixel 

Source
pub trait SubPixel:
    Default
    + Debug
    + Clone
    + Copy
    + Send
    + Sync
    + Into<Rational> {
    // Required methods
    fn as_f32(self) -> f32;
    fn as_u16(self) -> u16;
}

Required Methods§

Source

fn as_f32(self) -> f32

Source

fn as_u16(self) -> u16

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.

Implementations on Foreign Types§

Source§

impl SubPixel for f32

Source§

fn as_f32(self) -> f32

Source§

fn as_u16(self) -> u16

Source§

impl SubPixel for u16

Source§

fn as_f32(self) -> f32

Source§

fn as_u16(self) -> u16

Implementors§