pub struct FORMAT_NO_BORDER { /* private fields */ }
Expand description
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 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
pub fn print_line_separator<T: Write + ?Sized>( &self, out: &mut T, col_width: &[usize], pos: LinePosition, ) -> Result<usize, Error>
Print a full line separator to out
. col_width
is a slice containing the width of each column.
Returns the number of printed lines
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
Sourcepub 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
pub fn print_column_separator<T: Write + ?Sized>( &self, out: &mut T, pos: ColumnPosition, ) -> Result<(), Error>
Print a column separator or a table border
Trait Implementations§
Source§impl Deref for FORMAT_NO_BORDER
impl Deref for FORMAT_NO_BORDER
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_NO_BORDER
Auto Trait Implementations§
impl Freeze for FORMAT_NO_BORDER
impl RefUnwindSafe for FORMAT_NO_BORDER
impl Send for FORMAT_NO_BORDER
impl Sync for FORMAT_NO_BORDER
impl Unpin for FORMAT_NO_BORDER
impl UnwindSafe for FORMAT_NO_BORDER
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