1use super::{ContentLineStyle, LineStyle, TableStyle};
2
3pub const ASCII_FULL: TableStyle = TableStyle::new()
15 .top_border(LineStyle::new('+', '-', '+', '+'))
16 .header_lines(ContentLineStyle::new('|', '|', '|'))
17 .header_separator(LineStyle::new('+', '=', '=', '+'))
18 .content_lines(ContentLineStyle::new('|', '|', '|'))
19 .row_separator(LineStyle::new('|', '-', '+', '|'))
20 .bottom_border(LineStyle::new('+', '-', '+', '+'));
21
22pub const ASCII_FULL_CONDENSED: TableStyle = TableStyle::new()
32 .top_border(LineStyle::new('+', '-', '+', '+'))
33 .header_lines(ContentLineStyle::new('|', '|', '|'))
34 .header_separator(LineStyle::new('+', '=', '=', '+'))
35 .content_lines(ContentLineStyle::new('|', '|', '|'))
36 .bottom_border(LineStyle::new('+', '-', '+', '+'));
37
38pub const ASCII_NO_BORDERS: TableStyle = TableStyle::new()
48 .header_lines(ContentLineStyle::none().junction('|'))
49 .header_separator(LineStyle::none().fill('=').junction('='))
50 .content_lines(ContentLineStyle::none().junction('|'))
51 .row_separator(LineStyle::none().fill('-').junction('+'));
52
53pub const ASCII_BORDERS_ONLY: TableStyle = TableStyle::new()
65 .top_border(LineStyle::new('+', '-', '-', '+'))
66 .header_lines(ContentLineStyle::none().left('|').right('|'))
67 .header_separator(LineStyle::new('+', '=', '=', '+'))
68 .content_lines(ContentLineStyle::none().left('|').right('|'))
69 .row_separator(LineStyle::none().left('|').right('|'))
70 .bottom_border(LineStyle::new('+', '-', '-', '+'));
71
72pub const ASCII_BORDERS_ONLY_CONDENSED: TableStyle = TableStyle::new()
83 .top_border(LineStyle::new('+', '-', '-', '+'))
84 .header_lines(ContentLineStyle::none().left('|').right('|'))
85 .header_separator(LineStyle::new('+', '=', '=', '+'))
86 .content_lines(ContentLineStyle::none().left('|').right('|'))
87 .bottom_border(LineStyle::new('+', '-', '-', '+'));
88
89pub const ASCII_HORIZONTAL_ONLY: TableStyle = TableStyle::new()
101 .top_border(LineStyle::none().fill('-').junction('-'))
102 .header_separator(LineStyle::none().fill('=').junction('='))
103 .row_separator(LineStyle::none().fill('-').junction('-'))
104 .bottom_border(LineStyle::none().fill('-').junction('-'));
105
106pub const ASCII_MARKDOWN: TableStyle = TableStyle::new()
115 .header_lines(ContentLineStyle::new('|', '|', '|'))
116 .header_separator(LineStyle::new('|', '-', '|', '|'))
117 .content_lines(ContentLineStyle::new('|', '|', '|'));
118
119pub const UTF8_FULL: TableStyle = TableStyle::new()
132 .top_border(LineStyle::new('┌', '─', '┬', '┐'))
133 .header_lines(ContentLineStyle::new('│', '┆', '│'))
134 .header_separator(LineStyle::new('╞', '═', '╪', '╡'))
135 .content_lines(ContentLineStyle::new('│', '┆', '│'))
136 .row_separator(LineStyle::new('├', '╌', '┼', '┤'))
137 .bottom_border(LineStyle::new('└', '─', '┴', '┘'));
138
139pub const UTF8_FULL_CONDENSED: TableStyle = TableStyle::new()
150 .top_border(LineStyle::new('┌', '─', '┬', '┐'))
151 .header_lines(ContentLineStyle::new('│', '┆', '│'))
152 .header_separator(LineStyle::new('╞', '═', '╪', '╡'))
153 .content_lines(ContentLineStyle::new('│', '┆', '│'))
154 .bottom_border(LineStyle::new('└', '─', '┴', '┘'));
155
156pub const UTF8_NO_BORDERS: TableStyle = TableStyle::new()
166 .header_lines(ContentLineStyle::none().junction('┆'))
167 .header_separator(LineStyle::none().fill('═').junction('╪'))
168 .content_lines(ContentLineStyle::none().junction('┆'))
169 .row_separator(LineStyle::none().fill('╌').junction('┼'));
170
171pub const UTF8_BORDERS_ONLY: TableStyle = TableStyle::new()
182 .top_border(LineStyle::new('┌', '─', '─', '┐'))
183 .header_lines(ContentLineStyle::none().left('│').right('│'))
184 .header_separator(LineStyle::new('╞', '═', '═', '╡'))
185 .content_lines(ContentLineStyle::none().left('│').right('│'))
186 .bottom_border(LineStyle::new('└', '─', '─', '┘'));
187
188pub const UTF8_HORIZONTAL_ONLY: TableStyle = TableStyle::new()
200 .top_border(LineStyle::none().fill('─').junction('─'))
201 .header_separator(LineStyle::none().fill('═').junction('═'))
202 .row_separator(LineStyle::none().fill('─').junction('─'))
203 .bottom_border(LineStyle::none().fill('─').junction('─'));
204
205pub const NOTHING: TableStyle = TableStyle::new();