Trait tauri::Pixel[][src]

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

    fn cast<P>(self) -> P
    where
        P: Pixel
, { ... } }
Expand description

A pixel definition. Must be created from a f64 value.

Required methods

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

Expand description

Creates the pixel from the f64 value.

Loading content...

Provided methods

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

Expand description

Casts a pixel.

Loading content...

Implementations on Foreign Types

impl Pixel for i8[src]

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

impl Pixel for u8[src]

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

impl Pixel for i32[src]

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

impl Pixel for u16[src]

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

impl Pixel for i16[src]

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

impl Pixel for f32[src]

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

impl Pixel for f64[src]

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

impl Pixel for u32[src]

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

Loading content...

Implementors

Loading content...