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.
Absolute(Width)Enforce a absolute width for a column.
LowerBoundary(Width)Specify a lower boundary, either fixed or as percentage of the total width.
UpperBoundary(Width)Specify a upper boundary, either fixed or as percentage of the total 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 ColumnConstraintimpl Send for ColumnConstraintimpl Sync for ColumnConstraintimpl Unpin for ColumnConstraintimpl UnwindSafe for ColumnConstraintBlanket Implementations
Mutably borrows from an owned value. Read more