Trait winit::dpi::Pixel

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

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

Required Methods§

source

fn from_f64(f: f64) -> Self

Provided Methods§

source

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

Implementations on Foreign Types§

source§

impl Pixel for u8

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for u16

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for u32

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i8

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i16

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for i32

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for f32

source§

fn from_f64(f: f64) -> Self

source§

impl Pixel for f64

source§

fn from_f64(f: f64) -> Self

Implementors§