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

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

Either a color from the palette, or a direct color.

Variants

Uses a color from the application palette.

Uses a direct color, independent of the current palette.

Methods

impl ColorType
[src]

Given a palette, resolve self to a concrete color.

Trait Implementations

impl From<ColorType> for ColorStyle
[src]

Performs the conversion.

impl Clone for ColorType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColorType
[src]

impl Debug for ColorType
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ColorType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ColorType
[src]

impl Hash for ColorType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<Color> for ColorType
[src]

Performs the conversion.

impl From<PaletteColor> for ColorType
[src]

Performs the conversion.

impl From<ColorType> for Style
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ColorType

impl Sync for ColorType