ColorStyle

Trait ColorStyle 

Source
pub trait ColorStyle {
Show 18 methods // Required methods fn fg_red(self) -> Style; fn fg_green(self) -> Style; fn fg_blue(self) -> Style; fn fg_yellow(self) -> Style; fn fg_magenta(self) -> Style; fn fg_cyan(self) -> Style; fn fg_white(self) -> Style; fn fg_black(self) -> Style; fn fg_bright_red(self) -> Style; fn fg_bright_green(self) -> Style; fn fg_bright_blue(self) -> Style; fn fg_bright_yellow(self) -> Style; fn fg_bright_magenta(self) -> Style; fn fg_bright_cyan(self) -> Style; fn fg_bright_white(self) -> Style; fn with_bold(self) -> Style; fn with_dimmed(self) -> Style; fn with_underline(self) -> Style;
}
Expand description

Extensions for creating styles with common colors

Required Methods§

Source

fn fg_red(self) -> Style

Create a new style with red foreground color

Source

fn fg_green(self) -> Style

Create a new style with green foreground color

Source

fn fg_blue(self) -> Style

Create a new style with blue foreground color

Source

fn fg_yellow(self) -> Style

Create a new style with yellow foreground color

Source

fn fg_magenta(self) -> Style

Create a new style with magenta foreground color

Source

fn fg_cyan(self) -> Style

Create a new style with cyan foreground color

Source

fn fg_white(self) -> Style

Create a new style with white foreground color

Source

fn fg_black(self) -> Style

Create a new style with black foreground color

Source

fn fg_bright_red(self) -> Style

Create a new style with bright red foreground color

Source

fn fg_bright_green(self) -> Style

Create a new style with bright green foreground color

Source

fn fg_bright_blue(self) -> Style

Create a new style with bright blue foreground color

Source

fn fg_bright_yellow(self) -> Style

Create a new style with bright yellow foreground color

Source

fn fg_bright_magenta(self) -> Style

Create a new style with bright magenta foreground color

Source

fn fg_bright_cyan(self) -> Style

Create a new style with bright cyan foreground color

Source

fn fg_bright_white(self) -> Style

Create a new style with bright white foreground color

Source

fn with_bold(self) -> Style

Create a new style with bold formatting

Source

fn with_dimmed(self) -> Style

Create a new style with dimmed formatting

Source

fn with_underline(self) -> Style

Create a new style with underline formatting

Implementors§