Trait winit::dpi::Pixel

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§

fn from_f64(f: f64) -> Self

Provided Methods§

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Pixel for f32

§

fn from_f64(f: f64) -> f32

§

impl Pixel for f64

§

fn from_f64(f: f64) -> f64

§

impl Pixel for i8

§

fn from_f64(f: f64) -> i8

§

impl Pixel for i16

§

fn from_f64(f: f64) -> i16

§

impl Pixel for i32

§

fn from_f64(f: f64) -> i32

§

impl Pixel for u8

§

fn from_f64(f: f64) -> u8

§

impl Pixel for u16

§

fn from_f64(f: f64) -> u16

§

impl Pixel for u32

§

fn from_f64(f: f64) -> u32

Implementors§