Enum comfy_table::ColumnConstraint [−][src]
pub enum ColumnConstraint { Hidden, ContentWidth, Absolute(Width), LowerBoundary(Width), UpperBoundary(Width), Boundaries { lower: Width, upper: Width, }, }
Expand description
A Constraint can be added to a columns.
They allow some control over Column widths as well as the dynamic arrangement process.
All percental boundaries will be ignored, if:
- you aren’t using one of ContentArrangement::{Dynamic, DynamicFullWidth}
- the width of the table/terminal cannot be determined.
Variants
This will completely hide a column.
Force the column to be as long as it’s content. Use with caution! This can easily break your table, if the column’s content is overly long.
Enforce a absolute width for a column.
Tuple Fields of Absolute
0: Width
Specify a lower boundary, either fixed or as percentage of the total width.
Tuple Fields of LowerBoundary
0: Width
Specify a upper boundary, either fixed or as percentage of the total width.
Tuple Fields of UpperBoundary
0: Width
Specify both, an upper and a lower boundary.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ColumnConstraint
impl Send for ColumnConstraint
impl Sync for ColumnConstraint
impl Unpin for ColumnConstraint
impl UnwindSafe for ColumnConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more