[][src]Struct easycurses::ColorPair

pub struct ColorPair(_);

A color pair for a character cell on the screen.

Use them with EasyCurses::set_color_pair.

Methods

impl ColorPair[src]

pub fn new(fg: Color, bg: Color) -> Self[src]

Creates a new ColorPair given a foreground and background.

Trait Implementations

impl Clone for ColorPair[src]

impl Copy for ColorPair[src]

impl Debug for ColorPair[src]

impl Default for ColorPair[src]

fn default() -> Self[src]

The "default" color pair is White text on a Black background.

use easycurses::{Color,ColorPair};
assert_eq!(ColorPair::default(), ColorPair::new(Color::White,Color::Black));

impl Eq for ColorPair[src]

impl Hash for ColorPair[src]

impl Ord for ColorPair[src]

impl PartialEq<ColorPair> for ColorPair[src]

impl PartialOrd<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> 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.