Struct prettytable::format::FormatBuilder
[−]
[src]
pub struct FormatBuilder {
// some fields omitted
}A builder to create a TableFormat
Methods
impl FormatBuilder[src]
fn new() -> FormatBuilder
fn padding(self, left: usize, right: usize) -> Self
Set left and right padding
fn column_separator(self, separator: char) -> Self
Set the character used for internal column separation
fn borders(self, border: char) -> Self
Set the character used for table borders
fn separator(self, what: LinePosition, separator: LineSeparator) -> Self
Set a line separator format
fn separators(self, what: &[LinePosition], separator: LineSeparator) -> Self
Set separator format for multiple kind of line separators
fn build(self) -> TableFormat
Consume this builder and return the generated TableFormat