pub struct Row {
pub cells: Vec<Box<dyn Renderable + Send + Sync>>,
pub style: Option<Style>,
pub end_section: bool,
}Expand description
A row within a table.
Rows contain cells and optional style overrides.
Fields§
§cells: Vec<Box<dyn Renderable + Send + Sync>>Cells in this row (one per column).
style: Option<Style>Optional style override for the entire row.
end_section: boolDraw a section separator after this row.
Implementations§
Source§impl Row
impl Row
Sourcepub fn new(cells: Vec<Box<dyn Renderable + Send + Sync>>) -> Self
pub fn new(cells: Vec<Box<dyn Renderable + Send + Sync>>) -> Self
Create a new row with the given cells.
Sourcepub fn with_style(self, style: Style) -> Self
pub fn with_style(self, style: Style) -> Self
Set the row style.
Sourcepub fn with_end_section(self, end_section: bool) -> Self
pub fn with_end_section(self, end_section: bool) -> Self
Set end_section to draw a separator after this row.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl !RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl !UnwindSafe for Row
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