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 methodsfrom_f64(f: f64) -> Self#
fnCreates the pixel from the f64
value.
#
Provided methodscast<P>(self) -> P where P: Pixel,#
fnCasts a pixel.