Trait winit::dpi::Pixel[][src]

pub trait Pixel: Copy + Into<f64> {
    fn from_f64(f: f64) -> Self;

    fn cast<P: Pixel>(self) -> P { ... }
}

Required methods

fn from_f64(f: f64) -> Self[src]

Provided methods

fn cast<P: Pixel>(self) -> P[src]

Implementations on Foreign Types

impl Pixel for u8[src][]

impl Pixel for u16[src][]

impl Pixel for u32[src][]

impl Pixel for i8[src][]

impl Pixel for i16[src][]

impl Pixel for i32[src][]

impl Pixel for f32[src][]

impl Pixel for f64[src][]

Implementors