Struct cursive::theme::ColorPair[][src]

pub struct ColorPair {
    pub front: Color,
    pub back: Color,
}

Combines a front and back color.

Fields

Color used for the foreground.

Color used for the background.

Methods

impl ColorPair
[src]

Return an inverted color pair.

With swapped front abd back color.

Creates a new color pair from color IDs.

Trait Implementations

impl Clone for ColorPair
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColorPair
[src]

impl Debug for ColorPair
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ColorPair
[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 ColorPair
[src]

impl Hash for ColorPair
[src]

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

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

Auto Trait Implementations

impl Send for ColorPair

impl Sync for ColorPair