Trait for modifying style of table and cells
| 2 | |
| 3 | /// Trait for modifying style of table and cells |
| 4 | pub trait Style { |
| 5 | /// Used to set foreground color |
| 6 | fn foreground_color(self, foreground_color: Option<Color>) -> Self; |
| 7 | /// Used to set background color |
| 8 | fn background_color(self, background_color: Option<Color>) -> Self; |
| 9 | /// Used to set contents to be bold |
| 10 | fn bold(self, bold: bool) -> Self; |
| 11 | /// Used to set contents to be underlined |
| 12 | fn underline(self, underline: bool) -> Self; |
| 13 | /// Used to set contents to be italic |
| 14 | fn italic(self, italic: bool) -> Self; |
| 15 | /// Used to set high intensity version of a color specified |
| 16 | fn intense(self, intense: bool) -> Self; |
| 17 | /// Used to set contents to be dimmed |
| 18 | fn dimmed(self, dimmed: bool) -> Self; |
| 19 | } |
| 20 | |
| 21 | #[derive(Debug, Clone, Copy, Default)] |
| 22 | pub(crate) struct StyleStruct { |