Trait BackendStyle

Source
pub trait BackendStyle {
    type ColorType: Color;

    // Required method
    fn as_color(&self) -> &Self::ColorType;
}
Expand description

The style data for the backend drawing API

Required Associated Types§

Source

type ColorType: Color

The underlying type reprsents the color for this style

Required Methods§

Source

fn as_color(&self) -> &Self::ColorType

Convert the style into the underlying color

Implementors§