[][src]Enum cursive::theme::ColorType

pub enum ColorType {
    Palette(PaletteColor),
    Color(Color),
}

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

impl ColorType[src]

pub fn resolve(self, palette: &Palette) -> Color[src]

Given a palette, resolve self to a concrete color.

Trait Implementations

impl Clone for ColorType[src]

impl Copy for ColorType[src]

impl Debug for ColorType[src]

impl Eq for ColorType[src]

impl From<Color> for ColorType[src]

impl From<ColorType> for ColorStyle[src]

impl From<ColorType> for Style[src]

impl From<PaletteColor> for ColorType[src]

impl Hash for ColorType[src]

impl PartialEq<ColorType> for ColorType[src]

impl StructuralEq for ColorType[src]

impl StructuralPartialEq for ColorType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.