pub struct TableFormat {
pub line_above: LineFormat,
pub line_below_header: LineFormat,
pub line_between_rows: LineFormat,
pub line_below: LineFormat,
pub header_row: RowFormat,
pub data_row: RowFormat,
pub padding: usize,
pub with_header_hide: &'static [&'static str],
}Expand description
Table format definition mirroring the Python implementation.
Fields§
§line_above: LineFormatLine printed above the table.
line_below_header: LineFormatLine between headers and data rows.
line_between_rows: LineFormatLine between consecutive data rows.
line_below: LineFormatLine printed after the final row.
header_row: RowFormatHeader row template.
data_row: RowFormatData row template.
padding: usizeExtra padding applied around each cell.
with_header_hide: &'static [&'static str]Table components that should be hidden when headers are present.
Implementations§
Trait Implementations§
Source§impl Clone for TableFormat
impl Clone for TableFormat
Source§fn clone(&self) -> TableFormat
fn clone(&self) -> TableFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableFormat
impl RefUnwindSafe for TableFormat
impl Send for TableFormat
impl Sync for TableFormat
impl Unpin for TableFormat
impl UnwindSafe for TableFormat
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