pub struct TableRowContent {
pub cells: Vec<TableCellContent>,
pub is_header: bool,
pub height: Option<f32>,
pub background: Option<(f32, f32, f32)>,
}Expand description
A row in a table.
Fields§
§cells: Vec<TableCellContent>Cells in this row
is_header: boolWhether this is a header row
height: Option<f32>Row height (if known)
background: Option<(f32, f32, f32)>Background color (R, G, B, each 0.0-1.0)
Implementations§
Source§impl TableRowContent
impl TableRowContent
Sourcepub fn new(cells: Vec<TableCellContent>) -> Self
pub fn new(cells: Vec<TableCellContent>) -> Self
Create a new row with cells.
Sourcepub fn header(cells: Vec<TableCellContent>) -> Self
pub fn header(cells: Vec<TableCellContent>) -> Self
Create a header row with cells.
Sourcepub fn add_cell(&mut self, cell: TableCellContent)
pub fn add_cell(&mut self, cell: TableCellContent)
Add a cell to the row.
Trait Implementations§
Source§impl Clone for TableRowContent
impl Clone for TableRowContent
Source§impl Debug for TableRowContent
impl Debug for TableRowContent
Auto Trait Implementations§
impl Freeze for TableRowContent
impl RefUnwindSafe for TableRowContent
impl Send for TableRowContent
impl Sync for TableRowContent
impl Unpin for TableRowContent
impl UnsafeUnpin for TableRowContent
impl UnwindSafe for TableRowContent
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