Struct cli_table::TableStruct
source · [−]pub struct TableStruct { /* private fields */ }
Expand description
Struct for building a table on command line
Implementations
sourceimpl 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
sourceimpl Style for TableStruct
impl Style for TableStruct
sourcefn foreground_color(self, foreground_color: Option<Color>) -> Self
fn foreground_color(self, foreground_color: Option<Color>) -> Self
Used to set foreground color
sourcefn background_color(self, background_color: Option<Color>) -> Self
fn background_color(self, background_color: Option<Color>) -> Self
Used to set background color
sourceimpl Table for TableStruct
impl Table for TableStruct
sourcefn table(self) -> TableStruct
fn table(self) -> TableStruct
Converts raw type to a table
Auto Trait Implementations
impl RefUnwindSafe for TableStruct
impl Send for TableStruct
impl Sync for TableStruct
impl Unpin for TableStruct
impl UnwindSafe for TableStruct
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more