pub struct Column {
pub id: String,
pub head: Option<Text>,
pub align: Option<TextAlign>,
pub truncate: Option<Truncate>,
pub priority: Option<f64>,
pub grow: Option<f64>,
}Expand description
A table column.
Fields§
§id: StringThe key of this column’s cell in each row.
head: Option<Text>Header text.
align: Option<TextAlign>Alignment of the header and cells.
truncate: Option<Truncate>Where a cell that doesn’t fit is cut.
priority: Option<f64>Lower hides first when the table is narrow.
grow: Option<f64>Share of the spare width.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Column
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