Trait ScaleMix

Source
pub trait ScaleMix {
    // Required methods
    fn scaled(&self, scale: &RGBAColourD) -> Self;
    fn mix(&self, wet: &Self, mix: f32) -> Self;
}

Required Methods§

Source

fn scaled(&self, scale: &RGBAColourD) -> Self

Source

fn mix(&self, wet: &Self, mix: f32) -> Self

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.

Implementations on Foreign Types§

Source§

impl ScaleMix for f32

Source§

fn scaled(&self, scale: &RGBAColourD) -> Self

Source§

fn mix(&self, wet: &Self, mix: f32) -> Self

Source§

impl ScaleMix for u8

Source§

fn scaled(&self, scale: &RGBAColourD) -> Self

Source§

fn mix(&self, wet: &Self, mix: f32) -> Self

Source§

impl ScaleMix for u16

Source§

fn scaled(&self, scale: &RGBAColourD) -> Self

Source§

fn mix(&self, wet: &Self, mix: f32) -> Self

Implementors§

Source§

impl<T> ScaleMix for T
where T: PixelFormatRGBA,