pub trait CanShade {
// Required method
fn shade(&mut self, pixel: Pixel) -> Pixel;
}Expand description
To write a shader you must have a struct that implements this shader
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".