Enum comfy_table::ColumnConstraint [−][src]
pub enum ColumnConstraint { Hidden, ContentWidth, Width(u16), MinWidth(u16), MaxWidth(u16), Percentage(u16), MinPercentage(u16), MaxPercentage(u16), }
Expand description
Constraints can be added to columns.
They allow some control over the dynamic content arrangement process.
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.
Width(u16)
Enforce a fix width for a column.
MinWidth(u16)
Specify a min amount of characters per line for a column.
MaxWidth(u16)
Specify a max amount of allowed characters per line for a column.
Percentage(u16)
Set a fixed percentage in respect to table_width for this column. Warning: This option will be ignored, if the width cannot be determined!
MinPercentage(u16)
Set a a minimum percentage in respect to table_width for this column. Warning: This option will be ignored, if the width cannot be determined!
MaxPercentage(u16)
Set a a maximum percentage in respect to table_width for this column. Warning: This option will be ignored, if the width cannot be determined!
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