Skip to main content

BackgroundColors

Enum BackgroundColors 

Source
pub enum BackgroundColors {
Show 17 variants Black(&'static str), Red(&'static str), Green(&'static str), Yellow(&'static str), Blue(&'static str), Magenta(&'static str), Cyan(&'static str), White(&'static str), Default(&'static str), BrightBlack(&'static str), BrightRed(&'static str), BrightGreen(&'static str), BrightYellow(&'static str), BrightBlue(&'static str), BrightMagenta(&'static str), BrightCyan(&'static str), BrightWhite(&'static str),
}

Variants§

§

Black(&'static str)

§

Red(&'static str)

§

Green(&'static str)

§

Yellow(&'static str)

§

Blue(&'static str)

§

Magenta(&'static str)

§

Cyan(&'static str)

§

White(&'static str)

§

Default(&'static str)

§

BrightBlack(&'static str)

§

BrightRed(&'static str)

§

BrightGreen(&'static str)

§

BrightYellow(&'static str)

§

BrightBlue(&'static str)

§

BrightMagenta(&'static str)

§

BrightCyan(&'static str)

§

BrightWhite(&'static str)

Implementations§

Source§

impl BackgroundColors

Source

pub fn black() -> Self

Source

pub fn red() -> Self

Source

pub fn green() -> Self

Source

pub fn yellow() -> Self

Source

pub fn blue() -> Self

Source

pub fn magenta() -> Self

Source

pub fn cyan() -> Self

Source

pub fn white() -> Self

Source

pub fn default() -> Self

Source

pub fn bright_black() -> Self

Source

pub fn bright_red() -> Self

Source

pub fn bright_green() -> Self

Source

pub fn bright_yellow() -> Self

Source

pub fn bright_blue() -> Self

Source

pub fn bright_magenta() -> Self

Source

pub fn bright_cyan() -> Self

Source

pub fn bright_white() -> Self

Trait Implementations§

Source§

impl Add for BackgroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BackgroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BackgroundColors> for String

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BackgroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BackgroundColors> for FontMode

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BackgroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BackgroundColors> for ForegroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BackgroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<FontMode> for BackgroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FontMode) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ForegroundColors> for BackgroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ForegroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<String> for BackgroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: String) -> Self::Output

Performs the + operation. Read more
Source§

impl Display for BackgroundColors

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.