[][src]Struct term_table::Table

pub struct Table<'data> {
    pub rows: Vec<Row<'data>>,
    pub style: TableStyle,
    pub max_column_width: usize,
    pub max_column_widths: HashMap<usize, usize>,
}

A set of rows containing data

Fields

The maximum width of all columns. Overriden by values in column_widths. Defults to std::usize::max

The maxium widths of specific columns. Override max_column

Methods

impl<'data> Table<'data>
[src]

Set the max width of a paticular column

Set the max widths of specific columns

Simply adds a row to the rows Vec

Does all of the calculations to reformat the row based on it's current state and returns the result as a String

Trait Implementations

impl<'data> ToString for Table<'data>
[src]

impl<'data> Default for Table<'data>
[src]

Auto Trait Implementations

impl<'data> Send for Table<'data>

impl<'data> Sync for Table<'data>

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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