Struct text_grid::RowBuilder
source · pub struct RowBuilder<'a> { /* private fields */ }
Expand description
A builder used to create row of GridBuilder
.
This structure is created by GridBuilder::push
.
Implementations§
source§impl RowBuilder<'_>
impl RowBuilder<'_>
sourcepub fn push_with_colspan(&mut self, cell: impl RawCell, colspan: usize)
pub fn push_with_colspan(&mut self, cell: impl RawCell, 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.
pub fn extend<T: ?Sized + Cells>(&mut self, source: &T)
pub fn extend_with_schema<T: ?Sized>( &mut self, source: &T, schema: impl CellsSchema<Source = T> )
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RowBuilder<'a>
impl<'a> Send for RowBuilder<'a>
impl<'a> Sync for RowBuilder<'a>
impl<'a> Unpin for RowBuilder<'a>
impl<'a> !UnwindSafe for RowBuilder<'a>
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