Enum cursive::theme::ColorType [−][src]
pub enum ColorType {
Palette(PaletteColor),
Color(Color),
InheritParent,
}
Expand description
Either a color from the palette, or a direct color.
The Default
implementation returns InheritParent
.
Variants
Palette(PaletteColor)
Tuple Fields
0: PaletteColor
Uses a color from the application palette.
Color(Color)
Tuple Fields
0: Color
Uses a direct color, independent of the current palette.
InheritParent
Re-use the color from the parent.
Implementations
Given a palette, resolve self
to a concrete color.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.