Skip to main content

HasntAlpha

Trait HasntAlpha 

Source
pub trait HasntAlpha: IsColor {
    type Alphaful: HasAlpha;

    // Required method
    fn with_alpha(self, alpha: Self::Channel) -> Self::Alphaful;
}
Expand description

The color which has not alpha component

Required Associated Types§

Source

type Alphaful: HasAlpha

The color of same kind but with alpha component

Required Methods§

Source

fn with_alpha(self, alpha: Self::Channel) -> Self::Alphaful

Append alpha component to the color

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§