Struct prettytable::format::FormatBuilder [−][src]
pub struct FormatBuilder { /* fields omitted */ }
A builder to create a TableFormat
Methods
impl FormatBuilder
[src]
impl FormatBuilder
pub fn new() -> FormatBuilder
[src]
pub fn new() -> FormatBuilder
Creates a new builder
pub fn padding(self, left: usize, right: usize) -> Self
[src]
pub fn padding(self, left: usize, right: usize) -> Self
Set left and right padding
pub fn column_separator(self, separator: char) -> Self
[src]
pub fn column_separator(self, separator: char) -> Self
Set the character used for internal column separation
pub fn borders(self, border: char) -> Self
[src]
pub fn borders(self, border: char) -> Self
Set the character used for table borders
pub fn left_border(self, border: char) -> Self
[src]
pub fn left_border(self, border: char) -> Self
Set the character used for left table border
pub fn right_border(self, border: char) -> Self
[src]
pub fn right_border(self, border: char) -> Self
Set the character used for right table border
pub fn separator(self, what: LinePosition, separator: LineSeparator) -> Self
[src]
pub fn separator(self, what: LinePosition, separator: LineSeparator) -> Self
Set a line separator format
pub fn separators(self, what: &[LinePosition], separator: LineSeparator) -> Self
[src]
pub fn separators(self, what: &[LinePosition], separator: LineSeparator) -> Self
Set separator format for multiple kind of line separators
pub fn indent(self, spaces: usize) -> Self
[src]
pub fn indent(self, spaces: usize) -> Self
Set global indentation in spaces used when rendering a table
pub fn build(&self) -> TableFormat
[src]
pub fn build(&self) -> TableFormat
Return the generated TableFormat
Trait Implementations
impl Into<TableFormat> for FormatBuilder
[src]
impl Into<TableFormat> for FormatBuilder
fn into(self) -> TableFormat
[src]
fn into(self) -> TableFormat
Performs the conversion.
impl From<TableFormat> for FormatBuilder
[src]
impl From<TableFormat> for FormatBuilder
fn from(fmt: TableFormat) -> Self
[src]
fn from(fmt: TableFormat) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for FormatBuilder
impl Send for FormatBuilder
impl Sync for FormatBuilder
impl Sync for FormatBuilder