pub enum ShowIndex {
Default,
Always,
Never,
Values(Vec<String>),
}Expand description
Controls whether an index column is shown.
Variants§
Default
Follow the behaviour of python-tabulate: only show an index for data sources that
naturally provide one (e.g. pandas DataFrame).
Always
Always show an index column using the implicit row number.
Never
Never show an index column.
Values(Vec<String>)
Show an index column with the provided labels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShowIndex
impl RefUnwindSafe for ShowIndex
impl Send for ShowIndex
impl Sync for ShowIndex
impl Unpin for ShowIndex
impl UnwindSafe for ShowIndex
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