pub struct Column {
pub header: String,
pub align: ColumnAlign,
pub width: ColumnWidth,
pub header_style: Style,
pub style: Style,
pub wrap: bool,
/* private fields */
}Expand description
A table column definition.
Fields§
§header: StringColumn header
align: ColumnAlignColumn alignment
width: ColumnWidthColumn width
header_style: StyleHeader style
style: StyleCell style
wrap: boolWhether to wrap content
Implementations§
Source§impl Column
impl Column
Sourcepub fn align(self, align: ColumnAlign) -> Self
pub fn align(self, align: ColumnAlign) -> Self
Set the column alignment.
Sourcepub fn width(self, width: ColumnWidth) -> Self
pub fn width(self, width: ColumnWidth) -> Self
Set the column width.
Sourcepub fn header_style(self, style: Style) -> Self
pub fn header_style(self, style: Style) -> Self
Set the header style.
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 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