Struct cli_table::TableStruct
source · pub struct TableStruct { /* private fields */ }
Expand description
Struct for building a table on command line
Implementations§
source§impl TableStruct
impl TableStruct
sourcepub fn separator(self, separator: Separator) -> Self
pub fn separator(self, separator: Separator) -> Self
Used to set column/row separators of a table
sourcepub fn color_choice(self, color_choice: ColorChoice) -> Self
pub fn color_choice(self, color_choice: ColorChoice) -> Self
Used to set the color preferences for printing the table
sourcepub fn display(&self) -> Result<TableDisplay>
pub fn display(&self) -> Result<TableDisplay>
Returns a struct which implements the Display
trait
Trait Implementations§
source§impl Style for TableStruct
impl Style for TableStruct
source§fn foreground_color(self, foreground_color: Option<Color>) -> Self
fn foreground_color(self, foreground_color: Option<Color>) -> Self
Used to set foreground color
source§fn background_color(self, background_color: Option<Color>) -> Self
fn background_color(self, background_color: Option<Color>) -> Self
Used to set background color
source§impl Table for TableStruct
impl Table for TableStruct
source§fn table(self) -> TableStruct
fn table(self) -> TableStruct
Converts raw type to a table
Auto Trait Implementations§
impl Freeze for TableStruct
impl RefUnwindSafe for TableStruct
impl Send for TableStruct
impl Sync for TableStruct
impl Unpin for TableStruct
impl UnwindSafe for TableStruct
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