[][src]Enum comfy_table::TableComponent

pub enum TableComponent {
    LeftBorder,
    RightBorder,
    TopBorder,
    BottomBorder,
    LeftHeaderIntersection,
    HeaderLines,
    MiddleHeaderIntersections,
    RightHeaderIntersection,
    VerticalLines,
    HorizontalLines,
    MiddleIntersections,
    LeftBorderIntersections,
    RightBorderIntersections,
    TopBorderIntersections,
    BottomBorderIntersections,
    TopLeftCorner,
    TopRightCorner,
    BottomLeftCorner,
    BottomRightCorner,
}

All configurable table components. A character can be assigned to each component via Table::set_style. This is then used to draw character of the respective component to the commandline.

I hope that most component names are self-explanatory. Just in case: BorderIntersections are Intersections, where rows/columns lines meet outer borders. E.g.:

       ---------
       v       |
+---+---+---+  |
| a | b | c |  |
+===+===+===+<-|
|   |   |   |  |
+---+---+---+<-- These "+" chars are Borderintersections.
|   |   |   |    The inner "+" chars are MiddleIntersections
+---+---+---+

Variants

LeftBorder
RightBorder
TopBorder
BottomBorder
LeftHeaderIntersection
HeaderLines
MiddleHeaderIntersections
RightHeaderIntersection
VerticalLines
HorizontalLines
MiddleIntersections
LeftBorderIntersections
RightBorderIntersections
TopBorderIntersections
BottomBorderIntersections
TopLeftCorner
TopRightCorner
BottomLeftCorner
BottomRightCorner

Trait Implementations

impl Debug for TableComponent[src]

impl Eq for TableComponent[src]

impl Hash for TableComponent[src]

impl IntoEnumIterator for TableComponent[src]

type Iterator = TableComponentIter

impl PartialEq<TableComponent> for TableComponent[src]

impl StructuralEq for TableComponent[src]

impl StructuralPartialEq for TableComponent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.