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§
sourcefn foreground_color(self, foreground_color: Option<Color>) -> Self
fn foreground_color(self, foreground_color: Option<Color>) -> Self
Used to set foreground color
sourcefn background_color(self, background_color: Option<Color>) -> Self
fn background_color(self, background_color: Option<Color>) -> Self
Used to set background color
Object Safety§
This trait is not object safe.