Trait ColModify

Source
pub trait ColModify: Copy {
    // Required methods
    fn foreground(&self, rgb24: Option<Rgb24>) -> Option<Rgb24>;
    fn background(&self, rgb24: Option<Rgb24>) -> Option<Rgb24>;

    // Provided method
    fn compose<Other>(self, other: Other) -> ColModifyCompose<Self, Other>
       where Other: ColModify { ... }
}

Required Methods§

Source

fn foreground(&self, rgb24: Option<Rgb24>) -> Option<Rgb24>

Source

fn background(&self, rgb24: Option<Rgb24>) -> Option<Rgb24>

Provided Methods§

Source

fn compose<Other>(self, other: Other) -> ColModifyCompose<Self, Other>
where Other: ColModify,

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§