pub struct TableStyle {
pub top_left_corner: char,
pub top_right_corner: char,
pub bottom_left_corner: char,
pub bottom_right_corner: char,
pub outer_left_vertical: char,
pub outer_right_vertical: char,
pub outer_bottom_horizontal: char,
pub outer_top_horizontal: char,
pub intersection: char,
pub vertical: char,
pub horizontal: char,
}
A set of characters which make up a table style
term_table::TableStyle {
top_left_corner: '╔',
top_right_corner: '╗',
bottom_left_corner: '╚',
bottom_right_corner: '╝',
outer_left_vertical: '╠',
outer_right_vertical: '╣',
outer_bottom_horizontal: '╩',
outer_top_horizontal: '╦',
intersection: '╬',
vertical: '║',
horizontal: '═',
};
Basic terminal table style
+---------------------------------------------------------------------------------+
| This is some centered text |
+----------------------------------------+----------------------------------------+
| This is left aligned text | This is right aligned text |
+----------------------------------------+----------------------------------------+
| This is left aligned text | This is right aligned text |
+----------------------------------------+----------------------------------------+
| This is some really really really really really really really really really tha |
| t is going to wrap to the next line |
+---------------------------------------------------------------------------------+
Table style using extended character set
╔═════════════════════════════════════════════════════════════════════════════════╗
║ This is some centered text ║
╠════════════════════════════════════════╦════════════════════════════════════════╣
║ This is left aligned text ║ This is right aligned text ║
╠════════════════════════════════════════╬════════════════════════════════════════╣
║ This is left aligned text ║ This is right aligned text ║
╠════════════════════════════════════════╩════════════════════════════════════════╣
║ This is some really really really really really really really really really tha ║
║ t is going to wrap to the next line ║
╚═════════════════════════════════════════════════════════════════════════════════╝
┌─────────────────────────────────────────────────────────────────────────────────┐
│ This is some centered text │
├────────────────────────────────────────┬────────────────────────────────────────┤
│ This is left aligned text │ This is right aligned text │
├────────────────────────────────────────┼────────────────────────────────────────┤
│ This is left aligned text │ This is right aligned text │
├────────────────────────────────────────┴────────────────────────────────────────┤
│ This is some really really really really really really really really really tha │
│ t is going to wrap to the next line │
└─────────────────────────────────────────────────────────────────────────────────┘
╭─────────────────────────────────────────────────────────────────────────────────╮
│ This is some centered text │
├────────────────────────────────────────┬────────────────────────────────────────┤
│ This is left aligned text │ This is right aligned text │
├────────────────────────────────────────┼────────────────────────────────────────┤
│ This is left aligned text │ This is right aligned text │
├────────────────────────────────────────┴────────────────────────────────────────┤
│ This is some really really really really really really really really really tha │
│ t is going to wrap to the next line │
╰─────────────────────────────────────────────────────────────────────────────────╯
╔─────────────────────────────────────────────────────────────────────────────────╗
│ This is some centered text │
╠────────────────────────────────────────╦────────────────────────────────────────╣
│ This is left aligned text │ This is right aligned text │
╠────────────────────────────────────────┼────────────────────────────────────────╣
│ This is left aligned text │ This is right aligned text │
╠────────────────────────────────────────╩────────────────────────────────────────╣
│ This is some really really really really really really really really really tha │
│ t is going to wrap to the next line │
╚─────────────────────────────────────────────────────────────────────────────────╝
Table style comprised of null characters
This is some centered text
This is left aligned text This is right aligned text
This is left aligned text This is right aligned text
This is some really really really really really really really really really tha
t is going to wrap to the next line
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more