pub struct ColumnOptions {
pub justify: Justify,
pub width: Option<usize>,
pub min_width: Option<usize>,
pub max_width: Option<usize>,
pub ratio: Option<usize>,
pub no_wrap: bool,
pub overflow: Overflow,
pub style: Style,
}Expand description
Options for a column, as upstream’s Column(...) takes them. Pass to
Table::add_column_with.
Fields§
§justify: JustifyContent justification (justify, default left).
width: Option<usize>A fixed content width (width).
min_width: Option<usize>A floor on the content width (min_width).
max_width: Option<usize>A cap on the content width (max_width).
ratio: Option<usize>A share of the free width when the table expands (ratio).
no_wrap: boolNever wrap cells (no_wrap).
overflow: OverflowHow over-long text is handled (overflow, default ellipsis).
style: StyleThe style of the column’s body cells (style).
Trait Implementations§
Source§impl Clone for ColumnOptions
impl Clone for ColumnOptions
Source§impl Debug for ColumnOptions
impl Debug for ColumnOptions
Auto Trait Implementations§
impl Freeze for ColumnOptions
impl RefUnwindSafe for ColumnOptions
impl Send for ColumnOptions
impl Sync for ColumnOptions
impl Unpin for ColumnOptions
impl UnsafeUnpin for ColumnOptions
impl UnwindSafe for ColumnOptions
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