pub struct ColumnData {
pub title: String,
pub width: Option<f32>,
pub expand: bool,
pub sortable: bool,
pub fills_row: bool,
}Expand description
A column of a Table, as backends get it.
Fields§
§title: StringIts header’s title.
width: Option<f32>How wide it starts, in points; None: the platform’s default. The
user can resize it, as the platform lets them.
expand: boolIt takes the room the table has past its columns’ widths, shared with the other columns that do, as the platform shares it.
sortable: boolIts header sorts the table by it when pressed.
fills_row: boolIts cells fill their row, without the platform’s padding: as wide as
the column and as high as the row (a commit graph whose lines join
from row to row). Report its full width in ColumnWidths, and the
row’s height without it in RowHeight.
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§impl Debug for ColumnData
impl Debug for ColumnData
Source§impl PartialEq for ColumnData
impl PartialEq for ColumnData
impl StructuralPartialEq for ColumnData
Auto Trait Implementations§
impl Forget for ColumnData
impl Freeze for ColumnData
impl Move for ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnsafeUnpin for ColumnData
impl UnwindSafe for ColumnData
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