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]

[src]

Return an inverted color pair.

With swapped front abd back color.

[src]

Creates a new color pair from color IDs.

Trait Implementations

impl Clone for ColorPair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ColorPair
[src]

impl Debug for ColorPair
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ColorPair
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ColorPair
[src]

impl Hash for ColorPair
[src]

[src]

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

1.3.0
[src]

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