Skip to main content

Style

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§