MCPcopy Create free account
hub / github.com/devashishdxt/cli-table / Style

Interface Style

cli-table/src/style.rs:4–19  ·  view source on GitHub ↗

Trait for modifying style of table and cells

Source from the content-addressed store, hash-verified

2
3/// Trait for modifying style of table and cells
4pub 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)]
22pub(crate) struct StyleStruct {

Callers

nothing calls this directly

Implementers 3

style.rscli-table/src/style.rs
table.rscli-table/src/table.rs
cell.rscli-table/src/cell.rs

Calls

no outgoing calls

Tested by

no test coverage detected