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

pub struct TableFormat {
    // some fields omitted
}

Contains the table formatting rules

Methods

impl TableFormat
[src]

fn new(col_sep: char, line_sep: Option<LineSeparator>, title_sep: Option<LineSeparator>) -> TableFormat

Create a new TableFormat.

col_sep is the character used for separating columns. line_sep is an optional LineSeparator defining how to separate lines. title_sep is an optional LineSeparator defining the format of the separator after the title line (if set). If title_sep is set to None, then line_sep will be used, f it's set.

fn print_line_separator<T: Write + ?Sized>(&self, out: &mut T, col_width: &[usize]) -> Result<()Error>

Print a full line separator to out. col_width is a slice containing the width of each column

fn print_title_separator<T: Write + ?Sized>(&self, out: &mut T, col_width: &[usize]) -> Result<()Error>

Print a full title separator to out. col_width is a slice containing the width of each column

fn print_column_separator<T: Write + ?Sized>(&self, out: &mut T) -> Result<()Error>

Print a column separator to out

Trait Implementations

impl Debug for TableFormat
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for TableFormat
[src]

fn clone(&self) -> TableFormat

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more