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§
Sourcefn fg_magenta(self) -> Style
fn fg_magenta(self) -> Style
Create a new style with magenta foreground color
Sourcefn fg_bright_red(self) -> Style
fn fg_bright_red(self) -> Style
Create a new style with bright red foreground color
Sourcefn fg_bright_green(self) -> Style
fn fg_bright_green(self) -> Style
Create a new style with bright green foreground color
Sourcefn fg_bright_blue(self) -> Style
fn fg_bright_blue(self) -> Style
Create a new style with bright blue foreground color
Sourcefn fg_bright_yellow(self) -> Style
fn fg_bright_yellow(self) -> Style
Create a new style with bright yellow foreground color
Sourcefn fg_bright_magenta(self) -> Style
fn fg_bright_magenta(self) -> Style
Create a new style with bright magenta foreground color
Sourcefn fg_bright_cyan(self) -> Style
fn fg_bright_cyan(self) -> Style
Create a new style with bright cyan foreground color
Sourcefn fg_bright_white(self) -> Style
fn fg_bright_white(self) -> Style
Create a new style with bright white foreground color
Sourcefn with_dimmed(self) -> Style
fn with_dimmed(self) -> Style
Create a new style with dimmed formatting
Sourcefn with_underline(self) -> Style
fn with_underline(self) -> Style
Create a new style with underline formatting