pub struct RowData {
pub cells: Vec<CellData>,
pub style: Option<CellStyle>,
pub min_height: Option<f64>,
}Expand description
Row data with optional styling
Fields§
§cells: Vec<CellData>Cells in this row
style: Option<CellStyle>Optional style for the entire row
min_height: Option<f64>Minimum height for this row
Implementations§
Source§impl RowData
impl RowData
Sourcepub fn from_strings(content: Vec<&str>) -> Self
pub fn from_strings(content: Vec<&str>) -> Self
Create a new row from string content
Sourcepub fn from_cells(cells: Vec<CellData>) -> Self
pub fn from_cells(cells: Vec<CellData>) -> Self
Create a new row from cell data
Sourcepub fn with_style(self, style: CellStyle) -> Self
pub fn with_style(self, style: CellStyle) -> Self
Set style for the entire row
Sourcepub fn min_height(self, height: f64) -> Self
pub fn min_height(self, height: f64) -> Self
Set minimum height for this row
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowData
impl RefUnwindSafe for RowData
impl Send for RowData
impl Sync for RowData
impl Unpin for RowData
impl UnsafeUnpin for RowData
impl UnwindSafe for RowData
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