pub enum ColumnSize {
Fixed(usize),
Contain,
ContainMax(usize),
}Expand description
Represents the size of a table’s column.
Variants§
Fixed(usize)
This row will have a fixed width. If any input data ends up being longer than this, the text will wrap.
The chosen size should be at least 1 character wide.
Contain
This row will match the length of the longest data in the column. Newlines will be stripped from data; all data will be one-line.
ContainMax(usize)
This column will match the width of the widest data in the column, causing the data to wrap if it exceeds the specified maximum width.
The chosen maximum size should be at least 1 character wide.
Trait Implementations§
Source§impl Clone for ColumnSize
impl Clone for ColumnSize
Source§fn clone(&self) -> ColumnSize
fn clone(&self) -> ColumnSize
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnSize
impl Debug for ColumnSize
Source§impl Default for ColumnSize
impl Default for ColumnSize
Source§fn default() -> ColumnSize
fn default() -> ColumnSize
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColumnSize
impl PartialEq for ColumnSize
impl Eq for ColumnSize
impl StructuralPartialEq for ColumnSize
Auto Trait Implementations§
impl Freeze for ColumnSize
impl RefUnwindSafe for ColumnSize
impl Send for ColumnSize
impl Sync for ColumnSize
impl Unpin for ColumnSize
impl UnwindSafe for ColumnSize
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)