Struct prettytable::format::FormatBuilder
[−]
[src]
pub struct FormatBuilder { /* fields omitted */ }
A builder to create a TableFormat
Methods
impl FormatBuilder
[src]
fn new() -> FormatBuilder
Creates a new builder
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 indent(self, spaces: usize) -> Self
Set global indentation in spaces used when rendering a table
fn build(&self) -> TableFormat
Return the generated TableFormat
Trait Implementations
impl Into<TableFormat> for FormatBuilder
[src]
fn into(self) -> TableFormat
Performs the conversion.
impl From<TableFormat> for FormatBuilder
[src]
fn from(fmt: TableFormat) -> Self
Performs the conversion.