pub trait PixelsExt {
// Required methods
fn as_f32(&self) -> f32;
fn as_f64(self) -> f64;
}Expand description
Extension trait for converting Pixels to f32 and f64
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".