pub trait StyledText {
Show 37 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 dots(self, 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 clear(self) -> Self;
}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 dots(self, 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 clear(self) -> Self
Object Safety§
This trait is not object safe.