pub struct AsciiTable { /* private fields */ }Implementations§
Source§impl AsciiTable
impl AsciiTable
pub fn new() -> Self
Sourcepub fn set_max_width(&mut self, max_width: Width) -> &mut Self
pub fn set_max_width(&mut self, max_width: Width) -> &mut Self
Sets the maximum width of the table.
Default: Sets the width to 100.Fixed: Sets the width to a value of your choosing.Auto: Ascii Table will set the max width to the width of your terminal. ShouldAutofail to determine the terminal width it will fallback toDefault. For featureauto_table_widthonly.
§Default value
The default value for max width is dependent on the features you have enabled. When auto_table_width
is enabled the default value is Auto. Otherwise the default value is Default. Note that
“default value” is not to be confused with the enum variant Default.
pub fn max_width(&self) -> Width
pub fn column(&mut self, index: usize) -> &mut Column
Trait Implementations§
Source§impl Clone for AsciiTable
impl Clone for AsciiTable
Source§fn clone(&self) -> AsciiTable
fn clone(&self) -> AsciiTable
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 moreSource§impl Debug for AsciiTable
impl Debug for AsciiTable
Source§impl Default for AsciiTable
impl Default for AsciiTable
Source§fn default() -> AsciiTable
fn default() -> AsciiTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AsciiTable
impl RefUnwindSafe for AsciiTable
impl Send for AsciiTable
impl Sync for AsciiTable
impl Unpin for AsciiTable
impl UnwindSafe for AsciiTable
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