Skip to main content

StyledText

Trait StyledText 

Source
pub trait StyledText {
Show 39 methods // Required methods fn s<T: Display>(self, s: T) -> Self; fn nl(self) -> Self; fn space(self) -> Self; fn spaces(self, n: usize) -> Self; fn dot(self) -> Self; fn colon(self) -> Self; fn slash(self) -> Self; fn backslash(self) -> Self; fn perc(self) -> Self; fn repeat<T: Display>(self, s: T, n: usize) -> Self; fn plural<T: Display>(self, s: T, n: usize) -> Self; fn black(self) -> Self; fn red(self) -> Self; fn green(self) -> Self; fn yellow(self) -> Self; fn blue(self) -> Self; fn magenta(self) -> Self; fn cyan(self) -> Self; fn white(self) -> Self; fn bg_black(self) -> Self; fn bg_red(self) -> Self; fn bg_green(self) -> Self; fn bg_yellow(self) -> Self; fn bg_blue(self) -> Self; fn bg_magenta(self) -> Self; fn bg_cyan(self) -> Self; fn bg_white(self) -> Self; fn color(self, c: Color) -> Self; fn bg_color(self, c: Color) -> Self; fn color_8(self, c: u8) -> Self; fn bg_color_8(self, c: u8) -> Self; fn color_256(self, c: u8) -> Self; fn bg_color_256(self, c: u8) -> Self; fn color_rgb(self, c: RgbColor) -> Self; fn bg_color_rgb(self, c: RgbColor) -> Self; fn bold(self) -> Self; fn italic(self) -> Self; fn underline(self) -> Self; fn c(self) -> Self;
}

Required Methods§

Source

fn s<T: Display>(self, s: T) -> Self

Source

fn nl(self) -> Self

Source

fn space(self) -> Self

Source

fn spaces(self, n: usize) -> Self

Source

fn dot(self) -> Self

Source

fn colon(self) -> Self

Source

fn slash(self) -> Self

Source

fn backslash(self) -> Self

Source

fn perc(self) -> Self

Source

fn repeat<T: Display>(self, s: T, n: usize) -> Self

Source

fn plural<T: Display>(self, s: T, n: usize) -> Self

Source

fn black(self) -> Self

Source

fn red(self) -> Self

Source

fn green(self) -> Self

Source

fn yellow(self) -> Self

Source

fn blue(self) -> Self

Source

fn magenta(self) -> Self

Source

fn cyan(self) -> Self

Source

fn white(self) -> Self

Source

fn bg_black(self) -> Self

Source

fn bg_red(self) -> Self

Source

fn bg_green(self) -> Self

Source

fn bg_yellow(self) -> Self

Source

fn bg_blue(self) -> Self

Source

fn bg_magenta(self) -> Self

Source

fn bg_cyan(self) -> Self

Source

fn bg_white(self) -> Self

Source

fn color(self, c: Color) -> Self

Source

fn bg_color(self, c: Color) -> Self

Source

fn color_8(self, c: u8) -> Self

Source

fn bg_color_8(self, c: u8) -> Self

Source

fn color_256(self, c: u8) -> Self

Source

fn bg_color_256(self, c: u8) -> Self

Source

fn color_rgb(self, c: RgbColor) -> Self

Source

fn bg_color_rgb(self, c: RgbColor) -> Self

Source

fn bold(self) -> Self

Source

fn italic(self) -> Self

Source

fn underline(self) -> Self

Source

fn c(self) -> Self

Clears all coloring settings.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§