pub trait ColorExt {
// Required methods
fn to_skia(&self) -> Color;
fn to_premultiplied(&self) -> PremultipliedColorU8;
}Expand description
Extension trait giving truce_gui_types::theme::Color the
to_skia / to_premultiplied methods that used to live on the
inherent impl, now relocated here so truce-gui-types stays
rasterizer-free.
Required Methods§
fn to_skia(&self) -> Color
fn to_premultiplied(&self) -> PremultipliedColorU8
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".