pub trait WithChannel<C: Primitive>: Pixel {
type Pixel: Pixel<Subpixel = C>;
}
Expand description
The type obtained by replacing the channel type of a given Pixel
type.
The output type must have the same name of channels as the input type, or
several algorithms will produce incorrect results or panic.
Required Associated Types§
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.