pub trait Pixel: Copy + Into<f64> { fn from_f64(f: f64) -> Self; fn cast<P: Pixel>(self) -> P { ... } }
A pixel definition. Must be created from a f64 value.
f64
Creates the pixel from the f64 value.
Casts a pixel.