Trait WithAlpha

Source
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§

Source

type WithAlpha: Pixel

The pixel type with its alpha component.

Required Methods§

Source

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.

Implementors§