pub struct Column {Show 13 fields
pub header: String,
pub footer: String,
pub header_style: Style,
pub footer_style: Style,
pub style: Style,
pub justify: AlignMethod,
pub vertical: VerticalAlignMethod,
pub overflow: OverflowMethod,
pub width: Option<usize>,
pub min_width: Option<usize>,
pub max_width: Option<usize>,
pub ratio: Option<usize>,
pub colspan: usize,
}Expand description
Defines a column within a Table.
Fields§
§header: StringThe header text / renderable.
The footer text / renderable.
header_style: StyleHeader style.
Footer style.
style: StyleDefault style for cells in this column.
justify: AlignMethodHorizontal justification.
vertical: VerticalAlignMethodVertical alignment.
overflow: OverflowMethodOverflow method.
width: Option<usize>Fixed width, if set.
min_width: Option<usize>Minimum width.
max_width: Option<usize>Maximum width.
ratio: Option<usize>Ratio weight for flexible distribution.
colspan: usizeNumber of columns this header spans (default 1).
Implementations§
Source§impl Column
impl Column
Sourcepub fn justify(self, j: AlignMethod) -> Self
pub fn justify(self, j: AlignMethod) -> Self
Builder: set justify.
Sourcepub fn header_style(self, s: Style) -> Self
pub fn header_style(self, s: Style) -> Self
Builder: set header style.
Sourcepub fn overflow(self, o: OverflowMethod) -> Self
pub fn overflow(self, o: OverflowMethod) -> Self
Builder: set overflow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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