Trait winit::dpi::Pixel

source ·
pub trait Pixel: Copy + Into<f64> {
    // Required method
    fn from_f64(f: f64) -> Self;

    // Provided method
    fn cast<P>(self) -> P
       where P: Pixel { ... }
}

Required Methods§

source

fn from_f64(f: f64) -> Self

Provided Methods§

source

fn cast<P>(self) -> P
where P: Pixel,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Pixel for f32

source§

impl Pixel for f64

source§

impl Pixel for i8

source§

impl Pixel for i16

source§

impl Pixel for i32

source§

impl Pixel for u8

source§

impl Pixel for u16

source§

impl Pixel for u32

Implementors§