Skip to main content

ColorCompat

Trait ColorCompat 

pub trait ColorCompat {
    // Required methods
    fn r(&self) -> u8;
    fn g(&self) -> u8;
    fn b(&self) -> u8;
    fn a(&self) -> u8;
    fn with_alpha_factor(self, factor: f32) -> Self;
}

Required Methods§

fn r(&self) -> u8

fn g(&self) -> u8

fn b(&self) -> u8

fn a(&self) -> u8

fn with_alpha_factor(self, factor: 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.

Implementors§