Trait Pixel
winit::dpi
pub trait Pixel: Copy + Into<f64> { fn from_f64(f: f64) -> Self; fn cast<P: Pixel>(self) -> P { ... } }
fn from_f64(f: f64) -> Self
fn cast<P: Pixel>(self) -> P
impl Pixel for u8
impl Pixel for u16
impl Pixel for u32
impl Pixel for i8
impl Pixel for i16
impl Pixel for i32
impl Pixel for f32
impl Pixel for f64