pub struct Table { /* private fields */ }Implementations§
Source§impl Table
impl Table
pub fn new( title: String, rows: i16, border_color: Option<Color>, title_color: Option<Color>, data: Option<Vec<Vec<String>>>, ) -> Self
Sourcepub fn with_column_count_override(self, columns: i16) -> Self
pub fn with_column_count_override(self, columns: i16) -> Self
Override the default column count This is not recommended, but can be used with cautious amounts of columns because of terminal width restrictions.
pub fn render(&self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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