pub struct FORMAT_BOX_CHARS { /* private fields */ }
Expand description
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>§
Sourcepub fn get_padding(&self) -> (usize, usize)
pub fn get_padding(&self) -> (usize, usize)
Return a tuple with left and right padding
Sourcepub fn get_indent(&self) -> usize
pub fn get_indent(&self) -> usize
Get global indentation in spaces used when rendering a table
Sourcepub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
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
Trait Implementations§
Source§impl Deref for FORMAT_BOX_CHARS
impl Deref for FORMAT_BOX_CHARS
Source§type Target = TableFormat
type Target = TableFormat
The resulting type after dereferencing.
Source§fn deref(&self) -> &TableFormat
fn deref(&self) -> &TableFormat
Dereferences the value.
impl LazyStatic for FORMAT_BOX_CHARS
Auto Trait Implementations§
impl Freeze for FORMAT_BOX_CHARS
impl RefUnwindSafe for FORMAT_BOX_CHARS
impl Send for FORMAT_BOX_CHARS
impl Sync for FORMAT_BOX_CHARS
impl Unpin for FORMAT_BOX_CHARS
impl UnwindSafe for FORMAT_BOX_CHARS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more