Struct ascii_table::AsciiTable
source · pub struct AsciiTable { /* private fields */ }
Implementations§
source§impl AsciiTable
impl AsciiTable
sourcepub fn set_max_width(&mut self, max_width: usize) -> &mut Self
pub fn set_max_width(&mut self, max_width: usize) -> &mut Self
Sets the maximum width of the table.
When you use the feature auto_table_width
the maximum width will be calculated when you
render the table. Note that the value set by this function will take precedence over the value
generated by auto_table_width
.
sourcepub fn max_width(&self) -> usize
pub fn max_width(&self) -> usize
Gets the maximum width used to render tables. This is either the default width, the width calculated
by the feature auto_table_width
or the width specified by set_max_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 copy 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
source§impl PartialEq for AsciiTable
impl PartialEq for AsciiTable
impl Eq for AsciiTable
impl StructuralPartialEq for AsciiTable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)