pub enum ColorType {
Palette(PaletteColor),
Color(Color),
}
Expand description
Either a color from the palette, or a direct color.
Variants
Palette(PaletteColor)
Uses a color from the application palette.
Color(Color)
Uses a direct color, independent of the current palette.
Implementations
Trait Implementations
sourceimpl From<ColorType> for ColorStyle
impl From<ColorType> for ColorStyle
sourceimpl From<PaletteColor> for ColorType
impl From<PaletteColor> for ColorType
sourcefn from(color: PaletteColor) -> Self
fn from(color: PaletteColor) -> Self
Converts to this type from the input type.
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