HasAlpha

Trait HasAlpha 

Source
pub trait HasAlpha<C>: GetAlpha<C> + SetAlpha<C> {
    // Required methods
    fn get_color(&self) -> C;
    fn set_color(&mut self, color: C) -> &Self;

    // Provided method
    fn split(&self) -> (C, f64)
       where Self: Sized { ... }
}

Required Methods§

Source

fn get_color(&self) -> C

Source

fn set_color(&mut self, color: C) -> &Self

Provided Methods§

Source

fn split(&self) -> (C, f64)
where Self: Sized,

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§