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. Lives here (next to the
tiny-skia rasterizer that consumes them) 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".