pub trait Theme: Copy {
type Color: PixelColor + Default;
// Required methods
fn text_color(&self) -> Self::Color;
fn selected_text_color(&self) -> Self::Color;
fn selection_color(&self) -> Self::Color;
}
Required Associated Types§
type Color: PixelColor + Default
Required Methods§
fn text_color(&self) -> Self::Color
fn selected_text_color(&self) -> Self::Color
fn selection_color(&self) -> Self::Color
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.