Trait cli_table::Style

source ·
pub trait Style {
    // Required methods
    fn foreground_color(self, foreground_color: Option<Color>) -> Self;
    fn background_color(self, background_color: Option<Color>) -> Self;
    fn bold(self, bold: bool) -> Self;
    fn underline(self, underline: bool) -> Self;
    fn italic(self, italic: bool) -> Self;
    fn intense(self, intense: bool) -> Self;
    fn dimmed(self, dimmed: bool) -> Self;
}
Expand description

Trait for modifying style of table and cells

Required Methods§

source

fn foreground_color(self, foreground_color: Option<Color>) -> Self

Used to set foreground color

source

fn background_color(self, background_color: Option<Color>) -> Self

Used to set background color

source

fn bold(self, bold: bool) -> Self

Used to set contents to be bold

source

fn underline(self, underline: bool) -> Self

Used to set contents to be underlined

source

fn italic(self, italic: bool) -> Self

Used to set contents to be italic

source

fn intense(self, intense: bool) -> Self

Used to set high intensity version of a color specified

source

fn dimmed(self, dimmed: bool) -> Self

Used to set contents to be dimmed

Object Safety§

This trait is not object safe.

Implementors§