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

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

Combines a front and back color.

Fields

front: Color

Color used for the foreground.

back: Color

Color used for the background.

Implementations

impl ColorPair[src]

pub fn invert(self) -> ColorPair[src]

Return an inverted color pair.

With swapped front and back color.

pub fn from_256colors(front: u8, back: u8) -> ColorPair[src]

Creates a new color pair from color IDs.

Trait Implementations

impl Clone for ColorPair[src]

impl Copy for ColorPair[src]

impl Debug for ColorPair[src]

impl Eq for ColorPair[src]

impl Hash for ColorPair[src]

impl PartialEq<ColorPair> for ColorPair[src]

impl StructuralEq for ColorPair[src]

impl StructuralPartialEq for ColorPair[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

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.

impl<T> With for T[src]