Struct term_table::TableStyle [−][src]
A set of characters which make up a table style
Example
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: '═', };
Fields
top_left_corner: char
top_right_corner: char
bottom_left_corner: char
bottom_right_corner: char
outer_left_vertical: char
outer_right_vertical: char
outer_bottom_horizontal: char
outer_top_horizontal: char
intersection: char
vertical: char
horizontal: char
Implementations
impl TableStyle
[src]
pub fn simple() -> TableStyle
[src]
Basic terminal table style
Example
+---------------------------------------------------------------------------------+ | 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 | +---------------------------------------------------------------------------------+
pub fn extended() -> TableStyle
[src]
Table style using extended character set
Example
╔═════════════════════════════════════════════════════════════════════════════════╗ ║ 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 ║ ╚═════════════════════════════════════════════════════════════════════════════════╝
pub fn thin() -> TableStyle
[src]
┌─────────────────────────────────────────────────────────────────────────────────┐ │ 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 │ └─────────────────────────────────────────────────────────────────────────────────┘
pub fn rounded() -> TableStyle
[src]
╭─────────────────────────────────────────────────────────────────────────────────╮ │ 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 │ ╰─────────────────────────────────────────────────────────────────────────────────╯
pub fn elegant() -> TableStyle
[src]
╔─────────────────────────────────────────────────────────────────────────────────╗ │ 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 │ ╚─────────────────────────────────────────────────────────────────────────────────╝
pub fn blank() -> TableStyle
[src]
Table style comprised of null characters
Example
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
Trait Implementations
impl Clone for TableStyle
[src]
fn clone(&self) -> TableStyle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TableStyle
[src]
impl Debug for TableStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for TableStyle
[src]
impl Send for TableStyle
[src]
impl Sync for TableStyle
[src]
impl Unpin for TableStyle
[src]
impl UnwindSafe for TableStyle
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,