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)
Uses a color from the application palette.
Color(Color)
Uses a direct color, independent of the current palette.
InheritParent
Re-use the color from the parent.
Implementations
Trait Implementations
sourceimpl From<ColorType> for ColorStyle
impl From<ColorType> for ColorStyle
sourcefn from(color: ColorType) -> ColorStyle
fn from(color: ColorType) -> ColorStyle
Converts to this type from the input type.
sourceimpl From<PaletteColor> for ColorType
impl From<PaletteColor> for ColorType
sourcefn from(color: PaletteColor) -> ColorType
fn from(color: PaletteColor) -> ColorType
Converts to this type from the input type.
sourceimpl PartialEq<ColorType> for ColorType
impl PartialEq<ColorType> for ColorType
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more