Struct prettytable::format::TableFormat[][src]

pub struct TableFormat { /* fields omitted */ }

Contains the table formatting rules

Implementations

impl TableFormat[src]

pub fn new() -> TableFormat[src]

Create a new empty TableFormat.

pub fn get_padding(&self) -> (usize, usize)[src]

Return a tuple with left and right padding

pub fn padding(&mut self, left: usize, right: usize)[src]

Set left and right padding

pub fn column_separator(&mut self, separator: char)[src]

Set the character used for internal column separation

pub fn borders(&mut self, border: char)[src]

Set the character used for table borders

pub fn left_border(&mut self, border: char)[src]

Set the character used for left table border

pub fn right_border(&mut self, border: char)[src]

Set the character used for right table border

pub fn separator(&mut self, what: LinePosition, separator: LineSeparator)[src]

Set a line separator

pub fn separators(&mut self, what: &[LinePosition], separator: LineSeparator)[src]

Set format for multiple kind of line separator

pub fn indent(&mut self, spaces: usize)[src]

Set global indentation in spaces used when rendering a table

pub fn get_indent(&self) -> usize[src]

Get global indentation in spaces used when rendering a table

pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>[src]

Returns the character used to separate columns. pos specify if the separator is left/right final or internal to the table

Trait Implementations

impl Clone for TableFormat[src]

impl Copy for TableFormat[src]

impl Debug for TableFormat[src]

impl Default for TableFormat[src]

impl Eq for TableFormat[src]

impl From<TableFormat> for FormatBuilder[src]

impl Hash for TableFormat[src]

impl Into<TableFormat> for FormatBuilder[src]

impl PartialEq<TableFormat> for TableFormat[src]

impl StructuralEq for TableFormat[src]

impl StructuralPartialEq for TableFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for TableFormat

impl Send for TableFormat

impl Sync for TableFormat

impl Unpin for TableFormat

impl UnwindSafe for TableFormat

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.