Struct prettytable::format::consts::FORMAT_BOX_CHARS [−]
pub struct FORMAT_BOX_CHARS { /* fields omitted */ }
A table with borders and delimiters made with box characters
Example
┌────┬────┬────┐
│ t1 │ t2 │ t3 │
├────┼────┼────┤
│ 1 │ 1 │ 1 │
├────┼────┼────┤
│ 2 │ 2 │ 2 │
└────┴────┴────┘
Methods from __Deref<Target = TableFormat>
pub fn get_padding(&self) -> (usize, usize)
[src]
pub fn get_padding(&self) -> (usize, usize)
Return a tuple with left and right padding
pub fn get_indent(&self) -> usize
[src]
pub fn get_indent(&self) -> usize
Get global indentation in spaces used when rendering a table
pub fn print_line_separator<T: Write + ?Sized>(
&self,
out: &mut T,
col_width: &[usize],
pos: LinePosition
) -> Result<usize, Error>
[src]
pub fn print_line_separator<T: Write + ?Sized>(
&self,
out: &mut T,
col_width: &[usize],
pos: LinePosition
) -> Result<usize, Error>
Deprecated since 0.8.0
: Will become private in future release. See issue #87
Print a full line separator to out
. col_width
is a slice containing the width of each column.
Returns the number of printed lines
pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
[src]
pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
Returns the character used to separate columns.
pos
specify if the separator is left/right final or internal to the table
pub fn print_column_separator<T: Write + ?Sized>(
&self,
out: &mut T,
pos: ColumnPosition
) -> Result<(), Error>
[src]
pub fn print_column_separator<T: Write + ?Sized>(
&self,
out: &mut T,
pos: ColumnPosition
) -> Result<(), Error>
Deprecated since 0.8.0
: Will become private in future release. See issue #87
Print a column separator or a table border
Trait Implementations
impl __Deref for FORMAT_BOX_CHARS
impl __Deref for FORMAT_BOX_CHARS
type Target = TableFormat
The resulting type after dereferencing.
fn deref(&self) -> &TableFormat
fn deref(&self) -> &TableFormat
Dereferences the value.
impl LazyStatic for FORMAT_BOX_CHARS
impl LazyStatic for FORMAT_BOX_CHARS
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for FORMAT_BOX_CHARS
impl Send for FORMAT_BOX_CHARS
impl Sync for FORMAT_BOX_CHARS
impl Sync for FORMAT_BOX_CHARS