Struct term_table::TableBuilder [−][src]
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]
&mut self,
max_column_widths: HashMap<usize, usize>
) -> &mut Self
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]
fn clone(&self) -> TableBuilder<'data>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
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>,