Trait colorz::OptionalColor
source · pub trait OptionalColor: Seal {
type Color: WriteColor;
// Required method
fn get(self) -> Option<Self::Color>;
// Provided method
fn color_kind(self) -> ColorKind { ... }
}
Expand description
An optional color type
Required Associated Types§
sourcetype Color: WriteColor
type Color: WriteColor
The color type
Required Methods§
Provided Methods§
sourcefn color_kind(self) -> ColorKind
fn color_kind(self) -> ColorKind
Get the color value