pub trait WithAlpha: Pixel {
type WithAlpha: Pixel;
// Required method
fn with_alpha(self) -> Self::WithAlpha;
}
Expand description
A pixel which can gain an alpha component.
Required Associated Types§
Required Methods§
Sourcefn with_alpha(self) -> Self::WithAlpha
fn with_alpha(self) -> Self::WithAlpha
Returns the pixel type with its alpha component. If no alpha component is already contained
then it is set to the maximum value.
PixelComponent
.
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.