pub struct RowBuf<'a> { /* private fields */ }
Expand description
A builder used to create row of GridBuf
.
This structure is created by GridBuf::push_row
.
Implementations§
source§impl RowBuf<'_>
impl RowBuf<'_>
sourcepub fn push(&mut self, cell: impl CellSource)
pub fn push(&mut self, cell: impl CellSource)
Append a cell to the right of row.
sourcepub fn push_with_colspan(&mut self, cell: impl CellSource, colspan: usize)
pub fn push_with_colspan(&mut self, cell: impl CellSource, colspan: usize)
Append a multi-column cell to the right of row.
cell
: Contents of cell to be appended.colspan
: Number of columns used by the cell to be appended.
if colspan == 0
, this method will do nothing.