Trait tauri::Pixel
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#
Creates the pixel from the f64 value.
Provided methods#
fn cast<P>(self) -> P where P: Pixel,#
Casts a pixel.