Struct term_table::TableBuilder[][src]

pub struct TableBuilder<'data> { /* fields omitted */ }

Used to create non-mutable tables

Implementations

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

pub fn new() -> TableBuilder<'data>[src]

pub fn rows(&mut self, rows: Vec<Row<'data>>) -> &mut Self[src]

pub fn style(&mut self, style: TableStyle) -> &mut Self[src]

pub fn max_column_width(&mut self, max_column_width: usize) -> &mut Self[src]

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

pub fn max_column_widths(
    &mut self,
    max_column_widths: HashMap<usize, usize>
) -> &mut Self
[src]

The maximum widths of specific columns. Override max_column

pub fn separate_rows(&mut self, separate_rows: bool) -> &mut Self[src]

Whether or not to vertically separate rows in the table

pub fn has_top_boarder(&mut self, has_top_boarder: bool) -> &mut Self[src]

Whether the table should have a top boarder. Setting has_separator to false on the first row will have the same effect as setting this to false

pub fn has_bottom_boarder(&mut self, has_bottom_boarder: bool) -> &mut Self[src]

Whether the table should have a bottom boarder

pub fn build(&self) -> Table<'data>[src]

Build a Table using the current configuration

Trait Implementations

impl<'data> Clone for TableBuilder<'data>[src]

impl<'data> Debug for TableBuilder<'data>[src]

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

Auto Trait Implementations

impl<'data> RefUnwindSafe for TableBuilder<'data>[src]

impl<'data> Send for TableBuilder<'data>[src]

impl<'data> Sync for TableBuilder<'data>[src]

impl<'data> Unpin for TableBuilder<'data>[src]

impl<'data> UnwindSafe for TableBuilder<'data>[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.