[go: up one dir, main page]

StyleCode

Enum StyleCode 

Source
pub enum StyleCode {
Show 36 variants black, red, green, yellow, blue, magenta, cyan, white, bright_black, bright_red, bright_green, bright_yellow, bright_blue, bright_magenta, bright_cyan, bright_white, bg_black, bg_red, bg_green, bg_yellow, bg_blue, bg_magenta, bg_cyan, bg_white, bg_bright_black, bg_bright_red, bg_bright_green, bg_bright_yellow, bg_bright_blue, bg_bright_magenta, bg_bright_cyan, bg_bright_white, bold, italic, underline, strikethrough,
}

Variants§

§

black

§

red

§

green

§

yellow

§

blue

§

magenta

§

cyan

§

white

§

bright_black

§

bright_red

§

bright_green

§

bright_yellow

§

bright_blue

§

bright_magenta

§

bright_cyan

§

bright_white

§

bg_black

§

bg_red

§

bg_green

§

bg_yellow

§

bg_blue

§

bg_magenta

§

bg_cyan

§

bg_white

§

bg_bright_black

§

bg_bright_red

§

bg_bright_green

§

bg_bright_yellow

§

bg_bright_blue

§

bg_bright_magenta

§

bg_bright_cyan

§

bg_bright_white

§

bold

§

italic

§

underline

§

strikethrough

Implementations§

Source§

impl StyleCode

Source

pub fn code(&self) -> u8

Source§

impl StyleCode

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 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

Source

pub fn bg_black() -> Self

Source

pub fn bg_red() -> Self

Source

pub fn bg_green() -> Self

Source

pub fn bg_yellow() -> Self

Source

pub fn bg_blue() -> Self

Source

pub fn bg_magenta() -> Self

Source

pub fn bg_cyan() -> Self

Source

pub fn bg_white() -> Self

Source

pub fn bg_bright_black() -> Self

Source

pub fn bg_bright_red() -> Self

Source

pub fn bg_bright_green() -> Self

Source

pub fn bg_bright_yellow() -> Self

Source

pub fn bg_bright_blue() -> Self

Source

pub fn bg_bright_magenta() -> Self

Source

pub fn bg_bright_cyan() -> Self

Source

pub fn bg_bright_white() -> Self

Source

pub fn bold() -> Self

Source

pub fn italic() -> Self

Source

pub fn underline() -> Self

Source

pub fn strikethrough() -> Self

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, 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.