pub trait Pixel: Copy + Into<f64> {
// Required method
fn from_f64(f: f64) -> Self;
// Provided method
fn cast<P>(self) -> P
where P: Pixel { ... }
}
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.